#include <OWBI1_CIMBase.hpp>
Inheritance diagram for OWBI1::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 OWBI1_CIMBase.hpp.
|
Reimplemented in OWBI1::CIMInstance. Definition at line 70 of file OWBI1_CIMBase.hpp. |
|
Definition at line 128 of file OWBI1_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 OWBI1_CIMBase.cpp. References ch, E_UNEXPECTED_SIGNATURE, E_UNKNOWN_VERSION, OW_ASSERT, OWBI1_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.
|
|
Set this object to NULL. This should invalidate the CIMBase object, so that subsequent operation will fail. Implemented in OWBI1::CIMClass, OWBI1::CIMDataType, OWBI1::CIMFlavor, OWBI1::CIMInstance, OWBI1::CIMMethod, OWBI1::CIMNameSpace, OWBI1::CIMObjectPath, OWBI1::CIMParameter, OWBI1::CIMParamValue, OWBI1::CIMProperty, OWBI1::CIMQualifier, OWBI1::CIMQualifierType, OWBI1::CIMScope, OWBI1::CIMUrl, and OWBI1::CIMValue. |
|
Implemented in OWBI1::CIMClass, OWBI1::CIMDataType, OWBI1::CIMFlavor, OWBI1::CIMInstance, OWBI1::CIMMethod, OWBI1::CIMNameSpace, OWBI1::CIMObjectPath, OWBI1::CIMParameter, OWBI1::CIMParamValue, OWBI1::CIMProperty, OWBI1::CIMQualifier, OWBI1::CIMQualifierType, OWBI1::CIMScope, OWBI1::CIMUrl, and OWBI1::CIMValue. |
|
Implemented in OWBI1::CIMClass, OWBI1::CIMDataType, OWBI1::CIMElement, OWBI1::CIMFlavor, OWBI1::CIMInstance, OWBI1::CIMMethod, OWBI1::CIMNameSpace, OWBI1::CIMObjectPath, OWBI1::CIMParameter, OWBI1::CIMParamValue, OWBI1::CIMProperty, OWBI1::CIMQualifier, OWBI1::CIMQualifierType, OWBI1::CIMScope, OWBI1::CIMUrl, and OWBI1::CIMValue. Referenced by OWBI1::operator<<(). |
|
Write the given class signature and version to the output stream.
Definition at line 113 of file OWBI1_CIMBase.cpp. References OW_ASSERT, OW_NAMESPACE::BinarySerialization::write(), and OW_NAMESPACE::BinarySerialization::writeLen(). |
|
Write the given class signature to an output stream.
|