version 1.1.2.13, 2009/09/18 09:11:11
|
version 1.1.2.18, 2009/09/30 15:51:28
|
|
|
SCMO_RC setPropertyWithOrigin( | SCMO_RC setPropertyWithOrigin( |
const char* name, | const char* name, |
CIMType type, | CIMType type, |
SCMBUnion* value, |
const SCMBUnion* value, |
Boolean isArray=false, | Boolean isArray=false, |
Uint32 size = 0, | Uint32 size = 0, |
const char* origin = NULL); | const char* origin = NULL); |
|
|
SCMO_RC setPropertyWithNodeIndex( | SCMO_RC setPropertyWithNodeIndex( |
Uint32 node, | Uint32 node, |
CIMType type, | CIMType type, |
SCMBUnion* pInVal, |
const SCMBUnion* pInVal, |
Boolean isArray=false, | Boolean isArray=false, |
Uint32 size = 0); | Uint32 size = 0); |
| |
|
|
SCMO_RC setKeyBinding( | SCMO_RC setKeyBinding( |
const char* name, | const char* name, |
CIMType type, | CIMType type, |
SCMBUnion* keyvalue); |
const SCMBUnion* keyvalue); |
| |
/** | /** |
* Set/replace the key binding at node | * Set/replace the key binding at node |
|
|
SCMO_RC setKeyBindingAt( | SCMO_RC setKeyBindingAt( |
Uint32 node, | Uint32 node, |
CIMType type, | CIMType type, |
SCMBUnion* keyvalue); |
const SCMBUnion* keyvalue); |
| |
/** | /** |
* Gets the key binding count. | * Gets the key binding count. |
|
|
* 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 _setPropertyAtNodeIndex( | void _setPropertyAtNodeIndex( |
Uint32 pos, | Uint32 pos, |
CIMType type, | CIMType type, |
SCMBUnion* pInVal, |
const SCMBUnion* pInVal, |
Boolean isArray, | Boolean isArray, |
Uint32 size); | Uint32 size); |
| |
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; |
| |
|
|
char* base) const; | char* base) const; |
| |
void _setSCMBUnion( | void _setSCMBUnion( |
SCMBUnion* pInVal, |
const SCMBUnion* pInVal, |
CIMType type, | CIMType type, |
Boolean isArray, | Boolean isArray, |
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 |
); | ); |