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