#include <Tokenizer.h>
Public Types | |
| typedef Token | Item |
| typedef std::vector< Token > | Items |
Public Member Functions | |
| Tokenizer () | |
| Standard (dummy) constructor. | |
| Tokenizer (bool resolve) | |
| Initializing constructor. | |
| virtual | ~Tokenizer () |
| Standard destructor. | |
| void | analyse (const std::string &s, const char *delim, const char *tagBegin, const char *tagEnd, const char *eq, const char *valBegin, const char *valEnd) |
| Analyse tokens from string. | |
| void | analyse (const std::string &s, const char *delim, const char *tag, const char *eq, const char *val) |
| Analyse tokens from string. | |
| void | analyse (const std::string &s, const char *delim, const char *eq, const char *val) |
| Analyse tokens from string. | |
| void | analyse (const std::string &s, const char *delim=" ", const char *eq="=") |
| Analyse tokens from string. | |
| Items & | items () |
| Access token collection. | |
| const Items & | items () const |
| Access token collection (CONST). | |
Protected Attributes | |
| Items | m_tokens |
| Assigned tokens within string. | |
| bool | m_resolve |
| Flag to resolve environment. | |
Classes | |
| class | Token |
| Definition of the sub-class Token. More... | |
Definition at line 24 of file Tokenizer.h.
| typedef Token Tokenizer::Item |
Definition at line 68 of file Tokenizer.h.
| typedef std::vector<Token> Tokenizer::Items |
Definition at line 69 of file Tokenizer.h.
| Tokenizer::Tokenizer | ( | ) | [inline] |
| Tokenizer::Tokenizer | ( | bool | resolve | ) | [inline] |
| virtual Tokenizer::~Tokenizer | ( | ) | [inline, virtual] |
| void Tokenizer::analyse | ( | const std::string & | s, | |
| const char * | delim, | |||
| const char * | tagBegin, | |||
| const char * | tagEnd, | |||
| const char * | eq, | |||
| const char * | valBegin, | |||
| const char * | valEnd | |||
| ) |
Analyse tokens from string.
| void Tokenizer::analyse | ( | const std::string & | s, | |
| const char * | delim, | |||
| const char * | tag, | |||
| const char * | eq, | |||
| const char * | val | |||
| ) | [inline] |
| void Tokenizer::analyse | ( | const std::string & | s, | |
| const char * | delim, | |||
| const char * | eq, | |||
| const char * | val | |||
| ) | [inline] |
| void Tokenizer::analyse | ( | const std::string & | s, | |
| const char * | delim = " ", |
|||
| const char * | eq = "=" | |||
| ) | [inline] |
| Items& Tokenizer::items | ( | ) | [inline] |
Access token collection.
Definition at line 99 of file Tokenizer.h.
00099 { 00100 return m_tokens; 00101 }
| const Items& Tokenizer::items | ( | ) | const [inline] |
Access token collection (CONST).
Definition at line 103 of file Tokenizer.h.
00103 { 00104 return m_tokens; 00105 }
Items Tokenizer::m_tokens [protected] |
bool Tokenizer::m_resolve [protected] |
1.4.7