(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.8 and 1.15

version 1.8, 2001/12/25 04:42:51 version 1.15, 2002/04/30 18:03:11
Line 85 
Line 85 
     {     {
         if (x._rep != _rep)         if (x._rep != _rep)
         {         {
               if (_rep)
               {
             Dec(_rep);             Dec(_rep);
               }
             Inc(_rep = x._rep);             Inc(_rep = x._rep);
         }         }
         return *this;         return *this;
Line 103 
Line 106 
     */     */
     ~CIMObject()     ~CIMObject()
     {     {
           if (_rep)
           {
         Dec(_rep);         Dec(_rep);
     }     }
       }
  
     /** Accessor.      /** Accessor for ClassName component of the object.
           @return - Returns the ClassName of the object in
           a String parameter.
           <pre>
               String className;
               CIMClass myclass("myclass", "superclass");
               className = myclass.getClassName;
           </pre>
     */     */
     const String& getClassName() const     const String& getClassName() const
     {     {
Line 114 
Line 127 
         return _rep->getClassName();         return _rep->getClassName();
     }     }
  
       /** equalClassName 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 equalClassName(const String& classname) const
       {
           _checkRep();
           return _rep->equalClassName(classname);
   
       }
       const CIMReference& getPath() const
       {
           _checkRep();
           return _rep->getPath();
       }
   
     /** 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
Line 195 
Line 229 
         return _rep->getQualifier(pos);         return _rep->getQualifier(pos);
     }     }
  
       void removeQualifier(Uint32 pos)
           {
           _checkRep();
           _rep->removeQualifier(pos);
           }
   
     /** getQualifierCount - Gets the numbercount of CIMQualifierobjects     /** getQualifierCount - Gets the numbercount of CIMQualifierobjects
         defined for this CIMObject.         defined for this CIMObject.
         @return Count of the number of CIMQalifier objects in the         @return Count of the number of CIMQalifier objects in the
Line 413 
Line 453 
     {     {
         if (x._rep != _rep)         if (x._rep != _rep)
         {         {
               if (_rep)
               {
             Dec(_rep);             Dec(_rep);
               }
             Inc(_rep = x._rep);             Inc(_rep = x._rep);
         }         }
         return *this;         return *this;
Line 423 
Line 466 
     {     {
         if (x._rep != _rep)         if (x._rep != _rep)
         {         {
               if (_rep)
               {
             Dec(_rep);             Dec(_rep);
               }
             Inc(_rep = x._rep);             Inc(_rep = x._rep);
         }         }
         return *this;         return *this;
Line 439 
Line 485 
  
     ~CIMConstObject()     ~CIMConstObject()
     {     {
           if (_rep)
           {
         Dec(_rep);         Dec(_rep);
     }     }
       }
  
     const String& getClassName() const     const String& getClassName() const
     {     {
Line 448 
Line 497 
         return _rep->getClassName();         return _rep->getClassName();
     }     }
  
       const CIMReference& getPath() const
       {
           _checkRep();
           return _rep->getPath();
       }
   
     Uint32 findQualifier(const String& name) const     Uint32 findQualifier(const String& name) const
     {     {
         _checkRep();         _checkRep();


Legend:
Removed from v.1.8  
changed lines
  Added in v.1.15

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2