version 1.1.2.14, 2009/09/18 10:14:13
|
version 1.1.2.18, 2009/09/30 15:51:28
|
|
|
* Determines whether the object has been initialized. | * Determines whether the object has been initialized. |
* @return True if the object has not been initialized, false otherwise. | * @return True if the object has not been initialized, false otherwise. |
*/ | */ |
Boolean isUninitialized( ) const {return (inst.base == NULL); }; |
Boolean isUninitialized( ) const {return (0 == inst.base); }; |
| |
/** | /** |
* Determies if two objects are referencing to the same instance | * Determies if two objects are referencing to the same instance |
|
|
if (inst.hdr->refCount.decAndTestIfZero()) | if (inst.hdr->refCount.decAndTestIfZero()) |
{ | { |
// printf("\ninst.hdr->refCount=%u\n",inst.hdr->refCount.get()); | // printf("\ninst.hdr->refCount=%u\n",inst.hdr->refCount.get()); |
|
// All external references has to be destroyed. |
|
_destroyExternalReferences(); |
// The class has also be dereferenced. | // The class has also be dereferenced. |
delete inst.hdr->theClass; | delete inst.hdr->theClass; |
free(inst.base); | free(inst.base); |
|
|
} | } |
| |
}; | }; |
|
|
|
|
|
void _destroyExternalReferences(); |
|
|
/** | /** |
* A SCMOInstance can only be created by a SCMOClass | * A SCMOInstance can only be created by a SCMOClass |
*/ | */ |
SCMOInstance(); | SCMOInstance(); |
| |
void _initSCMOInstance( |
void _initSCMOInstance(SCMOClass* pClass); |
SCMOClass* pClass, |
|
Boolean inclQual, |
|
Boolean inclOrigin); |
|
| |
|
void _setCIMInstance(const CIMInstance& cimInstance); |
| |
SCMO_RC _getPropertyAtNodeIndex( | SCMO_RC _getPropertyAtNodeIndex( |
Uint32 pos, | Uint32 pos, |
|
|
| |
void _setCIMValueAtNodeIndex(Uint32 node, CIMValueRep* valRep); | void _setCIMValueAtNodeIndex(Uint32 node, CIMValueRep* valRep); |
| |
void _getCIMValueFromSCMBUnion( |
static void _getCIMValueFromSCMBUnion( |
CIMValue& cimV, | CIMValue& cimV, |
const CIMType type, | const CIMType type, |
const Boolean isNull, | const Boolean isNull, |
const Boolean isArray, | const Boolean isArray, |
const Uint32 arraySize, | const Uint32 arraySize, |
const SCMBUnion& scmbUn, | const SCMBUnion& scmbUn, |
const char * base) const; |
const char * base); |
| |
void _getCIMValueFromSCMBValue( |
static void _getCIMValueFromSCMBValue( |
CIMValue& cimV, | CIMValue& cimV, |
const SCMBValue& scmbV, | const SCMBValue& scmbV, |
const char * base) const; |
const char * base); |
| |
CIMProperty _getCIMPropertyAtNodeIndex(Uint32 nodeIdx) const; | CIMProperty _getCIMPropertyAtNodeIndex(Uint32 nodeIdx) const; |
| |
|
|
Uint32 size, | Uint32 size, |
SCMBUnion & u); | SCMBUnion & u); |
| |
static void _setNonRefUnionValue( |
static void _setUnionValue( |
Uint64 start, | Uint64 start, |
SCMBMgmt_Header** pmem, | SCMBMgmt_Header** pmem, |
CIMType type, | CIMType type, |
|
|
| |
SCMO_RC _setKeyBindingFromString(const char* name,String cimKeyBinding); | SCMO_RC _setKeyBindingFromString(const char* name,String cimKeyBinding); |
| |
Boolean _setCimKeyBindingStringToSCMOKeyBindigValue( |
Boolean _setCimKeyBindingStringToSCMOKeyBindingValue( |
const char* v, |
const String& kbs, |
Uint32 len, |
|
CIMType type, | CIMType type, |
SCMBKeyBindingValue& scmoKBV | SCMBKeyBindingValue& scmoKBV |
); | ); |