Last change
on this file since 8600 was
8531,
checked in by patrick, 18 years ago
|
orxonox: added a tokenizer class for strings and working on parsing of the md3 config file
|
File size:
366 bytes
|
Rev | Line | |
---|
[8531] | 1 | |
---|
| 2 | /*! |
---|
| 3 | * @file tokenzier.h |
---|
| 4 | * @brief Definition of Tokenizer |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #ifndef _TOKENIZER_H |
---|
| 9 | #define _TOKENIZER_H |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | #include <vector> |
---|
| 13 | #include <string> |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | //! A class to handle time itself |
---|
| 17 | class Tokenizer |
---|
| 18 | { |
---|
| 19 | |
---|
| 20 | public: |
---|
| 21 | static void tokenize(const std::string& str, std::vector<std::string>& tokens, const std::string& delimiters = " "); |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | }; |
---|
| 25 | |
---|
| 26 | #endif /* _TOKENIZER_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.