# | Line 51 | Line 51 | |
---|---|---|
51 | #define UTIL_STRINGTOKENIZER_HPP | |
52 | ||
53 | #include <string> | |
54 | < | |
54 | > | #include <vector> |
55 | > | #include "config.h" |
56 | namespace oopse { | |
57 | ||
58 | /** | |
# | Line 146 | Line 147 | namespace oopse { | |
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. | |
# | Line 173 | Line 174 | namespace oopse { | |
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 | /** |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |