#include <TaggedParser.h>
Public Types | |
| enum | tag_type { NONE = 0, SINGLE, START, END, OLDSINGLE, OLDMULTI } |
| typedef tag_type | TagType |
Public Member Functions | |
| TaggedParser () | |
| virtual | ~TaggedParser () |
| void | asOldstyle (bool oldstyle) |
| int | lineNumber () const |
| streamoff | tagPos () const |
| const std::string & | currentTag () const |
| const std::string & | currentLocale () const |
| streamoff | dataStartPos () const |
| streamoff | dataEndPos () const |
| unsigned | dataLength () const |
| const std::string & | data () |
| TagType | lookupTag (istream &stream_fr, const std::string &stag_tr="", const std::string &slang_tr="") |
| TagType | lookupEndTag (istream &stream_fr, const std::string &etag_tr, const std::string &elang_tr="", bool reverseLocale=false) |
Static Public Member Functions | |
| static std::string | data2string (const std::list< std::string > &data_Vtr) |
| static vector < std::string > | split2words (const std::string &line_tr, const std::string &sepchars_tr=" \t\n") |
Static Public Attributes | |
| static const streamoff | nopos |
Private Member Functions | |
| void | _reset () |
| void | _datareset () |
| TagType | tagOnLine (const std::string &cline_tr, std::string &tag_tr, std::string::size_type &delim_ir, std::string &lang_tr) |
Static Private Member Functions | |
| static streamoff | readLine (istream &stream_fr, std::string &cline_tr) |
Private Attributes | |
| std::string | currentLine |
| streamoff | _tagPos |
| streamoff | _startPos |
| streamoff | _endPos |
| int | _bufferPos |
| unsigned int | _bufferLen |
| int | _lineNumber |
| std::string | _currentTag |
| std::string | _currentLocale |
| std::string | _currentData |
| bool | _oldstyle |
| int | _offset |
Static Private Attributes | |
| static const unsigned | bufferLen_i |
| static char | buffer_ac [] |
| typedef tag_type TaggedParser::TagType |
| TaggedParser::TaggedParser | ( | ) |
| virtual TaggedParser::~TaggedParser | ( | ) | [virtual] |
| void TaggedParser::_reset | ( | ) | [private] |
| void TaggedParser::_datareset | ( | ) | [private] |
| static streamoff TaggedParser::readLine | ( | istream & | stream_fr, | |
| std::string & | cline_tr | |||
| ) | [static, private] |
| TagType TaggedParser::tagOnLine | ( | const std::string & | cline_tr, | |
| std::string & | tag_tr, | |||
| std::string::size_type & | delim_ir, | |||
| std::string & | lang_tr | |||
| ) | [private] |
| void TaggedParser::asOldstyle | ( | bool | oldstyle | ) | [inline] |
| int TaggedParser::lineNumber | ( | ) | const [inline] |
| streamoff TaggedParser::tagPos | ( | ) | const [inline] |
| const std::string& TaggedParser::currentTag | ( | ) | const [inline] |
| const std::string& TaggedParser::currentLocale | ( | ) | const [inline] |
| streamoff TaggedParser::dataStartPos | ( | ) | const [inline] |
| streamoff TaggedParser::dataEndPos | ( | ) | const [inline] |
| unsigned TaggedParser::dataLength | ( | ) | const [inline] |
| const std::string& TaggedParser::data | ( | ) | [inline] |
| TagType TaggedParser::lookupTag | ( | istream & | stream_fr, | |
| const std::string & | stag_tr = "", |
|||
| const std::string & | slang_tr = "" | |||
| ) |
lookup a tag parse until stag_tr, leave empty to parse until any tag. On succes posStartTag() and posEndTag() can be used Usually used to lookup a single or a start tag
| TagType TaggedParser::lookupEndTag | ( | istream & | stream_fr, | |
| const std::string & | etag_tr, | |||
| const std::string & | elang_tr = "", |
|||
| bool | reverseLocale = false | |||
| ) |
lookup end tag set start and end retrieval positions
| static std::string TaggedParser::data2string | ( | const std::list< std::string > & | data_Vtr | ) | [static] |
| static vector<std::string> TaggedParser::split2words | ( | const std::string & | line_tr, | |
| const std::string & | sepchars_tr = " \t\n" | |||
| ) | [static] |
const unsigned TaggedParser::bufferLen_i [static, private] |
char TaggedParser::buffer_ac[] [static, private] |
std::string TaggedParser::currentLine [private] |
streamoff TaggedParser::_tagPos [private] |
streamoff TaggedParser::_startPos [private] |
streamoff TaggedParser::_endPos [private] |
int TaggedParser::_bufferPos [private] |
unsigned int TaggedParser::_bufferLen [private] |
int TaggedParser::_lineNumber [private] |
std::string TaggedParser::_currentTag [private] |
std::string TaggedParser::_currentLocale [private] |
std::string TaggedParser::_currentData [private] |
bool TaggedParser::_oldstyle [private] |
int TaggedParser::_offset [private] |
const streamoff TaggedParser::nopos [static] |
1.5.3