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

Diff for /pegasus/src/Pegasus/Common/CIMObject.h between version 1.13 and 1.44.18.1

version 1.13, 2002/04/29 15:11:42 version 1.44.18.1, 2006/02/10 16:09:34
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2006////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
   // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
   // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation, The Open Group.
   // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; Symantec Corporation; The Open Group.
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 20 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Mike Brasher (mbrasher@bmc.com)  
 //  
 // Modified By:  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #ifndef Pegasus_Object_h #ifndef Pegasus_Object_h
 #define Pegasus_Object_h #define Pegasus_Object_h
  
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
 #include <Pegasus/Common/CIMObjectRep.h>  #include <Pegasus/Common/Linkage.h>
   #include <Pegasus/Common/String.h>
   #include <Pegasus/Common/CIMName.h>
   #include <Pegasus/Common/Array.h>
   #include <Pegasus/Common/CIMProperty.h>
   #include <Pegasus/Common/CIMQualifier.h>
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
   class CIMConstObject;
   class CIMObjectRep;
 class CIMClass; class CIMClass;
 class CIMConstClass; class CIMConstClass;
 class CIMInstance; class CIMInstance;
 class CIMConstInstance; class CIMConstInstance;
   class CIMProperty;
   class CIMConstProperty;
   class CIMQualifier;
   class CIMConstQualifier;
  
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
 // //
