(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.3 and 1.1.2.7

version 1.1.2.3, 2009/08/04 13:28:47 version 1.1.2.7, 2009/08/11 13:06:15
Line 106 
Line 106 
      * CIMInstance data into the new SCMOInstance.      * CIMInstance data into the new SCMOInstance.
      * @param baseClass The SCMOClass of this instance.      * @param baseClass The SCMOClass of this instance.
      * @param cimInstance A CIMInstace of the same class.      * @param cimInstance A CIMInstace of the same class.
        * @exception Exception if class name and name space does not match.
        * @exception
        *     Exception if CIMInstance has more key bindings then the SCMOClass.
        * @exception
        *     Exception if a key binding is not found as a key property
        *     of the SCMOClass.
        * @exception Exception if a key binding does not match
        *     the class definition.
        * @exception Exception if a property is not part of class definition.
        * @exception Exception if a property does not match the class definition.
      */      */
     SCMOInstance(SCMOClass baseClass, const CIMInstance& cimInstance);     SCMOInstance(SCMOClass baseClass, const CIMInstance& cimInstance);
  
     /**     /**
        * Builds a SCMOInstance from the given SCMOClass and copies all
        * CIMObjectPath data into the new SCMOInstance.
        * @param baseClass The SCMOClass of this instance.
        * @param cimInstance A CIMObjectpath of the same class.
        * @exception Exception if class name and name space does not match.
        * @exception
        *     Exception if CIMInstance has more key bindings then the SCMOClass.
        * @exception
        *     Exception if a key binding is not found as a key property
        *     of the SCMOClass.
        * @exception Exception if a key binding does not match
        *     the class definition.
        */
       SCMOInstance(SCMOClass baseClass, const CIMObjectPath& cimObj);
   
       /**
      * Converts the SCMOInstance into a CIMInstance.      * Converts the SCMOInstance into a CIMInstance.
      * It is a deep copy of the SCMOInstance into the CIMInstance.      * It is a deep copy of the SCMOInstance into the CIMInstance.
      * @param cimInstance An empty CIMInstance.      * @param cimInstance An empty CIMInstance.
      */      */
     void getCIMInstance(CIMInstance& cimInstance) const;      SCMO_RC getCIMInstance(CIMInstance& cimInstance) const;
  
     /**     /**
      * Makes a deep copy of the instance.      * Makes a deep copy of the instance.
      * This creates a new copy of the instance.      * This creates a new copy of the instance.
        * @param objectPathOnly If set to true, only the object path relevant parts
        *     host name and key bindings are part of the cloned instance.
      * @return A new copy of the SCMOInstance object.      * @return A new copy of the SCMOInstance object.
      */      */
     SCMOInstance clone() const;      SCMOInstance clone(Boolean objectPathOnly = false) const;
  
     /**     /**
      * Returns the number of properties of the instance.      * Returns the number of properties of the instance.
Line 313 
Line 341 
         const char* pvalue);         const char* pvalue);
  
     /**     /**
        * Set/replace the named key binding
        * @param node The node index of the key.
        * @param type The type as CIMKeyBinding::Type.
        * @parma value The value as string.
        * @return     SCMO_OK
        *             SCMO_TYPE_MISSMATCH : Given type does not
        *                                   match to key binding type
        *             SCMO_INDEX_OUT_OF_BOUND : Given index is our of range.
        */
       SCMO_RC setKeyBindingAt(
           Uint32 node,
           CIMKeyBinding::Type type,
           const char* pvalue);
   
       /**
      * Gets the key binding count.      * Gets the key binding count.
      * @return the number of key bindings set.      * @return the number of key bindings set.
      */      */
Line 479 
Line 522 
         Boolean isArray,         Boolean isArray,
         Uint32 size);         Uint32 size);
  
       void _setCIMValueAtNodeIndex(Uint32 node, CIMValueRep* valRep);
   
       void _getCIMValueFromSCMBValue(
           CIMValue& cimV,
           const SCMBValue& scmbV,
           const char * base) const;
   
       CIMProperty _getCIMPropertyAtNodeIndex(Uint32 nodeIdx) const;
   
       void _setCIMObjectPath(const CIMObjectPath& cimObj);
   
       void _getCIMObjectPath(CIMObjectPath& cimObj) const;
   
     void* _getSCMBUnion(     void* _getSCMBUnion(
         CIMType type,         CIMType type,
         Boolean isArray,         Boolean isArray,
Line 493 
Line 549 
         Uint32 size,         Uint32 size,
         Uint64 start);         Uint64 start);
  
       static void _setUnionValue(
           Uint64 start,
           SCMBMgmt_Header** pmem,
           CIMType type,
           Union& u);
   
       static void _setArrayValue(
           Uint64 start,
           SCMBMgmt_Header** pmem,
           CIMType type,
           Uint32& n,
           Union& u);
   
     SCMO_RC _getKeyBindingAtNodeIndex(     SCMO_RC _getKeyBindingAtNodeIndex(
         Uint32 pos,         Uint32 pos,
         const char** pname,         const char** pname,
         CIMKeyBinding::Type& ptype,         CIMKeyBinding::Type& ptype,
         const char** pvalue) const;         const char** pvalue) const;
  
       void _copyKeyBindings(SCMOInstance& targetInst) const;
   
     Uint32 _initPropFilterWithKeys();     Uint32 _initPropFilterWithKeys();
  
     void _setPropertyInPropertyFilter(Uint32 i);     void _setPropertyInPropertyFilter(Uint32 i);


Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.7

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2