version 1.1.2.16, 2009/09/29 15:11:51
|
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 |
|
|
// printf("\ninst.hdr->refCount=%u\n",inst.hdr->refCount.get()); | // printf("\ninst.hdr->refCount=%u\n",inst.hdr->refCount.get()); |
}; | }; |
| |
void Unref(); |
void Unref() |
|
{ |
|
if (inst.hdr->refCount.decAndTestIfZero()) |
|
{ |
|
// printf("\ninst.hdr->refCount=%u\n",inst.hdr->refCount.get()); |
|
// All external references has to be destroyed. |
|
_destroyExternalReferences(); |
|
// The class has also be dereferenced. |
|
delete inst.hdr->theClass; |
|
free(inst.base); |
|
inst.base=NULL; |
|
} |
|
else |
|
{ |
|
// printf("\ninst.hdr->refCount=%u\n",inst.hdr->refCount.get()); |
|
} |
|
|
|
}; |
|
|
| |
void _destroyExternalReferences(); | void _destroyExternalReferences(); |
| |
|
|
| |
SCMO_RC _setKeyBindingFromString(const char* name,String cimKeyBinding); | SCMO_RC _setKeyBindingFromString(const char* name,String cimKeyBinding); |
| |
Boolean _setCimKeyBindingStringToSCMOKeyBindigValue( |
Boolean _setCimKeyBindingStringToSCMOKeyBindingValue( |
const String& kbs, | const String& kbs, |
CIMType type, | CIMType type, |
SCMBKeyBindingValue& scmoKBV | SCMBKeyBindingValue& scmoKBV |