| 
                Last change
                  on this file since 4585 was
                  4482,
                  checked in by bensch, 20 years ago
           | 
        
        
          | 
               
orxonox/trunk: lib/util: doxy-tags 
 
           | 
        
        | 
            File size:
            544 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | /*!  | 
|---|
| 2 |   \file substring.h | 
|---|
| 3 |   \brief a small class to get the parts of a string separated by commas | 
|---|
| 4 | */ | 
|---|
| 5 |  | 
|---|
| 6 | #ifndef _SUBSTRING_H | 
|---|
| 7 | #define _SUBSTRING_H | 
|---|
| 8 |  | 
|---|
| 9 | //! A class that can load one string and split it in multipe ones | 
|---|
| 10 | class SubString | 
|---|
| 11 | { | 
|---|
| 12 |  public: | 
|---|
| 13 |   SubString(const char* string); | 
|---|
| 14 |   ~SubString(); | 
|---|
| 15 |                  | 
|---|
| 16 |   int getCount(); | 
|---|
| 17 |   const char* getString( int i); | 
|---|
| 18 |                  | 
|---|
| 19 |  private: | 
|---|
| 20 |   char**     strings;         //!< strings produced from a single string splitted in multiple strings | 
|---|
| 21 |   int        n;               //!< how many splitted parts | 
|---|
| 22 | }; | 
|---|
| 23 |  | 
|---|
| 24 | #endif /* _SUBSTRING_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.