Line 45 
Line 61 
 // //
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
  
 class CIMConstObject;  /** The CIMObject class is the superclass for the CIMInstance and
 class CIMObject;      CIMClass classes.
   
 /** This class either refers to a CIMInstance or a CIMClass.  
  
     The CIMObjectRep data member points to either a CIMInstanceRep or     The CIMObjectRep data member points to either a CIMInstanceRep or
     CIMClassRep.     CIMClassRep.
Line 57 
Line 71 
 { {
 public: public:
  
     /** Constructor.      /** Creates CIMObject instance with null values (default constructor).
     */     */
     CIMObject() : _rep(0)      CIMObject();
     {  
   
     }  
  
     /** Copy constructor.      /** Creates a new CIMObject instance (copy constructor).
       @param x Specifies the name of the CIMObject instance to create.
     */     */
     CIMObject(const CIMObject& x)      CIMObject(const CIMObject& x);
     {  
         Inc(_rep = x._rep);  
     }  
  
     /** Construction from CIMClass.      /** Construction of a CIMObject instance based on the CIMClass object.
     */     */
     CIMObject(const CIMClass& x);     CIMObject(const CIMClass& x);
  
     /** Construction from CIMInstance.      /** Construction of a CIMObject instance based on the CIMInstance object.
     */     */
     CIMObject(const CIMInstance& x);     CIMObject(const CIMInstance& x);
  
     /** Assignment operator.      /** Assign the values of the CIMObject instance to CIMObject.
     */      @param x Specifies the name of the CIMObject instance.
     CIMObject& operator=(const CIMObject& x)  
     {  
         if (x._rep != _rep)  
         {  
             Dec(_rep);  
             Inc(_rep = x._rep);  
         }  
         return *this;  
     }  
   
     /** Assignment operator.  
     */  
     CIMObject& operator=(const CIMClass& x);  
   
     /** Assignment operator.  
     */     */
     CIMObject& operator=(const CIMInstance& x);      CIMObject& operator=(const CIMObject& x);
  
     /** Destructor.      /** Destroys CIMObject.
     */     */
     ~CIMObject()      ~CIMObject();
     {  
         Dec(_rep);  
     }  
  
     /** Accessor for ClassName component of the object.      /** Gets the ClassName of the object.
         @return - Returns the ClassName of the object in          @return ClassName of the object in a CIMName parameter. For example,
         a String parameter.  
         <pre>         <pre>
             String className;              CIMName className;
             CIMClass myclass("myclass", "superclass");             CIMClass myclass("myclass", "superclass");
             className = myclass.getClassName;             className = myclass.getClassName;
         </pre>         </pre>
     */     */
     const String& getClassName() const      const CIMName& getClassName() const;
     {  
         _checkRep();  
         return _rep->getClassName();  
     }  
   
     /** isClassName Compares ClassName with a String. This test performs  
         a comparison of the classname component of the object  
         with a String.  Note that this function was included specifically  
         because the equality compare is not just a straight comparison  
         because classnames are case independent.  
         @param classname String containing the name for comparison  
         @return True if it is the same class name (equalNoCase compare passes)  
         or false if not.  
     */  
     const Boolean isClassName(const String& classname) const  
     {  
         _checkRep();  
         return _rep->isClassName(classname);  
  
     }      /** REVIEWERS: Insert description here.
     const CIMReference& getPath() const  
     {  
         _checkRep();  
         return _rep->getPath();  
     }  
   
     /** addQualifier - Adds the CIMQualifier object to the instance.  
         Thows an exception of the CIMQualifier already exists in the instance  
         @param CIMQualifier object to add to instance  
         @return ATTN:  
         @exception Throws AlreadyExists.  
     */     */
     CIMObject& addQualifier(const CIMQualifier& qualifier)      const CIMObjectPath& getPath() const;
     {  
         _checkRep();  
         _rep->addQualifier(qualifier);  
         return *this;  
     }  
  
     /** findQualifier - Searches the instance for the qualifier object      /** Sets the object path for the object.
         defined by the input parameter.          @param  path Specifies the CIMObjectPath that contains the object path.
         @param String defining the qualifier object to be found.  
         @return - Position of the qualifier to be used in subsequent  
         operations or PEG_NOT_FOUND if the qualifier is not found.  
     */     */
     Uint32 findQualifier(const String& name)      void setPath (const CIMObjectPath & path);
     {  
         _checkRep();  
         return _rep->findQualifier(name);  
     }  
   
     Uint32 findQualifier(const String& name) const  
     {  
         _checkRep();  
         return _rep->findQualifier(name);  
     }  
  
     /** existsQualifier - Searches the instance for the qualifier object      /** Adds the CIMQualifier object to the instance.
         defined by the input parameter.          @param qualifier CIMQualifier object to add to instance.
         @param String defining the qualifier object to be found.          @return The resulting CIMObject.
         @return - Returns True if  the qualifier object exists or false          @exception AlreadyExistsException True if the CIMQualifier already
         if the qualifier is not found.          exists in the instance; otherwise, false.
     */     */
     Boolean existsQualifier(const String& name)      CIMObject& addQualifier(const CIMQualifier& qualifier);
     {  
         _checkRep();  
         return _rep->existsQualifier(name);  
     }  
   
     Boolean existsQualifier(const String& name) const  
     {  
         _checkRep();  
         return _rep->existsQualifier(name);  
     }  
  
     /** getQualifier - Retrieves the qualifier object defined by the      /** Searches the instance for the qualifier object
         index input parameter.  @ index for the qualifier object.          defined by the input parameter.
         The index to qualifier objects is zero-origin and continuous          @param name CIMName that defines the qualifier object to be found.
         so that incrementing loops can be used to get all qualifier          @return  Position of the qualifier to use in subsequent
         objects in a CIMInstnace.          operations or PEG_NOT_FOUND if the qualifier is not found.
         @return: Returns qualifier object defined by index.  
         @exception Throws the OutOfBounds exception if the index  
         is out of bounds  
     */     */
     CIMQualifier getQualifier(Uint32 pos)      Uint32 findQualifier(const CIMName& name) const;
     {  
         _checkRep();  
         return _rep->getQualifier(pos);  
     }  
  
     /** getQualifier - Retrieves the qualifier object defined by the      /** Retrieves the qualifier object defined by the input parameter.
         index input parameter.  @ index for the qualifier object.          @param  index Specifies the index for the qualifier object. The index to
         The index to qualifier objects is zero-origin and continuous          qualifier objects is zero-origin and continuous so that
         so that incrementing loops can be used to get all qualifier          incrementing loops can be used to get all qualifier
         objects in a CIMInstnace.          objects in a CIMInstance.
         @return: Returns qualifier object defined by index.          @return CIMQualifier object defined by the index.
         @exception Throws the OutOfBounds exception if the index          @exception IndexOutOfBoundsException True if the index
         is out of bounds          is out of bounds; otherwise, false.
         ATTN: What is effect of out of range index???      */
         ATTN: Is the above statement correct???      CIMQualifier getQualifier(Uint32 index);
     */  
     CIMConstQualifier getQualifier(Uint32 pos) const      /** Retrieves the qualifier object defined by the input parameter.
     {          @param index Specifies the index for the qualifier object. The index to
         _checkRep();          qualifier objects is zero-origin and continuous so that
         return _rep->getQualifier(pos);          incrementing loops can be used to get all qualifier
     }          objects in a CIMInstance.
           @return CIMConstQualifier object defined by the index.
     void removeQualifier(Uint32 pos)          @exception IndexOutOfBoundsException True if the index
         {          is out of bounds; otherwise, false.
         _checkRep();      */
         _rep->removeQualifier(pos);      CIMConstQualifier getQualifier(Uint32 index) const;
         }  
       /** REVIEWERS: Insert description here.
         /**     getQualifierCount - Gets the numbercount of CIMQualifierobjects      */
         defined for this CIMObject.      void removeQualifier(Uint32 index);
         @return Count of the number of CIMQalifier objects in the  
       /** Gets the number of CIMQualifier objects defined for
           this CIMObject.
           @return Count of the number of CIMQualifier objects in the
         CIMObject.         CIMObject.
         @exception Throws the OutOfBounds exception if the index  
         is out of bounds  
     */     */
     Uint32 getQualifierCount() const      Uint32 getQualifierCount() const;
     {  
         _checkRep();      /** Adds a property object defined by the input parameter to
         return _rep->getQualifierCount();          the CIMObject.
     }          @param x Property Object to be added. See the CIM Property
           class for definition of the property object.
     /** addProperty - Adds a property object defined by the input          @return The resulting CIMObject.
         parameter to the CIMObject          @exception AlreadyExistsException True if the property already exists
         @param Property Object to be added.  See the CIM Property          otherwise, false.
         class for definition of the property object      */
         @return ATTN:      CIMObject& addProperty(const CIMProperty& x);
         @exception Throws the exception AlreadyExists if the property  
         already exists.      /** Searches the CIMProperty objects in the
     */          CIMObject for a property object with the name defined by the
     CIMObject& addProperty(const CIMProperty& x)          input parameter.
     {          @param name CIMName with the name of the property object to be found.
         _checkRep();          @return Position in the CIM object of the property object if found or
         _rep->addProperty(x);  
         return *this;  
     }  
   
     /** findProperty - Searches the CIMProperty objects installed in the  
         CIMObject for property objects with the name defined by the  
         input.  
         @param String with the name of the property object to be found  
         @return Position in the CIM object to the property object if found or  
         PEG_NOT_FOUND if no property object found with the name defined by the         PEG_NOT_FOUND if no property object found with the name defined by the
         input.          input parameter.
     */     */
     Uint32 findProperty(const String& name)      Uint32 findProperty(const CIMName& name) const;
     {  
         _checkRep();  
         return _rep->findProperty(name);  
     }  
  
     Uint32 findProperty(const String& name) const      /** Gets the CIMProperty object in the CIMObject defined
     {          by the input parameter.
         _checkRep();          @param index Specifies the index to the property object in the CIMObject.
         return _rep->findProperty(name);  
     }  
   
     /** existsPropery - Determines if a property object with the  
         name defined by the input parameter exists in the class.  
         @parm String parameter with the property name.  
         @return True if the property object exists.  
     */  
     Boolean existsProperty(const String& name)  
     {  
         _checkRep();  
         return _rep->existsProperty(name);  
     }  
   
     Boolean existsProperty(const String& name) const  
     {  
        _checkRep();  
        return _rep->existsProperty(name);  
     }  
   
     /** getProperty - Gets the CIMproperty object in the CIMObject defined  
         by the input index parameter.  
         @param Index to the property object in the CIMObject.  
         The index to qualifier objects is zero-origin and continuous         The index to qualifier objects is zero-origin and continuous
         so that incrementing loops can be used to get all qualifier         so that incrementing loops can be used to get all qualifier
         objects in a CIMObject.         objects in a CIMObject.
         @return CIMProperty object corresponding to the index.         @return CIMProperty object corresponding to the index.
         @exception Throws the OutOfBounds exception if the index          @exception IndexOutOfBoundsException True if the index
         is out of bounds          is out of bounds; otherwise, false.
   
         ATTN: What is the effect of out of range?  
     */     */
     CIMProperty getProperty(Uint32 pos)      CIMProperty getProperty(Uint32 index);
     {  
         _checkRep();  
         return _rep->getProperty(pos);  
     }  
   
     /** getProperty - Gets the CIMproperty object in the CIMObject defined  
         by the input index parameter.  
         @param Index to the property object in the CIMObject.  
         The index to qualifier objects is zero-origin and continuous  
         so that incrementing loops can be used to get all qualifier  
         objects in a CIMInstnace.  
         @return CIMProperty object corresponding to the index.  
         @exception Throws the OutOfBounds exception if the index  
         is out of bounds  
  
         ATTN: What is the effect of out of range?      /** Gets the CIMproperty object in the CIMObject defined
           by the input parameter.
           @param index Specifies the index to the property object in the CIMObject.
           @return CIMProperty object corresponding to the index.
           @exception IndexOutOfBoundsException True if the index is outside the
           range of properties in this object; otherwise, false.
     */     */
     CIMConstProperty getProperty(Uint32 pos) const      CIMConstProperty getProperty(Uint32 index) const;
     {  
         _checkRep();      /** Remove the specified property from the instance.
         return _rep->getProperty(pos);          @param index Specifies the index to the property to be removed from the
     }          instance.  Normally this is obtained by findProperty();
           @exception IndexOutOfBoundsException True if the index is outside the
     /** removeProperty - Removes the property represented          range of properties in this object; otherwise, false.
         by the position input parameter from the instance.  
         @param pos Index to the property to be removed from the  
         instance.  Normally this is obtained by getProperty();  
         @exception Throws OutofBounds if index is not a property object  
     */     */
     void removeProperty(Uint32 pos)      void removeProperty(Uint32 index);
     {  
         _checkRep();  
         _rep->removeProperty(pos);  
     }  
  
     /** getPropertyCount - Gets the numbercount of CIMProperty      /** Gets the number of CIMProperty objects defined for this CIMObject.
         objects defined for this CIMObject.  
         @return Count of the number of CIMProperty objects in the         @return Count of the number of CIMProperty objects in the
         CIMObject. Zero indicates that no CIMProperty objects         CIMObject. Zero indicates that no CIMProperty objects
         are contained in the CIMObject          are contained in the CIMObject.
         @exception Throws the OutOfBounds exception if the index  
         is out of bounds  
   
     */     */
     Uint32 getPropertyCount() const      Uint32 getPropertyCount() const;
     {  
         _checkRep();  
         return _rep->getPropertyCount();  
     }  
  
     /** operator int() - ATTN: */      /** Makes a deep copy (clone) of the given object.
     operator int() const { return _rep != 0; }          @return Copy of the CIMObject.
       */
       CIMObject clone() const;
  
     /** Returns true if the two classes are structurally identical.      /** Compares with another CIM Object.
           @param x CIM object for comparison.
           @return True if the objects are identical; otherwise, false.
     */     */
     Boolean identical(const CIMConstObject& x) const;     Boolean identical(const CIMConstObject& x) const;
  
     /** Convert object to XML format.      /** Determines if the object has not been initialized.
     */          @return  True if the object has not been initialized; otherwise, false.
     void toXml(Array<Sint8>& out) const  
     {  
         _checkRep();  
         _rep->toXml(out);  
     }  
  
     /** Clones the given object.  
     */     */
     CIMObject clone() const      Boolean isUninitialized() const;
     {  
         _checkRep();  
         return CIMObject(_rep->clone());  
     }  
  
 private:      /** Returns a string representing the value of the CIMObject.
           With the inclusion of CIMObject as a CIMValue, the intent
           of the toString() method is to produce a "human-readable" string
           consistent with other CIMValue types. The string will be a MOF
           representation of the object (ie. either CIMClass or CIMInstance)
           using the _rep's toMof() method.
           @return String representing the CIMObject value.
       */
       String toString () const;
  
     CIMObject(CIMObjectRep* rep) : _rep(rep)      /** Determines if the object represents a CIMClass.
     {          @return  True if the object represents a CIMClass; otherwise, false.
        */
       Boolean isClass () const;
  
     }      /** Determines if the object represents a CIMInstance.
           @return  True if the object represents a CIMInstance; otherwise, false.
        */
       Boolean isInstance () const;
  
     void _checkRep() const  private:
     {  
         if (!_rep)  
             ThrowUnitializedHandle();  
     }  
  
     CIMObjectRep* _rep;     CIMObjectRep* _rep;
  
       CIMObject(CIMObjectRep* rep);
   
       void _checkRep() const;
   
     friend class CIMConstObject;     friend class CIMConstObject;
     friend class CIMClass;     friend class CIMClass;
     friend class CIMConstClass;     friend class CIMConstClass;
Line 402 
Line 273 
     friend class CIMConstInstance;     friend class CIMConstInstance;
 }; };
  
   #define PEGASUS_ARRAY_T CIMObject
   # include <Pegasus/Common/ArrayInter.h>
   #undef PEGASUS_ARRAY_T
   
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
 // //
 // CIMConstObject // CIMConstObject
 // //
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
  
   /**
   REVIEWERS: Add class defintion here
   */
 class PEGASUS_COMMON_LINKAGE CIMConstObject class PEGASUS_COMMON_LINKAGE CIMConstObject
 { {
 public: public:
  
     CIMConstObject() : _rep(0)      /** Constructs a new CIMConstObject with null values (default constructor).
     {      */
       CIMConstObject();
     }  
  
     CIMConstObject(const CIMConstObject& x)      /** Constructs a new CIMConstObject.
     {      @param x Specifies the name of the CIMConstObject instance to create.
         Inc(_rep = x._rep);      */
     }      CIMConstObject(const CIMConstObject& x);
  
     CIMConstObject(const CIMObject& x)      /** Constructs a new CIMConstObject from a CIMObject instance.
     {      @param x Specifies the name of the CIMObject instance to use to create
         Inc(_rep = x._rep);      the CIMConstObject instance.
     }      */
       CIMConstObject(const CIMObject& x);
  
     /** Construction from CIMClass.      /** Constructs a CIMObject instance from a CIMClass instance.
       @param x Specifies the name of the CIMClass instance.
     */     */
     CIMConstObject(const CIMClass& x);     CIMConstObject(const CIMClass& x);
  
     /** Construction from CIMInstance.      /** Constructs a CIMObject instance from a CIMInstance instance.
       @param x Specifies the name of the CIMInstance instance.
     */     */
     CIMConstObject(const CIMInstance& x);     CIMConstObject(const CIMInstance& x);
  
     /** Construction from CIMClass.      /** Constructs a CIMObject instance from a CIMConstClass instance.
       @param x Specifies the name of the CIMConstClass instance.
     */     */
     CIMConstObject(const CIMConstClass& x);     CIMConstObject(const CIMConstClass& x);
  
     /** Construction from CIMInstance.      /** Constructs a CIMObject instance from a CIMConstInstance instance.
       @param x Specifies the name of the CIMConstInstance instance.
     */     */
     CIMConstObject(const CIMConstInstance& x);     CIMConstObject(const CIMConstInstance& x);
  
     CIMConstObject& operator=(const CIMConstObject& x)      /** REVIEWERS: Insert description here.
     {      @param x Specifies the name of the CIMConstObject instance.
         if (x._rep != _rep)      */
         {      CIMConstObject& operator=(const CIMConstObject& x);
             Dec(_rep);  
             Inc(_rep = x._rep);  
         }  
         return *this;  
     }  
   
     CIMConstObject& operator=(const CIMObject& x)  
     {  
         if (x._rep != _rep)  
         {  
             Dec(_rep);  
             Inc(_rep = x._rep);  
         }  
         return *this;  
     }  
   
     CIMConstObject& operator=(const CIMClass& x);  
   
     CIMConstObject& operator=(const CIMConstClass& x);  
   
     CIMConstObject& operator=(const CIMInstance& x);  
   
     CIMConstObject& operator=(const CIMConstInstance& x);  
   
     ~CIMConstObject()  
     {  
         Dec(_rep);  
     }  
   
     const String& getClassName() const  
     {  
         _checkRep();  
         return _rep->getClassName();  
     }  
   
     const CIMReference& getPath() const  
     {  
         _checkRep();  
         return _rep->getPath();  
     }  
   
     Uint32 findQualifier(const String& name) const  
     {  
         _checkRep();  
         return _rep->findQualifier(name);  
     }  
   
     CIMConstQualifier getQualifier(Uint32 pos) const  
     {  
         _checkRep();  
         return _rep->getQualifier(pos);  
     }  
   
     Uint32 getQualifierCount() const  
     {  
         _checkRep();  
         return _rep->getQualifierCount();  
     }  
   
     Uint32 findProperty(const String& name) const  
     {  
         _checkRep();  
         return _rep->findProperty(name);  
     }  
   
     CIMConstProperty getProperty(Uint32 pos) const  
     {  
         _checkRep();  
         return _rep->getProperty(pos);  
     }  
   
     Uint32 getPropertyCount() const  
     {  
         _checkRep();  
         return _rep->getPropertyCount();  
     }  
   
     operator int() const { return _rep != 0; }  
   
     void toXml(Array<Sint8>& out) const  
     {  
         _checkRep();  
         _rep->toXml(out);  
     }  
   
     void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const  
     {  
         _checkRep();  
         _rep->print(o);  
     }  
   
     Boolean identical(const CIMConstObject& x) const  
     {  
         x._checkRep();  
         _checkRep();  
         return _rep->identical(x._rep);  
     }  
   
     CIMObject clone() const  
     {  
         return CIMObject(_rep->clone());  
     }  
   
 private:  
  
     void _checkRep() const      /** CIMConstObject destructor.
     {      */
         if (!_rep)      ~CIMConstObject();
             ThrowUnitializedHandle();  
     }  
  
     CIMObjectRep* _rep;      /** REVIEWERS: Insert description here.
       */
       const CIMName& getClassName() const;
  
     friend class CIMObject;      /** REVIEWERS: Insert description here.
     friend class CIMClass;      */
     friend class CIMConstClass;      const CIMObjectPath& getPath() const;
     friend class CIMInstance;  
     friend class CIMConstInstance;  
 };  
  
 /** The CIMObjectWithPath encapsulates a CIMReference and CIMObject.      /** REVIEWERS: Insert description here.
     Accessors are provided for getting the two parts. Constructors are      @param name Specifies the name of the CIMName instance.
     provided for initializing it from a CIMObject.  
 */ */
 class PEGASUS_COMMON_LINKAGE CIMObjectWithPath      Uint32 findQualifier(const CIMName& name) const;
 {  
 public:  
  
     /** Constructor      /** REVIEWERS: Insert description here.
       @param index Specifies the name of the Uint32 instance.
     */     */
     CIMObjectWithPath();      CIMConstQualifier getQualifier(Uint32 index) const;
  
     /** constructor      /** REVIEWERS: Insert description here.
     */     */
     CIMObjectWithPath(const CIMReference& reference, const CIMObject& object);      Uint32 getQualifierCount() const;
  
     /** Constructor - Constructs a CIMObjectWithPath Object from      /** REVIEWERS: Insert description here.
         another CimObjectWithPath      @param name Specifies the name of the CIMName instance.
         @param - ATTN  
     */     */
     CIMObjectWithPath(const CIMObjectWithPath& x);      Uint32 findProperty(const CIMName& name) const;
  
     ~CIMObjectWithPath();      /** REVIEWERS: Insert description here.
       @param index Specifies the name of the Uint32 instance.
       */
       CIMConstProperty getProperty(Uint32 index) const;
  
     CIMObjectWithPath& operator=(const CIMObjectWithPath& x);      /** REVIEWERS: Insert description here.
       */
       Uint32 getPropertyCount() const;
  
     /** set -      /** REVIEWERS: Insert description here.
     */     */
     void set(const CIMReference& reference, const CIMObject& object);      CIMObject clone() const;
  
     /**      /** REVIEWERS: Insert description here.
     */     */
     const CIMReference& getReference() const { return _reference; }      Boolean identical(const CIMConstObject& x) const;
  
     /**      /** REVIEWERS: Insert description here.
     */     */
     const CIMObject& getObject() const { return _object; }      Boolean isUninitialized() const;
  
     /**      /** Returns a string representing the value of the CIMObject.
           With the inclusion of CIMObject as a CIMValue, the intent
           of the toString() method is to produce a "human-readable" string
           consistent with other CIMValue types. The string will be a MOF
           representation of the object (ie. either CIMClass or CIMInstance)
           using the _rep's toMof() method.
           @return String representing the CIMObject value.
     */     */
     CIMReference& getReference() { return _reference; }      String toString () const;
  
     /**      /** REVIEWERS: Insert description here.
     */     */
     CIMObject& getObject() { return _object; }      Boolean isClass() const;
  
     /**      /** REVIEWERS: Insert description here.
     */     */
     void toXml(Array<Sint8>& out) const;      Boolean isInstance() const;
  
 private: private:
  
     CIMReference _reference;      CIMObjectRep* _rep;
     CIMObject _object;  
       void _checkRep() const;
   
       friend class CIMObject;
       friend class CIMClass;
       friend class CIMConstClass;
       friend class CIMInstance;
       friend class CIMConstInstance;
 }; };
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.13  
changed lines
  Added in v.1.44.18.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2