#include <TaggedFile.h>
Public Types | |
typedef std::map< std::string, TagRetrievalPos > | posmaptype |
Public Member Functions | |
Tag (const std::string &name, datatype dtype, tagtype ttype=REJECTLOCALE) | |
void | setEndTag (std::string end) |
assignstatus | assign (const std::string &locale, TaggedParser &parser, std::istream &istr) |
void | clear () |
const std::string & | Name () const |
const std::string & | Data () const |
const TagRetrievalPos | Pos (const std::string &locale="") const |
const posmaptype | PosMap () const |
std::streamoff | posDataStart (const std::string &locale="") const |
std::streamoff | posDataEnd (const std::string &locale="") const |
Private Attributes | |
std::string | _name |
std::string | _end |
posmaptype | _pos |
std::string | _data |
datatype | _datatype |
tagtype | _tagtype |
Friends | |
std::ostream & | operator<< (std::ostream &str, const TaggedFile::Tag &obj) |
|
|
|
Constructor
|
|
assign data from stream to tag
|
|
clears only data, not behavior nor tag names |
|
return single line data of current tag |
|
Name() return name of this tag |
|
return start position of data in stream |
|
return end position of data in stream |
|
return start position of data in stream |
|
return complete positionmap |
|
override old-style end tag (needed e.g. for update.inf parsing which reversed DefaultInstsrcFTP to PTFCrstsniTluafed which can _not_ be handle automagically :-} |
|
|
|
the actual data for a SINGLE, REJECTLOCALE datatype. for all other datatypes, only _pos is retrieved |
|
the type of data for this tag |
|
name of the end tag for datatype MULTIOLD |
|
name of the tag |
|
start and end position of data in stream indexed by locale |
|
the type of tag |