Last change
on this file since 4193 was
4010,
checked in by bensch, 20 years ago
|
orxonox/trunk: merged the levelloader from lltrunktemp to the trunk. Big thanks to fuzzy to make this so easy for us, and for implementing it in the first place.
|
File size:
373 bytes
|
Rev | Line | |
---|
[3941] | 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 | #include "stdincl.h" |
---|
| 10 | |
---|
| 11 | class SubString |
---|
| 12 | { |
---|
| 13 | public: |
---|
| 14 | |
---|
| 15 | SubString( const char* string); |
---|
| 16 | ~SubString(); |
---|
| 17 | |
---|
| 18 | int getN(); |
---|
| 19 | const char* getString( int i); |
---|
| 20 | |
---|
| 21 | private: |
---|
| 22 | char** strings; |
---|
| 23 | int n; |
---|
| 24 | }; |
---|
| 25 | |
---|
| 26 | #endif /* _SUBSTRING_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.