Classes |
Public Types |
Public Member Functions |
Static Public Member Functions |
Private Types |
Private Member Functions |
Private Attributes |
Friends |
List of all members
faudes::Token Class Reference Tokens model atomic data for stream IO. More...
Detailed DescriptionTokens model atomic data for stream IO. A Token models a string or numeric datum that can be read from a or written to a C++ stream. The class itself implements the representation of the data including its type. For section handling and actual file processing see TokenReader and TokenWriter.
Definition at line 56 of file cfl_token.h. Member Typedef Documentation
Convenience typedef. Definition at line 638 of file cfl_token.h.
Definition at line 639 of file cfl_token.h. Member Enumeration DocumentationToken types:
Definition at line 84 of file cfl_token.h. Constructor & Destructor Documentation
Empty constructor, constructs None token. Definition at line 29 of file cfl_token.cpp.
Copy constructor. Definition at line 42 of file cfl_token.cpp.
Token destructor. Definition at line 71 of file cfl_token.cpp. Member Function Documentation
Access attribute value.
Definition at line 395 of file cfl_token.cpp.
Access attribute value.
Definition at line 385 of file cfl_token.cpp.
Access attribute value.
Definition at line 374 of file cfl_token.cpp.
Clear all attributes. Definition at line 281 of file cfl_token.cpp.
Clear End type (resolve empty section) Definition at line 164 of file cfl_token.cpp.
Test attibute existence.
Definition at line 364 of file cfl_token.cpp.
Test attibute existence.
Definition at line 354 of file cfl_token.cpp.
Test attibute existence.
Definition at line 344 of file cfl_token.cpp.
Get float value of a numeric token.
Definition at line 176 of file cfl_token.cpp.
Insert named attribute, no type. Note: only begin tags can have attributes.
Definition at line 288 of file cfl_token.cpp.
Insert named attribute with boolean value. Note: only begin tags can have attributes.
Definition at line 325 of file cfl_token.cpp.
Insert named attribute with integer value. Note: only begin tags can have attributes.
Definition at line 335 of file cfl_token.cpp.
Insert named attribute with integer value. Note: only begin tags can have attributes.
Definition at line 307 of file cfl_token.cpp.
Insert named attribute with integer value. Note: only begin tags can have attributes.
Definition at line 316 of file cfl_token.cpp.
Insert named attribute with string value. Note: only begin tags can have attributes.
Definition at line 298 of file cfl_token.cpp.
Get integer value of a numeric token.
Definition at line 170 of file cfl_token.cpp.
Interpret attribute value from string. Definition at line 704 of file cfl_token.cpp.
Interpret string a s number. Definition at line 718 of file cfl_token.cpp.
Interpret string a s number. Definition at line 713 of file cfl_token.cpp.
Test token Type.
Definition at line 252 of file cfl_token.cpp.
Test token Type.
Definition at line 263 of file cfl_token.cpp.
Assignment operator. Definition at line 57 of file cfl_token.cpp.
Get option value of a name token.
Definition at line 187 of file cfl_token.cpp.
Read Token from input stream.
Definition at line 1266 of file cfl_token.cpp.
Read and interpret attribute definitions of begin tags from an input file stream.
Definition at line 1013 of file cfl_token.cpp.
Read a base64 binary string from an input file stream.
Definition at line 572 of file cfl_token.cpp.
Read chracter data from an input file stream. Reads the stream untion the next "<" character. The plain character data is returned, no enteties substituted etc.
Definition at line 982 of file cfl_token.cpp.
Read a std::string value from an input file stream. Read an XML escaped string until and excl. the specified stop character.
Definition at line 922 of file cfl_token.cpp.
Read and interpret markup an input file stream. This method will identify begin and end tags. Any other XML markup is meant to be gracefully ignored be ignored.
Definition at line 1088 of file cfl_token.cpp.
Read (ignore) spaces and comments in an input file stream.
Definition at line 648 of file cfl_token.cpp.
Read a std::string value from an input file stream. This method assumes that the string was written in the format of WriteString, i.e. enclosed by single stop characters. However, for practical reasons, it is assumed that the first stop character has been allready read .
Definition at line 914 of file cfl_token.cpp.
Read a std::string value from an input file stream. This method assumes that the string was written in the format of WriteVerbatim, i.e. enclosed by a start and stop markers "__VERBATIM__" or variations thereof. However, for practical reasons, it is assumed that the first character "_" has been read allready. Note: verbatim sections are in general NOT XML compliant.
Definition at line 453 of file cfl_token.cpp.
Initialize as Begin token.
Definition at line 95 of file cfl_token.cpp.
Initialize Binary token. This method allocates a copy of the data. For writing only, you may use the TokenWriter interface to avoid the local copy.
Definition at line 156 of file cfl_token.cpp.
Initialize as Boolean token.
Definition at line 140 of file cfl_token.cpp.
Initialize as empty-tag token.
Definition at line 109 of file cfl_token.cpp.
Initialize as End token.
Definition at line 102 of file cfl_token.cpp.
Initialize as Float token.
Definition at line 148 of file cfl_token.cpp.
Initialize as Integer token.
Definition at line 124 of file cfl_token.cpp.
Initialize as Integer16 token.
Definition at line 132 of file cfl_token.cpp.
Initialize None token. Definition at line 75 of file cfl_token.cpp.
Initialize as Option token.
Definition at line 116 of file cfl_token.cpp.
Initialize as String token. Definition at line 88 of file cfl_token.cpp.
Pretty print string representation. Convenience functio for inspection/debugging
Definition at line 1361 of file cfl_token.cpp.
Get string value of a name token.
Definition at line 181 of file cfl_token.cpp.
Get token Type. This method is for backward compatibility only. It returns a token type with only oe bit set to indicate the type as in libfaudes up to version 2.17. To test for possible token interpretations, use the 2.17 interface IsInteger(), IsString() etc.
Definition at line 192 of file cfl_token.cpp.
Write Token to output stream.
Definition at line 809 of file cfl_token.cpp.
Write specified binary data as base64 string to output stream.
Definition at line 504 of file cfl_token.cpp.
Write my binary data as base64 string to output stream.
Definition at line 565 of file cfl_token.cpp.
Write a std::string value to an output stream. This method replace critical characters by their XML entities and streams the resulting string. No whitespace etc added.
Definition at line 875 of file cfl_token.cpp.
Write a std::string value to an output stream. This method writes the string enclosed by a the specified delimiter, typically '"' or ' '. Relevant XML entities are replaced by references, e.g. < && etc. A single white space is added as a sepqrqtor.
Definition at line 901 of file cfl_token.cpp.
Write a std::string value to an output stream. This method writes a string verbatim, i.e. incl all control characters. It is enclosed by a marker which defaults to "__VERBATIM__". If the string contains the marker, a variation is used.
Definition at line 424 of file cfl_token.cpp. Friends And Related Function Documentation
Definition at line 60 of file cfl_token.h.
Definition at line 59 of file cfl_token.h. Member Data Documentation
Attribute sort index (for nice output only) Definition at line 635 of file cfl_token.h.
Attribute value map. Definition at line 632 of file cfl_token.h.
Token float value (if Token is of type Float or Integer) Definition at line 612 of file cfl_token.h.
Token integer value (if Token is of type Integer or Integer16) Definition at line 609 of file cfl_token.h.
Token std::string value (if token is of type Option) Definition at line 606 of file cfl_token.h.
When read from stream, record preceeding space. Definition at line 618 of file cfl_token.h.
When read from stream, record preceeding space. Definition at line 615 of file cfl_token.h.
Token std::string value (for any token type) Definition at line 603 of file cfl_token.h.
Token type. Definition at line 600 of file cfl_token.h. The documentation for this class was generated from the following files: libFAUDES 2.26g --- 2015.08.17 --- c++ api documentaion by doxygen |