(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.32 and 1.36

version 1.32, 2002/07/30 16:14:53 version 1.36, 2002/08/27 23:38:44
Line 84 
Line 84 
     */     */
     CIMObject& operator=(const CIMObject& x);     CIMObject& operator=(const CIMObject& x);
  
     /** Assignment operator.  
     */  
     CIMObject& operator=(const CIMClass& x);  
   
     /** Assignment operator.  
     */  
     CIMObject& operator=(const CIMInstance& x);  
   
     /** Destructor.     /** Destructor.
     */     */
     ~CIMObject();     ~CIMObject();
Line 119 
Line 111 
         Thows an exception of the CIMQualifier already exists in the instance         Thows an exception of the CIMQualifier already exists in the instance
         @param CIMQualifier object to add to instance         @param CIMQualifier object to add to instance
         @return the resulting object.         @return the resulting object.
         @exception Throws AlreadyExists.          @exception AlreadyExistsException.
     */     */
     CIMObject& addQualifier(const CIMQualifier& qualifier);     CIMObject& addQualifier(const CIMQualifier& qualifier);
  
Line 137 
Line 129 
         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 CIMInstnace.         objects in a CIMInstnace.
         @return: Returns qualifier object defined by index.         @return: Returns qualifier object defined by index.
         @exception Throws the OutOfBounds exception if the index          @exception Throws the IndexOutOfBoundsException exception if the index
         is out of bounds         is out of bounds
     */     */
     CIMQualifier getQualifier(Uint32 pos);      CIMQualifier getQualifier(Uint32 index);
  
     /** getQualifier - Retrieves the qualifier object defined by the     /** getQualifier - Retrieves the qualifier object defined by the
         index input parameter.  @ index for the qualifier object.         index input parameter.  @ index for the qualifier object.
Line 148 
Line 140 
         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 CIMInstnace.         objects in a CIMInstnace.
         @return: Returns qualifier object defined by index.         @return: Returns qualifier object defined by index.
         @exception Throws the OutOfBounds exception if the index          @exception Throws the IndexOutOfBoundsException exception if the index
         is out of bounds         is out of bounds
     */     */
     CIMConstQualifier getQualifier(Uint32 pos) const;      CIMConstQualifier getQualifier(Uint32 index) const;
  
     void removeQualifier(Uint32 pos);      void removeQualifier(Uint32 index);
  
     /** getQualifierCount - Gets the number of CIMQualifier objects     /** getQualifierCount - Gets the number of CIMQualifier objects
         defined for this CIMObject.         defined for this CIMObject.
         @return Count of the number of CIMQualifier objects in the         @return Count of the number of CIMQualifier objects in the
         CIMObject.         CIMObject.
         @exception Throws the OutOfBounds exception if the index          @exception Throws the IndexOutOfBoundsException exception if the index
         is out of bounds         is out of bounds
     */     */
     Uint32 getQualifierCount() const;     Uint32 getQualifierCount() const;
Line 169 
Line 161 
         @param Property Object to be added.  See the CIM Property         @param Property Object to be added.  See the CIM Property
         class for definition of the property object         class for definition of the property object
         @return the resulting object.         @return the resulting object.
         @exception Throws the exception AlreadyExists if the property          @exception AlreadyExistsException if the property already exists.
         already exists.  
     */     */
     CIMObject& addProperty(const CIMProperty& x);     CIMObject& addProperty(const CIMProperty& x);
  
Line 191 
Line 182 
         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 Throws the IndexOutOfBoundsException exception if the index
         is out of bounds         is out of bounds
     */     */
     CIMProperty getProperty(Uint32 pos);      CIMProperty getProperty(Uint32 index);
  
     /** getProperty - Gets the CIMproperty object in the CIMObject defined     /** getProperty - Gets the CIMproperty object in the CIMObject defined
         by the input index parameter.         by the input index parameter.
         @param Index to the property object in the CIMObject.         @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.         @return CIMProperty object corresponding to the index.
         @exception Throws the OutOfBounds exception if the index          @exception IndexOutOfBoundsException if the index is outside the
         is out of bounds          range of properties in this object.
     */     */
     CIMConstProperty getProperty(Uint32 pos) const;      CIMConstProperty getProperty(Uint32 index) const;
  
     /** removeProperty - Removes the property represented      /** removeProperty - Remove the specified property from the instance
         by the position input parameter from the instance.          @param index Index to the property to be removed from the
         @param pos Index to the property to be removed from the          instance.  Normally this is obtained by findProperty();
         instance.  Normally this is obtained by getProperty();          @exception IndexOutOfBoundsException if the index is outside the
         @exception Throws OutofBounds if index is not a property object          range of properties in this object.
     */     */
     void removeProperty(Uint32 pos);      void removeProperty(Uint32 index);
  
     /** getPropertyCount - Gets the number of CIMProperty     /** getPropertyCount - 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          @exception Throws the IndexOutOfBoundsException exception if the index
         is out of bounds         is out of bounds
  
     */     */
Line 235 
Line 223 
     */     */
     Boolean identical(const CIMConstObject& x) const;     Boolean identical(const CIMConstObject& x) const;
  
 #ifdef PEGASUS_INTERNALONLY      /**
     /** isNull() */          Determines if the object has not been initialized.
     Boolean isNull() const;  
 #endif          @return  True if the object has not been initialized,
                    False otherwise
        */
       Boolean isUninitialized() const;
   
       /**
           Determines if the object represents a CIMClass.
   
           @return  True if the object represents a CIMClass,
                    False otherwise
        */
       Boolean isClass () const;
   
       /**
           Determines if the object represents a CIMInstance.
   
           @return  True if the object represents a CIMInstance,
                    False otherwise
        */
       Boolean isInstance () const;
  
 private: private:
  
Line 295 
Line 302 
  
     CIMConstObject& operator=(const CIMConstObject& x);     CIMConstObject& operator=(const CIMConstObject& x);
  
     CIMConstObject& operator=(const CIMObject& x);  
   
     CIMConstObject& operator=(const CIMClass& x);  
   
     CIMConstObject& operator=(const CIMConstClass& x);  
   
     CIMConstObject& operator=(const CIMInstance& x);  
   
     CIMConstObject& operator=(const CIMConstInstance& x);  
   
     ~CIMConstObject();     ~CIMConstObject();
  
     const CIMName& getClassName() const;     const CIMName& getClassName() const;
Line 313 
Line 310 
  
     Uint32 findQualifier(const CIMName& name) const;     Uint32 findQualifier(const CIMName& name) const;
  
     CIMConstQualifier getQualifier(Uint32 pos) const;      CIMConstQualifier getQualifier(Uint32 index) const;
  
     Uint32 getQualifierCount() const;     Uint32 getQualifierCount() const;
  
     Uint32 findProperty(const CIMName& name) const;     Uint32 findProperty(const CIMName& name) const;
  
     CIMConstProperty getProperty(Uint32 pos) const;      CIMConstProperty getProperty(Uint32 index) const;
  
     Uint32 getPropertyCount() const;     Uint32 getPropertyCount() const;
  
Line 327 
Line 324 
  
     Boolean identical(const CIMConstObject& x) const;     Boolean identical(const CIMConstObject& x) const;
  
 #ifdef PEGASUS_INTERNALONLY      Boolean isUninitialized() const;
     Boolean isNull() const;  
 #endif      Boolean isClass() const;
   
       Boolean isInstance() const;
  
 private: private:
  


Legend:
Removed from v.1.32  
changed lines
  Added in v.1.36

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2