| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Tokenizer::Token Class Reference

Definition of the sub-class Token. More...

#include <Tokenizer.h>

List of all members.


Public Member Functions

 Token (const Token &copy)
 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.
Tokenoperator= (const Token &copy)
 Assignment operator.
bool operator== (const Token &copy) 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.

Detailed Description

Definition of the sub-class Token.

Definition at line 28 of file Tokenizer.h.


Constructor & Destructor Documentation

Tokenizer::Token::Token ( const Token copy  )  [inline]

Copy constructor.

Definition at line 37 of file Tokenizer.h.

00037                               : m_length(copy.m_length), m_tag(copy.m_tag), m_value(copy.m_value)  {
00038     }

Tokenizer::Token::Token (  )  [inline]

Standard constructor.

Definition at line 40 of file Tokenizer.h.

00040              : m_length(0)  {
00041     }

virtual Tokenizer::Token::~Token (  )  [inline, virtual]

Standard Destructor.

Definition at line 45 of file Tokenizer.h.

00045                         {
00046     }


Member Function Documentation

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.

Token& Tokenizer::Token::operator= ( const Token copy  ) 

Assignment operator.

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]

Acces tag value.

Definition at line 58 of file Tokenizer.h.

00058                                       {
00059       return m_tag;
00060     }

const std::string& Tokenizer::Token::value (  )  const [inline]

Access value.

Definition at line 62 of file Tokenizer.h.

00062                                       {
00063       return m_value;
00064     }

void Tokenizer::Token::resolveValue (  ) 

Resolve value from environment.


Member Data Documentation

long Tokenizer::Token::m_length [private]

Toke length.

Definition at line 30 of file Tokenizer.h.

std::string Tokenizer::Token::m_tag [private]

Tag variable.

Definition at line 32 of file Tokenizer.h.

std::string Tokenizer::Token::m_value [private]

Value variable.

Definition at line 34 of file Tokenizer.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 19:57:15 2011 for GaudiKernel by doxygen 1.4.7