Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4220 in orxonox.OLD for orxonox/trunk/src/lib/util/substring.h


Ignore:
Timestamp:
May 18, 2005, 11:01:59 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: TrackManager prepared for loading. added new overloaded functions that read in join and fork from one single string
thanks to chris, this was pretty easy… the hard part was finding the substring class :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/util/substring.h

    r4010 r4220  
    11/*!
    2     \file substring.h
    3     \brief a small class to get the parts of a string separated by commas
     2  \file substring.h
     3  \brief a small class to get the parts of a string separated by commas
    44*/
    55
     
    77#define _SUBSTRING_H
    88
    9 #include "stdincl.h"
    10 
    119class SubString
    1210{
    13         public:
     11 public:
    1412       
    15                 SubString( const char* string);
    16                 ~SubString();
     13  SubString( const char* string);
     14  ~SubString();
    1715               
    18                 int getN();
    19                 const char* getString( int i);
     16  int getCount();
     17  const char* getString( int i);
    2018               
    21         private:
    22                 char** strings;
    23                 int n;
     19 private:
     20  char** strings;
     21  int n;
    2422};
    2523
Note: See TracChangeset for help on using the changeset viewer.