(file) Return to SCMOInstance.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/SCMOInstance.h between version 1.1.2.13 and 1.1.2.18

version 1.1.2.13, 2009/09/18 09:11:11 version 1.1.2.18, 2009/09/30 15:51:28
Line 321 
Line 321 
     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);
Line 395 
Line 395 
     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);
  
Line 427 
Line 427 
     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
Line 453 
Line 453 
     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.
Line 516 
Line 516 
      * 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
Line 603 
Line 603 
         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);
Line 614 
Line 616 
         }         }
  
     };     };
   
   
       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,
Line 636 
Line 640 
     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;
  
Line 668 
Line 672 
         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,
Line 712 
Line 716 
  
     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
         );         );


Legend:
Removed from v.1.1.2.13  
changed lines
  Added in v.1.1.2.18

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2