#include <TaggedFile.h>
Public Member Functions | |
TagSet () | |
virtual | ~TagSet () |
void | setAllowMultipleSets (bool flag) |
void | setAllowUnknownTags (bool flag) |
void | addTag (const std::string &name, int idx, datatype dtype, tagtype ttype=REJECTLOCALE) |
assignstatus | assignSet (TaggedParser &parser, std::istream &istr) |
Tag * | getTagByIndex (unsigned int idx) |
Private Types | |
typedef std::map< std::string, Tag * > | tagmaptype |
typedef std::vector< Tag * > | tagvectortype |
Private Member Functions | |
void | setTagByIndex (int idx, Tag *t) |
assignstatus | assign (const std::string &starttag, const std::string &startlocale, TaggedParser &parser, std::istream &istr) |
Private Attributes | |
bool | _allow_multiple_sets |
bool | _allow_unknown_tags |
tagmaptype | _tags |
tagvectortype | _tagv |
bool | _reuse_previous_tag |
Friends | |
std::ostream & | operator<< (std::ostream &str, const TaggedFile::TagSet &obj) |
|
language dependant tags, needed for setting the encoding |
|
index <-> string mapping for access-by-index since this is faster and easier when handling the complete tagset |
|
|
|
|
|
|
|
lookup single Tag responsible for parsing starttag in map and call its assign function
|
|
assign complete TagSet from parser and stream
|
|
get Tag by number instead of string
|
|
allow multiple sets |
|
allow unknown tags |
|
assign number to Tag
|
|
|
|
file contains multiple sets or single set |
|
allow unknown tags |
|
re-use previous tag (used in assignSet() to re-use last parser state from previous ACCEPTED_FULL) |
|
map of tags managed by this tagset |
|
|