| 51 |
|
#define UTIL_STRINGTOKENIZER_HPP |
| 52 |
|
|
| 53 |
|
#include <string> |
| 54 |
< |
|
| 54 |
> |
#include <vector> |
| 55 |
> |
#include "config.h" |
| 56 |
|
namespace oopse { |
| 57 |
|
|
| 58 |
|
/** |
| 147 |
|
float nextTokenAsFloat(); |
| 148 |
|
|
| 149 |
|
/** |
| 150 |
< |
* Returns the next token from this string tokenizer as a double. |
| 151 |
< |
* @return the next token from this string tokenizer as a double. |
| 150 |
> |
* Returns the next token from this string tokenizer as a RealType. |
| 151 |
> |
* @return the next token from this string tokenizer as a RealType. |
| 152 |
|
*/ |
| 153 |
< |
double nextTokenAsDouble(); |
| 153 |
> |
RealType nextTokenAsDouble(); |
| 154 |
|
|
| 155 |
|
/** |
| 156 |
|
* Returns the next token without advancing the position of the StringTokenizer. |
| 174 |
|
return tokenString_; |
| 175 |
|
} |
| 176 |
|
|
| 177 |
+ |
/** |
| 178 |
+ |
* Returns all of the tokens |
| 179 |
+ |
* @return all of the tokens |
| 180 |
+ |
*/ |
| 181 |
+ |
std::vector<std::string> getAllTokens(); |
| 182 |
|
private: |
| 183 |
|
|
| 184 |
|
/** |