#include <Tokenizer.h>
Public Member Functions | |
Token (const Token ©) | |
Copy constructor. | |
Token () | |
Standard constructor. | |
void | make (const std::string &s, long st, const char *delim, const char *tagBegin, const char *tagEnd, const char *eq, const char *valBegin, const char *valEnd) |
Create token from string. | |
virtual | ~Token () |
Standard Destructor. | |
Token & | operator= (const Token ©) |
Assignment operator. | |
bool | operator== (const Token ©) const |
long | length () const |
Total token length. | |
const std::string & | tag () const |
Acces tag value. | |
const std::string & | value () const |
Access value. | |
void | resolveValue () |
Resolve value from environment. | |
Private Attributes | |
long | m_length |
Toke length. | |
std::string | m_tag |
Tag variable. | |
std::string | m_value |
Value variable. |
Definition at line 28 of file Tokenizer.h.
Tokenizer::Token::Token | ( | const Token & | copy | ) | [inline] |
Tokenizer::Token::Token | ( | ) | [inline] |
virtual Tokenizer::Token::~Token | ( | ) | [inline, virtual] |
void Tokenizer::Token::make | ( | const std::string & | s, | |
long | st, | |||
const char * | delim, | |||
const char * | tagBegin, | |||
const char * | tagEnd, | |||
const char * | eq, | |||
const char * | valBegin, | |||
const char * | valEnd | |||
) |
Create token from string.
bool Tokenizer::Token::operator== | ( | const Token & | copy | ) | const [inline] |
Definition at line 50 of file Tokenizer.h.
00050 { 00051 return m_tag == copy.m_tag, m_value == copy.m_value && m_length == copy.m_length; 00052 }
long Tokenizer::Token::length | ( | ) | const [inline] |
Total token length.
Definition at line 54 of file Tokenizer.h.
00054 { 00055 return m_length; 00056 }
const std::string& Tokenizer::Token::tag | ( | ) | const [inline] |
const std::string& Tokenizer::Token::value | ( | ) | const [inline] |
void Tokenizer::Token::resolveValue | ( | ) |
Resolve value from environment.
long Tokenizer::Token::m_length [private] |
std::string Tokenizer::Token::m_tag [private] |
std::string Tokenizer::Token::m_value [private] |