#include <OW_CIMBase.hpp>
Inheritance diagram for OW_NAMESPACE::CIMBase:
Public Types | |
enum | EErrorCodes { E_UNEXPECTED_SIGNATURE, E_UNKNOWN_VERSION } |
Public Member Functions | |
virtual | ~CIMBase () |
virtual void | setNull ()=0 |
Set this object to NULL. | |
virtual String | toString () const =0 |
virtual String | toMOF () const =0 |
Static Public Member Functions | |
static void | readSig (std::istream &istrm, const char *const sig) |
Read the specified signature from the input stream. | |
static UInt32 | readSig (std::istream &istrm, const char *const sig, const char *const verSig, UInt32 maxVersion) |
Read one of two given signatures from the input stream. | |
static void | writeSig (std::ostream &ostrm, const char *const sig) |
Write the given class signature to an output stream. | |
static void | writeSig (std::ostream &ostrm, const char *const sig, UInt32 version) |
Write the given class signature and version to the output stream. |
(i.e. CIMClass, CIMInstance, etc...). It ensures that all derived class will support the specified interface.
Definition at line 52 of file OW_CIMBase.hpp.
|
Reimplemented in OW_NAMESPACE::CIMInstance. Definition at line 70 of file OW_CIMBase.hpp. |
|
Definition at line 128 of file OW_CIMBase.cpp. |
|
Read one of two given signatures from the input stream. Each class derived from CIMBase must have a uniqe signature associated with it. Older class signatures represent a data format that do not have a format version associated with it. If the older signature is read then the format version is assumed to be zero. If the new signature is read, then the version is read as well. This version will be given to the caller so the object can be read in it's proper form.
Definition at line 70 of file OW_CIMBase.cpp. References ch, E_UNEXPECTED_SIGNATURE, E_UNKNOWN_VERSION, OW_ASSERT, OW_THROW_ERR, OW_NAMESPACE::BinarySerialization::read(), and OW_NAMESPACE::BinarySerialization::readLen(). |
|
Read the specified signature from the input stream. Each class derived from CIMBase must have a unique signature associated with it. If the signature that is being read from the stream doesn't match the one provided, an BadCIMSignatureException will be thrown.
Referenced by OW_NAMESPACE::MetaRepository::_getClassNameFromNode(). |
|
Set this object to NULL. This should invalidate the CIMBase object, so that subsequent operation will fail. Implemented in OW_NAMESPACE::CIMClass, OW_NAMESPACE::CIMDataType, OW_NAMESPACE::CIMFlavor, OW_NAMESPACE::CIMInstance, OW_NAMESPACE::CIMMethod, OW_NAMESPACE::CIMNameSpace, OW_NAMESPACE::CIMObjectPath, OW_NAMESPACE::CIMParameter, OW_NAMESPACE::CIMParamValue, OW_NAMESPACE::CIMProperty, OW_NAMESPACE::CIMQualifier, OW_NAMESPACE::CIMQualifierType, OW_NAMESPACE::CIMScope, OW_NAMESPACE::CIMUrl, and OW_NAMESPACE::CIMValue. Referenced by OW_NAMESPACE::GenericHDBRepository::nodeToCIMObject(). |
|
|
Implemented in OW_NAMESPACE::CIMClass, OW_NAMESPACE::CIMDataType, OW_NAMESPACE::CIMElement, OW_NAMESPACE::CIMFlavor, OW_NAMESPACE::CIMInstance, OW_NAMESPACE::CIMMethod, OW_NAMESPACE::CIMNameSpace, OW_NAMESPACE::CIMObjectPath, OW_NAMESPACE::CIMParameter, OW_NAMESPACE::CIMParamValue, OW_NAMESPACE::CIMProperty, OW_NAMESPACE::CIMQualifier, OW_NAMESPACE::CIMQualifierType, OW_NAMESPACE::CIMScope, OW_NAMESPACE::CIMUrl, and OW_NAMESPACE::CIMValue. Referenced by OW_NAMESPACE::operator<<(). |
|
Write the given class signature and version to the output stream.
Definition at line 113 of file OW_CIMBase.cpp. References OW_ASSERT, OW_NAMESPACE::BinarySerialization::write(), and OW_NAMESPACE::BinarySerialization::writeLen(). |
|
Write the given class signature to an output stream.
|