(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.28 and 1.35

version 1.28, 2002/06/01 00:56:25 version 1.35, 2002/08/20 17:39:37
Line 33 
Line 33 
 #define Pegasus_Object_h #define Pegasus_Object_h
  
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
   #include <Pegasus/Common/Linkage.h>
 #include <Pegasus/Common/String.h> #include <Pegasus/Common/String.h>
   #include <Pegasus/Common/CIMName.h>
 #include <Pegasus/Common/Array.h> #include <Pegasus/Common/Array.h>
 #include <Pegasus/Common/CIMProperty.h> #include <Pegasus/Common/CIMProperty.h>
 #include <Pegasus/Common/CIMQualifier.h> #include <Pegasus/Common/CIMQualifier.h>
Line 82 
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();
  
     /** Accessor for ClassName component of the object.     /** Accessor for ClassName component of the object.
         @return - Returns the ClassName of the object in         @return - Returns the ClassName of the object in
         a String parameter.          a CIMName 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;
  
     const CIMObjectPath& getPath() const;     const CIMObjectPath& getPath() const;
  
Line 116 
Line 110 
     /** addQualifier - Adds the CIMQualifier object to the instance.     /** addQualifier - Adds the CIMQualifier object to the instance.
         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 ATTN:          @return the resulting object.
         @exception Throws AlreadyExists.          @exception AlreadyExistsException.
     */     */
     CIMObject& addQualifier(const CIMQualifier& qualifier);     CIMObject& addQualifier(const CIMQualifier& qualifier);
  
     /** findQualifier - Searches the instance for the qualifier object     /** findQualifier - Searches the instance for the qualifier object
         defined by the input parameter.         defined by the input parameter.
         @param String defining the qualifier object to be found.          @param CIMName defining the qualifier object to be found.
         @return - Position of the qualifier to be used in subsequent         @return - Position of the qualifier to be used in subsequent
         operations or PEG_NOT_FOUND if the qualifier is not found.         operations or PEG_NOT_FOUND if the qualifier is not found.
     */     */
     Uint32 findQualifier(const String& name) const;      Uint32 findQualifier(const CIMName& name) const;
   
     /** existsQualifier - Searches the instance for the qualifier object  
         defined by the input parameter.  
         @param String defining the qualifier object to be found.  
         @return - Returns True if  the qualifier object exists or false  
         if the qualifier is not found.  
     */  
     Boolean existsQualifier(const String& name) const;  
  
     /** 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 143 
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 pos);
Line 154 
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
         ATTN: What is effect of out of range index???  
         ATTN: Is the above statement correct???  
     */     */
     CIMConstQualifier getQualifier(Uint32 pos) const;     CIMConstQualifier getQualifier(Uint32 pos) const;
  
Line 167 
Line 151 
         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 176 
Line 160 
         parameter to the CIMObject         parameter to the CIMObject
         @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 ATTN:          @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);
  
     /** findProperty - Searches the CIMProperty objects installed in the     /** findProperty - Searches the CIMProperty objects installed in the
         CIMObject for property objects with the name defined by the         CIMObject for property objects with the name defined by the
         input.         input.
         @param String with the name of the property object to be found          @param CIMName with the name of the property object to be found
         @return Position in the CIM object to the property object if found or         @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.
     */     */
     Uint32 findProperty(const String& name) const;      Uint32 findProperty(const CIMName& name) const;
   
     /** existsProperty - 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) const;  
  
     /** 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.
Line 206 
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
   
         ATTN: What is the effect of out of range?  
     */     */
     CIMProperty getProperty(Uint32 pos);     CIMProperty getProperty(Uint32 pos);
  
Line 220 
Line 194 
         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 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
   
         ATTN: What is the effect of out of range?  
     */     */
     CIMConstProperty getProperty(Uint32 pos) const;     CIMConstProperty getProperty(Uint32 pos) const;
  
Line 240 
Line 212 
         @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 254 
Line 226 
     */     */
     Boolean identical(const CIMConstObject& x) const;     Boolean identical(const CIMConstObject& x) const;
  
 #ifdef PEGASUS_INTERNALONLY      /**
     /** isNull() - ATTN: */          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 314 
Line 305 
  
     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 String& getClassName() const;      const CIMName& getClassName() const;
  
     const CIMObjectPath& getPath() const;     const CIMObjectPath& getPath() const;
  
     Uint32 findQualifier(const String& name) const;      Uint32 findQualifier(const CIMName& name) const;
  
     CIMConstQualifier getQualifier(Uint32 pos) const;     CIMConstQualifier getQualifier(Uint32 pos) const;
  
     Uint32 getQualifierCount() const;     Uint32 getQualifierCount() const;
  
     Uint32 findProperty(const String& name) const;      Uint32 findProperty(const CIMName& name) const;
  
     CIMConstProperty getProperty(Uint32 pos) const;     CIMConstProperty getProperty(Uint32 pos) const;
  
Line 346 
Line 327 
  
     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.28  
changed lines
  Added in v.1.35

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2