|
libFAUDES
Sections
Index
|
faudes::Token Class ReferenceTokens 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 52 of file cfl_token.h. Member Enumeration DocumentationToken types:
Definition at line 77 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 38 of file cfl_token.cpp.
Token destructor. Definition at line 57 of file cfl_token.cpp. Member Function Documentation
Get float value of a numeric token.
Definition at line 181 of file cfl_token.h.
Get integer value of a numeric token.
Definition at line 171 of file cfl_token.h. Assignment operator. Definition at line 48 of file cfl_token.cpp.
Read Token from input stream.
Definition at line 522 of file cfl_token.cpp.
Read a base64 binary string from an input file stream.
Definition at line 416 of file cfl_token.cpp.
Read a number from an input file stream.
Definition at line 108 of file cfl_token.cpp.
Read (ignore) spaces and comments in an input file stream.
Definition at line 484 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 read allready.
Definition at line 253 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.
Definition at line 306 of file cfl_token.cpp.
Initialize as Begin token.
Definition at line 71 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 101 of file cfl_token.cpp.
Initialize as End token.
Definition at line 76 of file cfl_token.cpp.
Initialize as Float token.
Definition at line 96 of file cfl_token.cpp.
Initialize as Integer token.
Definition at line 86 of file cfl_token.cpp.
Initialize as Integer16 token.
Definition at line 91 of file cfl_token.cpp.
Initialize None token. Definition at line 61 of file cfl_token.cpp.
Initialize as Option token.
Definition at line 81 of file cfl_token.cpp.
Initialize as String token. Definition at line 66 of file cfl_token.cpp.
Get string value of a name token.
Definition at line 191 of file cfl_token.h.
Write Token to output stream.
Definition at line 183 of file cfl_token.cpp.
Write my binary data as base64 string to output stream.
Definition at line 409 of file cfl_token.cpp.
Write specified binary data as base64 string to output stream.
Definition at line 348 of file cfl_token.cpp.
Write a std::string value to an output stream. This method writes the string enclosed by a signle stop character, typically '"'. Any stop character within the string is excaped by a preceeding "". If the string comtains a "\", it will also be escaped by another "\". Control codes are replaced by a single blanc.
Definition at line 229 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 290 of file cfl_token.cpp. Member Data Documentation
Token float value (if Token is of type Float). Definition at line 262 of file cfl_token.h.
Token integer value (if Token is of type Integer or Integer16). Definition at line 259 of file cfl_token.h.
Token std::string value (if Token is of type Name, Begein or End). Definition at line 256 of file cfl_token.h.
Token type. Definition at line 253 of file cfl_token.h. The documentation for this class was generated from the following files: |
libFAUDES 2.16b --- 2010-9-8 --- c++ source docu by doxygen 1.6.3