#include <OW_CIMDataType.hpp>
Inheritance diagram for OW_NAMESPACE::CIMDataType:
Public Types | |
typedef COWIntrusiveReference< DTData > 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 () | |
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 |
bool | isEmbeddedObjectType () 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 |
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 | |
COWIntrusiveReference< DTData > | m_pdata |
Friends | |
bool | operator< (const CIMDataType &x, const CIMDataType &y) |
bool | operator== (const CIMDataType &x, const CIMDataType &y) |
Classes | |
struct | DTData |
Definition at line 55 of file OW_CIMDataType.hpp.
|
Definition at line 180 of file OW_CIMDataType.hpp. |
|
Definition at line 59 of file OW_CIMDataType.hpp. |
|
Definition at line 65 of file OW_CIMDataType.hpp. |
|
Create an CIMDataType.
Definition at line 80 of file OW_CIMDataType.cpp. References CIMNULL, and m_pdata. Referenced by getDataType(). |
|
Create a NULL CIMDataType No operations should be attempted on a NULL CIMDataType.
Definition at line 87 of file OW_CIMDataType.cpp. |
|
Create a new CIMDataType object represent the given type. This constructor is for non-array and non-reference types.
Definition at line 92 of file OW_CIMDataType.cpp. References CIMNULL, m_pdata, MAXDATATYPE, OW_ASSERT, and SIZE_SINGLE. |
|
Create a new CIMDataType object representing the given type.
Definition at line 101 of file OW_CIMDataType.cpp. References CIMNULL, m_pdata, MAXDATATYPE, OW_ASSERT, SIZE_LIMITED, and SIZE_UNLIMITED. |
|
Create a new CIMDataType object that represents a REFERENCE data type.
Definition at line 262 of file OW_CIMDataType.cpp. References m_pdata, REFERENCE, and SIZE_SINGLE. |
|
Copy constructor.
Definition at line 111 of file OW_CIMDataType.cpp. |
|
Destroy this CIMDataType object.
Definition at line 114 of file OW_CIMDataType.cpp. |
|
Check a given CIMDataType with this one for equality.
Definition at line 272 of file OW_CIMDataType.cpp. References m_pdata. |
|
Definition at line 400 of file OW_CIMDataType.cpp. References getSize(), isArrayType(), m_pdata, OW_NAMESPACE::StringBuffer::releaseString(), and SIZE_UNLIMITED. |
|
Create an CIMDataType object represented by a given string.
Definition at line 881 of file OW_CIMDataType.cpp. References CIMDataType(), and OW_NAMESPACE::String::empty(). Referenced by OW_NAMESPACE::MOF::CIMOMVisitor::VisitQualifierType(). |
|
Definition at line 191 of file OW_CIMDataType.cpp. References m_pdata. Referenced by OW_NAMESPACE::AssocDb2::addOrDeleteEntries(), and OW_NAMESPACE::AssocDbHandle::addOrDeleteEntries(). |
|
Definition at line 185 of file OW_CIMDataType.cpp. References m_pdata. Referenced by getArrayMOF(). |
|
Definition at line 179 of file OW_CIMDataType.cpp. References m_pdata. Referenced by OW_NAMESPACE::AssocDb2::addOrDeleteEntries(), OW_NAMESPACE::AssocDbHandle::addOrDeleteEntries(), OW_NAMESPACE::CIMValueCast::castValueToDataType(), OW_NAMESPACE::CIMtoXML(), and OW_NAMESPACE::convertArray(). |
|
Definition at line 132 of file OW_CIMDataType.cpp. References m_pdata, and SIZE_SINGLE. Referenced by OW_NAMESPACE::CIMValueCast::castValueToDataType(), OW_NAMESPACE::convertArray(), getArrayMOF(), OW_NAMESPACE::outputKEYVALUE(), and syncWithValue(). |
|
Definition at line 173 of file OW_CIMDataType.cpp. References EMBEDDEDCLASS, EMBEDDEDINSTANCE, and m_pdata. Referenced by OW_NAMESPACE::CIMParamValueToXML(). |
|
Determine if a given data type is numeric.
Definition at line 145 of file OW_CIMDataType.cpp. References REAL32, REAL64, SINT16, SINT32, SINT64, SINT8, UINT16, UINT32, UINT64, and UINT8. |
|
Definition at line 138 of file OW_CIMDataType.cpp. References m_pdata. |
|
Definition at line 167 of file OW_CIMDataType.cpp. |
|
Definition at line 196 of file OW_CIMDataType.cpp. |
|
Definition at line 208 of file OW_CIMDataType.cpp. |
|
Assignment operator.
Definition at line 125 of file OW_CIMDataType.cpp. References m_pdata. |
|
Read this CIMDataType from an inputstream.
Implements OW_NAMESPACE::SerializableIFC. |
|
Set this to a null object.
Implements OW_NAMESPACE::CIMBase. Definition at line 119 of file OW_CIMDataType.cpp. References m_pdata. |
|
Set this datatype to an array type.
Definition at line 219 of file OW_CIMDataType.cpp. References m_pdata, SIZE_LIMITED, and SIZE_UNLIMITED. Referenced by OW_NAMESPACE::XMLCIMFactory::createParameter(), and OW_NAMESPACE::CIMValue::CIMValueImpl::getCIMDataType(). |
|
Determine the int data type associated with a name of a data type.
Definition at line 418 of file OW_CIMDataType.cpp. References INVALID. |
|
Set this CIMDataType to represent a given CIMValue.
Definition at line 228 of file OW_CIMDataType.cpp. References CIMNULL, OW_NAMESPACE::CIMValue::getType(), OW_NAMESPACE::CIMValue::isArray(), isArrayType(), m_pdata, SIZE_SINGLE, and SIZE_UNLIMITED. |
|
Implements OW_NAMESPACE::CIMBase. Definition at line 386 of file OW_CIMDataType.cpp. References m_pdata, REFERENCE, and toString(). |
|
Implements OW_NAMESPACE::CIMBase. Definition at line 311 of file OW_CIMDataType.cpp. References BOOLEAN, CHAR16, DATETIME, EMBEDDEDCLASS, EMBEDDEDINSTANCE, m_pdata, REAL32, REAL64, REFERENCE, SINT16, SINT32, SINT64, SINT8, STRING, UINT16, UINT32, UINT64, and UINT8. Referenced by OW_NAMESPACE::CIMValueCast::castValueToDataType(), OW_NAMESPACE::CIMParamValueToXML(), OW_NAMESPACE::CIMtoXML(), OW_NAMESPACE::convertString(), OW_NAMESPACE::CIMXMLCIMOMHandle::invokeMethod(), and toMOF(). |
|
Write this CIMDataType to an output stream.
Implements OW_NAMESPACE::SerializableIFC. |
|
Definition at line 896 of file OW_CIMDataType.cpp. |
|
Definition at line 902 of file OW_CIMDataType.cpp. |
|
Definition at line 246 of file OW_CIMDataType.hpp. Referenced by CIMDataType(), equals(), getArrayMOF(), getRefClassName(), getSize(), getType(), isArrayType(), isEmbeddedObjectType(), isNumericType(), isReferenceType(), operator safe_bool(), operator!(), OW_NAMESPACE::operator<(), operator=(), OW_NAMESPACE::operator==(), setNull(), setToArrayType(), syncWithValue(), toMOF(), and toString(). |