Public methods | |
bool | ParseStl (const CFormat *format, const TString &str) |
Parses a formatted STL string to the non-formatted value. | |
EnType | GetType () const |
Gets a value type. | |
void | Serialize (CSerializer &serializer) |
Serializes this object to CSerializer. | |
static unsigned char | GetSerializeVertion () |
Gets a serialization version. | |
Public Member Functions | |
CValue () | |
CValue (const CValue &v) | |
CValue (const TString &v) | |
CValue (char v) | |
CValue (unsigned char v) | |
CValue (short v) | |
CValue (unsigned short v) | |
CValue (long v) | |
CValue (unsigned long v) | |
CValue (int64 v) | |
CValue (bool v) | |
CValue (float v) | |
CValue (double v) | |
CValue (CDataObject *v) | |
TString | FormatStl (const CFormat *format) const |
Formats value to the formatted STL string. | |
CString | FormatMfc (const CFormat *format) const |
Formats value to the MFC formatted string. | |
bool | ParseMfc (const CFormat *format, const CString &str) |
Parses a MFC formatted string to the non-formatted value. | |
Assignment operators | |
CValue & | operator= (const CValue &) |
CValue & | operator= (const TString &) |
CValue & | operator= (char) |
CValue & | operator= (unsigned char) |
CValue & | operator= (short) |
CValue & | operator= (unsigned short) |
CValue & | operator= (long) |
CValue & | operator= (unsigned long) |
CValue & | operator= (int64) |
CValue & | operator= (float) |
CValue & | operator= (bool) |
CValue & | operator= (double) |
CValue & | operator= (CDataObject *) |
Conversion operator | |
operator const TString & () const | |
operator char () const | |
operator unsigned char () const | |
operator short () const | |
operator unsigned short () const | |
operator long () const | |
operator unsigned long () const | |
operator int64 () const | |
operator bool () const | |
operator float () const | |
operator double () const | |
operator CDataObject * () const | |
Equality operators | |
bool | operator== (const CValue &) const |
bool | operator== (const TString &) const |
bool | operator== (char) const |
bool | operator== (unsigned char) const |
bool | operator== (short) const |
bool | operator== (unsigned short) const |
bool | operator== (long) const |
bool | operator== (unsigned long) const |
bool | operator== (int64) const |
bool | operator== (bool) const |
bool | operator== (float) const |
bool | operator== (double) const |
bool | operator== (CDataObject *) const |
Operators "not equal" | |
bool | operator!= (const CValue &) const |
bool | operator!= (const TString &) const |
bool | operator!= (char) const |
bool | operator!= (unsigned char) const |
bool | operator!= (short) const |
bool | operator!= (unsigned short) const |
bool | operator!= (long) const |
bool | operator!= (unsigned long) const |
bool | operator!= (int64) const |
bool | operator!= (bool) const |
bool | operator!= (float) const |
bool | operator!= (double) const |
bool | operator!= (CDataObject *) const |
Operators "less than" | |
bool | operator< (const CValue &) const |
bool | operator< (const TString &) const |
bool | operator< (char) const |
bool | operator< (unsigned char) const |
bool | operator< (short) const |
bool | operator< (unsigned short) const |
bool | operator< (long) const |
bool | operator< (unsigned long) const |
bool | operator< (int64) const |
bool | operator< (bool) const |
bool | operator< (double) const |
bool | operator< (float) const |
bool | operator< (CDataObject *) const |
Operators "less than or equal to" | |
bool | operator<= (const CValue &) const |
bool | operator<= (const TString &) const |
bool | operator<= (char) const |
bool | operator<= (unsigned char) const |
bool | operator<= (short) const |
bool | operator<= (unsigned short) const |
bool | operator<= (long) const |
bool | operator<= (unsigned long) const |
bool | operator<= (int64) const |
bool | operator<= (bool) const |
bool | operator<= (float) const |
bool | operator<= (double) const |
bool | operator<= (CDataObject *) const |
Operators "greater than" | |
bool | operator> (const CValue &) const |
bool | operator> (const TString &) const |
bool | operator> (char) const |
bool | operator> (unsigned char) const |
bool | operator> (short) const |
bool | operator> (unsigned short) const |
bool | operator> (long) const |
bool | operator> (unsigned long) const |
bool | operator> (int64) const |
bool | operator> (bool) const |
bool | operator> (float) const |
bool | operator> (double) const |
bool | operator> (CDataObject *) const |
Operators "greater than or equal to" | |
bool | operator>= (const CValue &) const |
bool | operator>= (const TString &) const |
bool | operator>= (char) const |
bool | operator>= (unsigned char) const |
bool | operator>= (short) const |
bool | operator>= (unsigned short) const |
bool | operator>= (long) const |
bool | operator>= (unsigned long) const |
bool | operator>= (int64) const |
bool | operator>= (bool) const |
bool | operator>= (float) const |
bool | operator>= (double) const |
bool | operator>= (CDataObject *) const |
Static Public Member Functions | |
static TString & | GetEmptyStlString () |
Returns a reference to an empty STL string. | |
static CString & | GetEmptyMfcString () |
Returns a reference to an empty MFC string. |
The value can be one of the following types:
1. STL string
2. MFC CString
3. char
4. undefined char
5. short
6. undefined short
7. long
8. undefined long
9. __int64
10. float
11. double
12. bool
CValue | ( | ) |
Default constructor
CValue | ( | const TString & | v | ) |
StlString type constructor
[in] | v | std::string value |
CValue | ( | char | v | ) |
Char type constructor
[in] | v | char value |
CValue | ( | unsigned char | v | ) |
Unsigned char type constructor
[in] | v | unsigned char value |
CValue | ( | short | v | ) |
Short type constructor
[in] | v | short value |
CValue | ( | unsigned short | v | ) |
Unsigned short type constructor
[in] | v | unsigned short value |
CValue | ( | long | v | ) |
Long type constructor
[in] | v | long value |
CValue | ( | unsigned long | v | ) |
Unsigned long type constructor
[in] | v | unsigned long value |
CValue | ( | int64 | v | ) |
Int64 type constructor
[in] | v | __int64 value |
CValue | ( | bool | v | ) |
Bool type constructor
[in] | v | bool value |
CValue | ( | float | v | ) |
Float type constructor
[in] | v | float value |
CValue | ( | double | v | ) |
Double type constructor
[in] | v | double value |
CValue | ( | CDataObject * | v | ) |
Pointer to CDataObject type constructor
[in] | v | pointer to CDataObject |
CValue & operator= | ( | const TString & | v | ) | [inline] |
[in] | v | StlString type value |
CValue & operator= | ( | char | v | ) | [inline] |
[in] | v | char type value |
CValue & operator= | ( | unsigned char | v | ) | [inline] |
[in] | v | unsigned char type value |
CValue & operator= | ( | short | v | ) | [inline] |
[in] | v | short type value |
CValue & operator= | ( | unsigned short | v | ) | [inline] |
[in] | v | unsigned short type value |
CValue & operator= | ( | long | v | ) | [inline] |
[in] | v | long type value |
CValue & operator= | ( | unsigned long | v | ) | [inline] |
[in] | v | unsigned long type value |
CValue & operator= | ( | int64 | v | ) | [inline] |
[in] | v | int64 type value |
CValue & operator= | ( | float | v | ) | [inline] |
[in] | v | float type value |
CValue & operator= | ( | bool | v | ) | [inline] |
[in] | v | bool type value |
CValue & operator= | ( | double | v | ) | [inline] |
[in] | v | double type value |
CValue & operator= | ( | CDataObject * | v | ) | [inline] |
[in] | v | pointer to CDataObject value |
operator const TString & | ( | ) | const [inline] |
operator char | ( | ) | const [inline] |
operator unsigned char | ( | ) | const [inline] |
operator short | ( | ) | const [inline] |
operator unsigned short | ( | ) | const [inline] |
operator long | ( | ) | const [inline] |
operator unsigned long | ( | ) | const [inline] |
operator int64 | ( | ) | const [inline] |
operator bool | ( | ) | const [inline] |
operator float | ( | ) | const [inline] |
operator double | ( | ) | const [inline] |
operator CDataObject * | ( | ) | const [inline] |
bool operator== | ( | const CValue & | v | ) | const |
bool operator== | ( | const TString & | v | ) | const |
[in] | v | StlString type value |
bool operator== | ( | char | v | ) | const [inline] |
[in] | v | char type value |
bool operator== | ( | unsigned char | v | ) | const [inline] |
[in] | v | unsigned char type value |
bool operator== | ( | short | v | ) | const [inline] |
[in] | v | short type value |
bool operator== | ( | unsigned short | v | ) | const [inline] |
[in] | v | unsigned short type value |
bool operator== | ( | long | v | ) | const [inline] |
[in] | v | long type value |
bool operator== | ( | unsigned long | v | ) | const [inline] |
[in] | v | unsigned long type value |
bool operator== | ( | int64 | v | ) | const [inline] |
[in] | v | int64 type value |
bool operator== | ( | bool | v | ) | const [inline] |
[in] | v | bool type value |
bool operator== | ( | float | v | ) | const [inline] |
[in] | v | float type value |
bool operator== | ( | double | v | ) | const [inline] |
[in] | v | double type value |
bool operator== | ( | CDataObject * | v | ) | const [inline] |
[in] | v | pointer to CDataObject value |
bool operator!= | ( | const CValue & | v | ) | const [inline] |
bool operator!= | ( | const TString & | v | ) | const [inline] |
[in] | v | StlString type value |
bool operator!= | ( | char | v | ) | const [inline] |
[in] | v | char type value |
bool operator!= | ( | unsigned char | v | ) | const [inline] |
[in] | v | unsigned char type value |
bool operator!= | ( | short | v | ) | const [inline] |
[in] | v | short type value |
bool operator!= | ( | unsigned short | v | ) | const [inline] |
[in] | v | unsigned short type value |
bool operator!= | ( | long | v | ) | const [inline] |
[in] | v | long type value |
bool operator!= | ( | unsigned long | v | ) | const [inline] |
[in] | v | unsigned long type value |
bool operator!= | ( | int64 | v | ) | const [inline] |
[in] | v | int64 type value |
bool operator!= | ( | bool | v | ) | const [inline] |
[in] | v | bool type value |
bool operator!= | ( | float | v | ) | const [inline] |
[in] | v | float type value |
bool operator!= | ( | double | v | ) | const [inline] |
[in] | v | double type value |
bool operator!= | ( | CDataObject * | v | ) | const [inline] |
[in] | v | pointer to CDataObject value |
bool operator< | ( | const CValue & | v | ) | const |
bool operator< | ( | const TString & | v | ) | const |
[in] | v | StlString type value |
bool operator< | ( | char | v | ) | const [inline] |
[in] | v | char type value |
bool operator< | ( | unsigned char | v | ) | const [inline] |
[in] | v | unsigned char type value |
bool operator< | ( | short | v | ) | const [inline] |
[in] | v | short type value |
bool operator< | ( | unsigned short | v | ) | const [inline] |
[in] | v | unsigned short type value |
bool operator< | ( | long | v | ) | const [inline] |
[in] | v | long type value |
bool operator< | ( | unsigned long | v | ) | const [inline] |
[in] | v | unsigned long type value |
bool operator< | ( | int64 | v | ) | const [inline] |
[in] | v | int64 type value |
bool operator< | ( | bool | v | ) | const [inline] |
[in] | v | bool type value |
bool operator< | ( | double | v | ) | const [inline] |
[in] | v | double type value |
bool operator< | ( | float | v | ) | const [inline] |
[in] | v | float type value |
bool operator< | ( | CDataObject * | v | ) | const [inline] |
[in] | v | pointer to CDataObject value |
bool operator<= | ( | const CValue & | v | ) | const |
bool operator<= | ( | const TString & | v | ) | const |
[in] | v | StlString type value |
bool operator<= | ( | char | v | ) | const [inline] |
[in] | v | char type value |
bool operator<= | ( | unsigned char | v | ) | const [inline] |
[in] | v | unsigned char type value |
bool operator<= | ( | short | v | ) | const [inline] |
[in] | v | short type value |
bool operator<= | ( | unsigned short | v | ) | const [inline] |
[in] | v | unsigned short type value |
bool operator<= | ( | long | v | ) | const [inline] |
[in] | v | long type value |
bool operator<= | ( | unsigned long | v | ) | const [inline] |
[in] | v | unsigned long type value |
bool operator<= | ( | int64 | v | ) | const [inline] |
[in] | v | int64 type value |
bool operator<= | ( | bool | v | ) | const [inline] |
[in] | v | bool type value |
bool operator<= | ( | float | v | ) | const [inline] |
[in] | v | float type value |
bool operator<= | ( | double | v | ) | const [inline] |
[in] | v | double type value |
bool operator<= | ( | CDataObject * | v | ) | const [inline] |
[in] | v | pointer to CDataObject value |
bool operator> | ( | const CValue & | v | ) | const |
bool operator> | ( | const TString & | v | ) | const |
[in] | v | StlString type value |
bool operator> | ( | char | v | ) | const [inline] |
[in] | v | char type value |
bool operator> | ( | unsigned char | v | ) | const [inline] |
[in] | v | unsigned char type value |
bool operator> | ( | short | v | ) | const [inline] |
[in] | v | short type value |
bool operator> | ( | unsigned short | v | ) | const [inline] |
[in] | v | unsigned short type value |
bool operator> | ( | long | v | ) | const [inline] |
[in] | v | long type value |
bool operator> | ( | unsigned long | v | ) | const [inline] |
[in] | v | unsigned long type value |
bool operator> | ( | int64 | v | ) | const [inline] |
[in] | v | int64 type value |
bool operator> | ( | bool | v | ) | const [inline] |
[in] | v | bool type value |
bool operator> | ( | float | v | ) | const [inline] |
[in] | v | float type value |
bool operator> | ( | double | v | ) | const [inline] |
[in] | v | double type value |
bool operator> | ( | CDataObject * | v | ) | const [inline] |
[in] | v | pointer to CDataObject value |
bool operator>= | ( | const CValue & | v | ) | const |
bool operator>= | ( | const TString & | v | ) | const |
[in] | v | StlString type value |
bool operator>= | ( | char | v | ) | const [inline] |
[in] | v | char type value |
bool operator>= | ( | unsigned char | v | ) | const [inline] |
[in] | v | unsigned char type value |
bool operator>= | ( | short | v | ) | const [inline] |
[in] | v | short type value |
bool operator>= | ( | unsigned short | v | ) | const [inline] |
[in] | v | unsigned short type value |
bool operator>= | ( | long | v | ) | const [inline] |
[in] | v | long type value |
bool operator>= | ( | unsigned long | v | ) | const [inline] |
[in] | v | unsigned long type value |
bool operator>= | ( | int64 | v | ) | const [inline] |
[in] | v | int64 type value |
bool operator>= | ( | bool | v | ) | const [inline] |
[in] | v | bool type value |
bool operator>= | ( | float | v | ) | const [inline] |
[in] | v | float type value |
bool operator>= | ( | double | v | ) | const [inline] |
[in] | v | double type value |
bool operator>= | ( | CDataObject * | v | ) | const [inline] |
[in] | v | pointer to CDataObject value |
bool ParseStl | ( | const CFormat * | format, | |
const TString & | str | |||
) |
Parses a formatted STL string to the non-formatted value.
[in] | format | Textual format which parses a string to value. If the format is not specified, the function gets a default format, returned by CFormat::GetDefaultFormat(); |
[in] | str | Formatted string |
EnType GetType | ( | ) | const [inline] |
Gets a value type.
unsigned char GetSerializeVertion | ( | ) | [static] |
Gets a serialization version.
void Serialize | ( | CSerializer & | serializer | ) |
Serializes this object to CSerializer.
Serializes CValue object to the serializer. To reduce Common library dependence on external libraries (including MFC) CSerializer class have been added, which resembles CArchive class, existing in MFC library.
[in] | serializer | Object of CSerializer class |
Copyright Dapfor 2007-2009 | Generated on Wed Jul 7 03:24:43 2010 for MFCGrid by 1.5.5 |