#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) |
typedef std::map<std::string, Tag *> TaggedFile::TagSet::tagmaptype [private] |
language dependant tags, needed for setting the encoding
typedef std::vector<Tag*> TaggedFile::TagSet::tagvectortype [private] |
index <-> string mapping for access-by-index since this is faster and easier when handling the complete tagset
| TaggedFile::TagSet::TagSet | ( | ) |
| virtual TaggedFile::TagSet::~TagSet | ( | ) | [virtual] |
| void TaggedFile::TagSet::setTagByIndex | ( | int | idx, | |
| Tag * | t | |||
| ) | [inline, private] |
| assignstatus TaggedFile::TagSet::assign | ( | const std::string & | starttag, | |
| const std::string & | startlocale, | |||
| TaggedParser & | parser, | |||
| std::istream & | istr | |||
| ) | [private] |
| void TaggedFile::TagSet::setAllowMultipleSets | ( | bool | flag | ) | [inline] |
allow multiple sets
| void TaggedFile::TagSet::setAllowUnknownTags | ( | bool | flag | ) | [inline] |
allow unknown tags
| assignstatus TaggedFile::TagSet::assignSet | ( | TaggedParser & | parser, | |
| std::istream & | istr | |||
| ) |
| Tag* TaggedFile::TagSet::getTagByIndex | ( | unsigned int | idx | ) | [inline] |
| std::ostream& operator<< | ( | std::ostream & | str, | |
| const TaggedFile::TagSet & | obj | |||
| ) | [friend] |
bool TaggedFile::TagSet::_allow_multiple_sets [private] |
file contains multiple sets or single set
bool TaggedFile::TagSet::_allow_unknown_tags [private] |
allow unknown tags
tagmaptype TaggedFile::TagSet::_tags [private] |
map of tags managed by this tagset
tagvectortype TaggedFile::TagSet::_tagv [private] |
bool TaggedFile::TagSet::_reuse_previous_tag [private] |
re-use previous tag (used in assignSet() to re-use last parser state from previous ACCEPTED_FULL)
1.5.3