STL Include files.
More...
#include <Tokenizer.h>
|
| | 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)
|
| |
STL Include files.
definition of class Tokenizer
Definition at line 24 of file Tokenizer.h.
Standard (dummy) constructor.
Definition at line 77 of file Tokenizer.h.
| Tokenizer::Tokenizer |
( |
bool |
resolve | ) |
|
|
inline |
Initializing constructor.
Definition at line 79 of file Tokenizer.h.
| virtual Tokenizer::~Tokenizer |
( |
| ) |
|
|
inlinevirtual |
| 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.
Definition at line 37 of file Tokenizer.cpp.
{
if ( valEnd == 0 ) valEnd = valBegin;
Token tok;
do {
tok.make(
s, start, delim, tagBegin, tagEnd, eq, valBegin, valEnd);
if ( tok.length() > 0 ) {
start += tok.length();
}
else {
}
}
while ( start <
long(
s.length()) );
(*i).resolveValue();
}
}
}
| void Tokenizer::analyse |
( |
const std::string & |
s, |
|
|
const char * |
delim, |
|
|
const char * |
tag, |
|
|
const char * |
eq, |
|
|
const char * |
val |
|
) |
| |
|
inline |
Analyse tokens from string.
Definition at line 87 of file Tokenizer.h.
{
analyse(
s, delim, tag, tag, eq, val, val);
}
| void Tokenizer::analyse |
( |
const std::string & |
s, |
|
|
const char * |
delim, |
|
|
const char * |
eq, |
|
|
const char * |
val |
|
) |
| |
|
inline |
Analyse tokens from string.
Definition at line 91 of file Tokenizer.h.
{
analyse(
s, delim,
"",
"", eq, val, val);
}
| void Tokenizer::analyse |
( |
const std::string & |
s, |
|
|
const char * |
delim = " ", |
|
|
const char * |
eq = "=" |
|
) |
| |
|
inline |
Analyse tokens from string.
Definition at line 95 of file Tokenizer.h.
| Items& Tokenizer::items |
( |
| ) |
|
|
inline |
Access token collection.
Definition at line 99 of file Tokenizer.h.
| const Items& Tokenizer::items |
( |
| ) |
const |
|
inline |
Access token collection (CONST)
Definition at line 103 of file Tokenizer.h.
| bool Tokenizer::m_resolve |
|
protected |
Flag to resolve environment.
Definition at line 74 of file Tokenizer.h.
| Items Tokenizer::m_tokens |
|
protected |
Assigned tokens within string.
Definition at line 72 of file Tokenizer.h.
The documentation for this class was generated from the following files:
- /afs/.cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r2/GaudiKernel/GaudiKernel/Tokenizer.h
- /afs/.cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r2/GaudiKernel/src/Lib/Tokenizer.cpp