#include <OWBI1_CIMDataType.hpp>
Inheritance diagram for OWBI1::CIMDataType:
Public Types | |
typedef detail::CIMDataTypeRepRef CIMDataType::* | safe_bool |
enum | { SIZE_SINGLE, SIZE_UNLIMITED, SIZE_LIMITED } |
enum | Type { CIMNULL = 0, UINT8 = 1, SINT8 = 2, UINT16 = 3, SINT16 = 4, UINT32 = 5, SINT32 = 6, UINT64 = 7, SINT64 = 8, STRING = 9, BOOLEAN = 10, REAL32 = 11, REAL64 = 12, DATETIME = 13, CHAR16 = 14, REFERENCE = 15, EMBEDDEDCLASS = 16, EMBEDDEDINSTANCE = 17, MAXDATATYPE = 18, INVALID = 99 } |
Public Member Functions | |
CIMDataType () | |
Create an CIMDataType. | |
CIMDataType (CIMNULL_t) | |
Create a NULL CIMDataType No operations should be attempted on a NULL CIMDataType. | |
CIMDataType (Type type) | |
Create a new CIMDataType object represent the given type. | |
CIMDataType (Type type, Int32 size) | |
Create a new CIMDataType object representing the given type. | |
CIMDataType (const CIMName &refClassName) | |
Create a new CIMDataType object that represents a REFERENCE data type. | |
CIMDataType (const CIMDataType &arg) | |
Copy constructor. | |
CIMDataType (const detail::CIMDataTypeRepRef &rep) | |
~CIMDataType () | |
Destroy this CIMDataType object. | |
virtual void | setNull () |
Set this to a null object. | |
CIMDataType & | operator= (const CIMDataType &arg) |
Assignment operator. | |
bool | syncWithValue (const CIMValue &value) |
Set this CIMDataType to represent a given CIMValue. | |
bool | setToArrayType (Int32 size) |
Set this datatype to an array type. | |
bool | isArrayType () const |
bool | isNumericType () const |
bool | isReferenceType () const |
Type | getType () const |
Int32 | getSize () const |
String | getRefClassName () const |
operator safe_bool () const | |
bool | operator! () const |
bool | equals (const CIMDataType &arg) const |
Check a given CIMDataType with this one for equality. | |
virtual void | readObject (std::istream &istrm) |
Read this CIMDataType from an inputstream. | |
virtual void | writeObject (std::ostream &ostrm) const |
Write this CIMDataType to an output stream. | |
virtual String | toString () const |
virtual String | toMOF () const |
String | getArrayMOF () const |
detail::CIMDataTypeRepRef | getRep () const |
Static Public Member Functions | |
static CIMDataType | getDataType (const String &strType) |
Create an CIMDataType object represented by a given string. | |
static Type | strToSimpleType (const String &strType) |
Determine the int data type associated with a name of a data type. | |
static bool | isNumericType (Type type) |
Determine if a given data type is numeric. | |
Private Attributes | |
detail::CIMDataTypeRepRef | m_rep |
Friends | |
bool | operator< (const CIMDataType &x, const CIMDataType &y) |
bool | operator== (const CIMDataType &x, const CIMDataType &y) |
Definition at line 55 of file OWBI1_CIMDataType.hpp.
|
Definition at line 176 of file OWBI1_CIMDataType.hpp. |
|
Definition at line 58 of file OWBI1_CIMDataType.hpp. |
|
Definition at line 64 of file OWBI1_CIMDataType.hpp. |
|
Create an CIMDataType.
Definition at line 51 of file OWBI1_CIMDataType.cpp. Referenced by getDataType(). |
|
Create a NULL CIMDataType No operations should be attempted on a NULL CIMDataType.
Definition at line 56 of file OWBI1_CIMDataType.cpp. |
|
Create a new CIMDataType object represent the given type. This constructor is for non-array and non-reference types.
Definition at line 61 of file OWBI1_CIMDataType.cpp. |
|
Create a new CIMDataType object representing the given type.
Definition at line 66 of file OWBI1_CIMDataType.cpp. |
|
Create a new CIMDataType object that represents a REFERENCE data type.
Definition at line 164 of file OWBI1_CIMDataType.cpp. |
|
Copy constructor.
Definition at line 71 of file OWBI1_CIMDataType.cpp. |
|
Definition at line 75 of file OWBI1_CIMDataType.cpp. |
|
Destroy this CIMDataType object.
Definition at line 81 of file OWBI1_CIMDataType.cpp. |
|
Check a given CIMDataType with this one for equality.
Definition at line 170 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Definition at line 201 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Create an CIMDataType object represented by a given string.
Definition at line 215 of file OWBI1_CIMDataType.cpp. References OWBI1::String::c_str(), and CIMDataType(). |
|
Definition at line 136 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Definition at line 222 of file OWBI1_CIMDataType.cpp. References m_rep. Referenced by OWBI1::CIMValueCast::castValueToDataType(), and OWBI1::CIMQualifierType::setDataType(). |
|
Definition at line 130 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Definition at line 124 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Definition at line 99 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Determine if a given data type is numeric.
Definition at line 112 of file OWBI1_CIMDataType.cpp. |
|
Definition at line 105 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Definition at line 118 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Definition at line 141 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Definition at line 147 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Assignment operator.
Definition at line 92 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Read this CIMDataType from an inputstream.
Implements OWBI1::SerializableIFC. |
|
Set this to a null object.
Implements OWBI1::CIMBase. Definition at line 86 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Set this datatype to an array type.
Definition at line 153 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Determine the int data type associated with a name of a data type.
Definition at line 208 of file OWBI1_CIMDataType.cpp. References OWBI1::String::c_str(). |
|
Set this CIMDataType to represent a given CIMValue.
Definition at line 159 of file OWBI1_CIMDataType.cpp. References OWBI1::CIMValue::getRep(), and m_rep. |
|
Implements OWBI1::CIMBase. Definition at line 194 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Implements OWBI1::CIMBase. Definition at line 188 of file OWBI1_CIMDataType.cpp. References m_rep. |
|
Write this CIMDataType to an output stream.
Implements OWBI1::SerializableIFC. |
|
Definition at line 228 of file OWBI1_CIMDataType.cpp. |
|
Definition at line 234 of file OWBI1_CIMDataType.cpp. |
|
Definition at line 245 of file OWBI1_CIMDataType.hpp. Referenced by equals(), getArrayMOF(), getRefClassName(), getRep(), getSize(), getType(), isArrayType(), isNumericType(), isReferenceType(), operator safe_bool(), operator!(), OWBI1::operator<(), operator=(), OWBI1::operator==(), setNull(), setToArrayType(), syncWithValue(), toMOF(), and toString(). |