XMLVariant Class Reference
[XML]
Variant data type_ for xml data.
More...
Public Types | |
| enum | TYPES { TYPE_STRING = 0, TYPE_CHAR = 1, TYPE_SHORT = 2, TYPE_INT = 3, TYPE_LONG = 4, TYPE_UNSIGNEDCHAR = 5, TYPE_UNSIGNEDSHORT = 6, TYPE_UNSIGNEDINT = 7, TYPE_UNSIGNEDLONG = 8, TYPE_FLOAT = 9, TYPE_DOUBLE = 10, TYPE_BOOL = 11, TYPE_NOTHING = 255 } |
Public Member Functions | |
| ~XMLVariant () | |
| XMLVariant () | |
| XMLVariant (const XMLVariant &value) | |
| XMLVariant (char value) | |
| XMLVariant (short value) | |
| XMLVariant (int value) | |
| XMLVariant (long value) | |
| XMLVariant (unsigned char value) | |
| XMLVariant (unsigned short value) | |
| XMLVariant (unsigned int value) | |
| XMLVariant (unsigned long value) | |
| XMLVariant (float value) | |
| XMLVariant (double value) | |
| XMLVariant (bool value) | |
| XMLVariant (char *value) | |
| XMLVariant (const char *value) | |
| const XMLVariant & | operator= (const XMLVariant &value) |
| char | operator= (char value) |
| short | operator= (short value) |
| int | operator= (int value) |
| long | operator= (long value) |
| unsigned char | operator= (unsigned char value) |
| unsigned short | operator= (unsigned short value) |
| unsigned int | operator= (unsigned int value) |
| unsigned long | operator= (unsigned long value) |
| float | operator= (float value) |
| double | operator= (double value) |
| bool | operator= (bool value) |
| char * | operator= (char *value) |
| const char * | operator= (const char *value) |
| operator char () const | |
| operator short () const | |
| operator int () const | |
| operator long () const | |
| operator unsigned char () const | |
| operator unsigned short () const | |
| operator unsigned int () const | |
| operator unsigned long () const | |
| operator float () const | |
| operator double () const | |
| operator bool () const | |
| operator char * () const | |
| operator const char * () const | |
Friends | |
| class | XMLAttribute |
| class | XMLTextParser |
Detailed Description
Variant data type_ for xml data.This data type_ is used to encapsulate data that is parsed by the xml system, and enables the class interested in the data to retrieve the data as any type it wants. The XMLVariant will perform any necessary conversions, or if the value it is storing is already in the requested format, it will simply return it, introducing only a small overhead.
- Todo:
- Move implementation to .cpp file
Definition at line 29 of file XMLVariant.h.
Member Enumeration Documentation
| enum XMLVariant::TYPES |
- Enumerator:
-
TYPE_STRING TYPE_CHAR TYPE_SHORT TYPE_INT TYPE_LONG TYPE_UNSIGNEDCHAR TYPE_UNSIGNEDSHORT TYPE_UNSIGNEDINT TYPE_UNSIGNEDLONG TYPE_FLOAT TYPE_DOUBLE TYPE_BOOL TYPE_NOTHING
Definition at line 34 of file XMLVariant.h.
Constructor & Destructor Documentation
| XMLVariant::~XMLVariant | ( | ) |
Definition at line 52 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | ) |
Definition at line 62 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | const XMLVariant & | value | ) |
Definition at line 68 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | char | value | ) |
Definition at line 81 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | short | value | ) |
Definition at line 87 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | int | value | ) |
Definition at line 93 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | long | value | ) |
Definition at line 99 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | unsigned char | value | ) |
Definition at line 105 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | unsigned short | value | ) |
Definition at line 111 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | unsigned int | value | ) |
Definition at line 117 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | unsigned long | value | ) |
Definition at line 123 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | float | value | ) |
Definition at line 129 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | double | value | ) |
Definition at line 135 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | bool | value | ) |
Definition at line 141 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | char * | value | ) |
Definition at line 147 of file XMLVariant.h.
| XMLVariant::XMLVariant | ( | const char * | value | ) |
Definition at line 153 of file XMLVariant.h.
Member Function Documentation
| const XMLVariant& XMLVariant::operator= | ( | const XMLVariant & | value | ) |
Definition at line 160 of file XMLVariant.h.
| char XMLVariant::operator= | ( | char | value | ) |
Definition at line 180 of file XMLVariant.h.
| short XMLVariant::operator= | ( | short | value | ) |
Definition at line 191 of file XMLVariant.h.
| int XMLVariant::operator= | ( | int | value | ) |
Definition at line 202 of file XMLVariant.h.
| long XMLVariant::operator= | ( | long | value | ) |
Definition at line 213 of file XMLVariant.h.
| unsigned char XMLVariant::operator= | ( | unsigned char | value | ) |
Definition at line 224 of file XMLVariant.h.
| unsigned short XMLVariant::operator= | ( | unsigned short | value | ) |
Definition at line 235 of file XMLVariant.h.
| unsigned int XMLVariant::operator= | ( | unsigned int | value | ) |
Definition at line 246 of file XMLVariant.h.
| unsigned long XMLVariant::operator= | ( | unsigned long | value | ) |
Definition at line 257 of file XMLVariant.h.
| float XMLVariant::operator= | ( | float | value | ) |
Definition at line 268 of file XMLVariant.h.
| double XMLVariant::operator= | ( | double | value | ) |
Definition at line 279 of file XMLVariant.h.
| bool XMLVariant::operator= | ( | bool | value | ) |
Definition at line 290 of file XMLVariant.h.
| char* XMLVariant::operator= | ( | char * | value | ) |
Definition at line 301 of file XMLVariant.h.
| const char* XMLVariant::operator= | ( | const char * | value | ) |
Definition at line 312 of file XMLVariant.h.
| XMLVariant::operator char | ( | ) | const |
Definition at line 326 of file XMLVariant.h.
| XMLVariant::operator short | ( | ) | const |
Definition at line 361 of file XMLVariant.h.
| XMLVariant::operator int | ( | ) | const |
Definition at line 396 of file XMLVariant.h.
| XMLVariant::operator long | ( | ) | const |
Definition at line 431 of file XMLVariant.h.
| XMLVariant::operator unsigned char | ( | ) | const |
Definition at line 466 of file XMLVariant.h.
| XMLVariant::operator unsigned short | ( | ) | const |
Definition at line 501 of file XMLVariant.h.
| XMLVariant::operator unsigned int | ( | ) | const |
Definition at line 536 of file XMLVariant.h.
| XMLVariant::operator unsigned long | ( | ) | const |
Definition at line 571 of file XMLVariant.h.
| XMLVariant::operator float | ( | ) | const |
Definition at line 606 of file XMLVariant.h.
| XMLVariant::operator double | ( | ) | const |
Definition at line 641 of file XMLVariant.h.
| XMLVariant::operator bool | ( | ) | const |
Definition at line 677 of file XMLVariant.h.
| XMLVariant::operator char * | ( | ) | const |
Definition at line 715 of file XMLVariant.h.
| XMLVariant::operator const char * | ( | ) | const |
Definition at line 772 of file XMLVariant.h.
Friends And Related Function Documentation
friend class XMLAttribute [friend] |
Definition at line 31 of file XMLVariant.h.
friend class XMLTextParser [friend] |
Definition at line 32 of file XMLVariant.h.
Member Data Documentation
| char XMLVariant::charVal |
Definition at line 826 of file XMLVariant.h.
| short XMLVariant::shortVal |
Definition at line 827 of file XMLVariant.h.
Definition at line 828 of file XMLVariant.h.
| long XMLVariant::longVal |
Definition at line 829 of file XMLVariant.h.
| unsigned char XMLVariant::ucharVal |
Definition at line 830 of file XMLVariant.h.
| unsigned short XMLVariant::ushortVal |
Definition at line 831 of file XMLVariant.h.
| unsigned int XMLVariant::uintVal |
Definition at line 832 of file XMLVariant.h.
| unsigned long XMLVariant::ulongVal |
Definition at line 833 of file XMLVariant.h.
| float XMLVariant::floatVal |
Definition at line 834 of file XMLVariant.h.
| double XMLVariant::doubleVal |
Definition at line 835 of file XMLVariant.h.
| bool XMLVariant::boolVal |
Definition at line 836 of file XMLVariant.h.
| char* XMLVariant::stringVal |
Definition at line 837 of file XMLVariant.h.
Reproduction/republishing of any material on this site without permission is strictly prohibited.
