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

Diff for /pegasus/src/Pegasus/Common/CIMObject.cpp between version 1.21 and 1.27

version 1.21, 2002/06/01 00:56:25 version 1.27, 2002/08/20 17:39:37
Line 84 
Line 84 
     return *this;     return *this;
 } }
  
 CIMObject& CIMObject::operator=(const CIMClass& x)  
 {  
     if (x._rep != _rep)  
     {  
         Dec(_rep);  
         Inc(_rep = x._rep);  
     }  
     return *this;  
 }  
   
 CIMObject& CIMObject::operator=(const CIMInstance& x)  
 {  
     if (x._rep != _rep)  
     {  
         Dec(_rep);  
         Inc(_rep = x._rep);  
     }  
     return *this;  
 }  
   
 CIMObject::~CIMObject() CIMObject::~CIMObject()
 { {
     Dec(_rep);     Dec(_rep);
 } }
  
 const String& CIMObject::getClassName() const  const CIMName& CIMObject::getClassName() const
 { {
     _checkRep();     _checkRep();
     return _rep->getClassName();     return _rep->getClassName();
Line 134 
Line 114 
     return *this;     return *this;
 } }
  
 Uint32 CIMObject::findQualifier(const String& name) const  Uint32 CIMObject::findQualifier(const CIMName& name) const
 { {
     _checkRep();     _checkRep();
     return _rep->findQualifier(name);     return _rep->findQualifier(name);
 } }
  
 Boolean CIMObject::existsQualifier(const String& name) const  
 {  
     _checkRep();  
     return _rep->existsQualifier(name);  
 }  
   
 CIMQualifier CIMObject::getQualifier(Uint32 pos) CIMQualifier CIMObject::getQualifier(Uint32 pos)
 { {
     _checkRep();     _checkRep();
Line 177 
Line 151 
     return *this;     return *this;
 } }
  
 Uint32 CIMObject::findProperty(const String& name) const  Uint32 CIMObject::findProperty(const CIMName& name) const
 { {
     _checkRep();     _checkRep();
     return _rep->findProperty(name);     return _rep->findProperty(name);
 } }
  
 Boolean CIMObject::existsProperty(const String& name) const  
 {  
     _checkRep();  
     return _rep->existsProperty(name);  
 }  
   
 CIMProperty CIMObject::getProperty(Uint32 pos) CIMProperty CIMObject::getProperty(Uint32 pos)
 { {
     _checkRep();     _checkRep();
Line 213 
Line 181 
     return _rep->getPropertyCount();     return _rep->getPropertyCount();
 } }
  
 Boolean CIMObject::isNull() const  Boolean CIMObject::isUninitialized() const
 { {
     return (_rep == 0)? true : false;     return (_rep == 0)? true : false;
 } }
  
   Boolean CIMObject::isClass () const
   {
       try
       {
           const CIMClass c (*this);
           return true;
       }
       catch (DynamicCastFailedException)
       {
           return false;
       }
   }
   
   Boolean CIMObject::isInstance () const
   {
       try
       {
           const CIMInstance i (*this);
           return true;
       }
       catch (DynamicCastFailedException)
       {
           return false;
       }
   }
   
 Boolean CIMObject::identical(const CIMConstObject& x) const Boolean CIMObject::identical(const CIMConstObject& x) const
 { {
     x._checkRep();     x._checkRep();
Line 234 
Line 228 
 void CIMObject::_checkRep() const void CIMObject::_checkRep() const
 { {
     if (!_rep)     if (!_rep)
         ThrowUninitializedHandle();          throw UninitializedObjectException();
 } }
  
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
Line 288 
Line 282 
     return *this;     return *this;
 } }
  
 CIMConstObject& CIMConstObject::operator=(const CIMObject& x)  
 {  
     if (x._rep != _rep)  
     {  
         Dec(_rep);  
         Inc(_rep = x._rep);  
     }  
     return *this;  
 }  
   
 CIMConstObject& CIMConstObject::operator=(const CIMClass& x)  
 {  
     if (x._rep != _rep)  
     {  
         Dec(_rep);  
         Inc(_rep = x._rep);  
     }  
     return *this;  
 }  
   
 CIMConstObject& CIMConstObject::operator=(const CIMInstance& x)  
 {  
     if (x._rep != _rep)  
     {  
         Dec(_rep);  
         Inc(_rep = x._rep);  
     }  
     return *this;  
 }  
   
 CIMConstObject& CIMConstObject::operator=(const CIMConstClass& x)  
 {  
     if (x._rep != _rep)  
     {  
         Dec(_rep);  
         Inc(_rep = x._rep);  
     }  
     return *this;  
 }  
   
 CIMConstObject& CIMConstObject::operator=(const CIMConstInstance& x)  
 {  
     if (x._rep != _rep)  
     {  
         Dec(_rep);  
         Inc(_rep = x._rep);  
     }  
     return *this;  
 }  
   
 CIMConstObject::~CIMConstObject() CIMConstObject::~CIMConstObject()
 { {
     Dec(_rep);     Dec(_rep);
 } }
  
 const String& CIMConstObject::getClassName() const  const CIMName& CIMConstObject::getClassName() const
 { {
     _checkRep();     _checkRep();
     return _rep->getClassName();     return _rep->getClassName();
Line 355 
Line 299 
     return _rep->getPath();     return _rep->getPath();
 } }
  
 Uint32 CIMConstObject::findQualifier(const String& name) const  Uint32 CIMConstObject::findQualifier(const CIMName& name) const
 { {
     _checkRep();     _checkRep();
     return _rep->findQualifier(name);     return _rep->findQualifier(name);
Line 373 
Line 317 
     return _rep->getQualifierCount();     return _rep->getQualifierCount();
 } }
  
 Uint32 CIMConstObject::findProperty(const String& name) const  Uint32 CIMConstObject::findProperty(const CIMName& name) const
 { {
     _checkRep();     _checkRep();
     return _rep->findProperty(name);     return _rep->findProperty(name);
Line 391 
Line 335 
     return _rep->getPropertyCount();     return _rep->getPropertyCount();
 } }
  
 Boolean CIMConstObject::isNull() const  Boolean CIMConstObject::isUninitialized() const
 { {
     return (_rep == 0)? true : false;     return (_rep == 0)? true : false;
 } }
  
   Boolean CIMConstObject::isClass() const
   {
       try
       {
           const CIMConstClass c(*this);
           return true;
       }
       catch (DynamicCastFailedException)
       {
           return false;
       }
   }
   
   Boolean CIMConstObject::isInstance() const
   {
       try
       {
           const CIMConstInstance i(*this);
           return true;
       }
       catch (DynamicCastFailedException)
       {
           return false;
       }
   }
   
 Boolean CIMConstObject::identical(const CIMConstObject& x) const Boolean CIMConstObject::identical(const CIMConstObject& x) const
 { {
     x._checkRep();     x._checkRep();
Line 411 
Line 381 
 void CIMConstObject::_checkRep() const void CIMConstObject::_checkRep() const
 { {
     if (!_rep)     if (!_rep)
         ThrowUninitializedHandle();          throw UninitializedObjectException();
 } }
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.21  
changed lines
  Added in v.1.27

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2