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

version 1.27, 2002/08/20 17:39:37 version 1.36, 2005/10/31 17:39:11
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2005////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // The Open Group, Tivoli Systems  // 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.
 // //
 // 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 26 
Line 32 
 // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 //              Carol Ann Krug Graves, Hewlett-Packard Company //              Carol Ann Krug Graves, Hewlett-Packard Company
 //                  (carolann_graves@hp.com) //                  (carolann_graves@hp.com)
   //              Dave Sudlik, IBM (dsudlik@us.ibm.com)
   //              David Dillard, VERITAS Software Corp.
   //                  (david.dillard@veritas.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 120 
Line 129 
     return _rep->findQualifier(name);     return _rep->findQualifier(name);
 } }
  
 CIMQualifier CIMObject::getQualifier(Uint32 pos)  CIMQualifier CIMObject::getQualifier(Uint32 index)
 { {
     _checkRep();     _checkRep();
     return _rep->getQualifier(pos);      return _rep->getQualifier(index);
 } }
  
 CIMConstQualifier CIMObject::getQualifier(Uint32 pos) const  CIMConstQualifier CIMObject::getQualifier(Uint32 index) const
 { {
     _checkRep();     _checkRep();
     return _rep->getQualifier(pos);      return _rep->getQualifier(index);
 } }
  
 void CIMObject::removeQualifier(Uint32 pos)  void CIMObject::removeQualifier(Uint32 index)
 { {
     _checkRep();     _checkRep();
     _rep->removeQualifier(pos);      _rep->removeQualifier(index);
 } }
  
 Uint32 CIMObject::getQualifierCount() const Uint32 CIMObject::getQualifierCount() const
Line 157 
Line 166 
     return _rep->findProperty(name);     return _rep->findProperty(name);
 } }
  
 CIMProperty CIMObject::getProperty(Uint32 pos)  CIMProperty CIMObject::getProperty(Uint32 index)
 { {
     _checkRep();     _checkRep();
     return _rep->getProperty(pos);      return _rep->getProperty(index);
 } }
  
 CIMConstProperty CIMObject::getProperty(Uint32 pos) const  CIMConstProperty CIMObject::getProperty(Uint32 index) const
 { {
     _checkRep();     _checkRep();
     return _rep->getProperty(pos);      return _rep->getProperty(index);
 } }
  
 void CIMObject::removeProperty(Uint32 pos)  void CIMObject::removeProperty(Uint32 index)
 { {
     _checkRep();     _checkRep();
     _rep->removeProperty(pos);      _rep->removeProperty(index);
 } }
  
 Uint32 CIMObject::getPropertyCount() const Uint32 CIMObject::getPropertyCount() const
Line 186 
Line 195 
     return (_rep == 0)? true : false;     return (_rep == 0)? true : false;
 } }
  
   String CIMObject::toString () const
   {
       Buffer out;
   
       _checkRep();
       _rep->toXml(out);
       out.append('\0');
   
       return out.getData();
   }
   
 Boolean CIMObject::isClass () const Boolean CIMObject::isClass () const
 { {
     try     try
Line 193 
Line 213 
         const CIMClass c (*this);         const CIMClass c (*this);
         return true;         return true;
     }     }
     catch (DynamicCastFailedException)      catch (DynamicCastFailedException&)
     {     {
         return false;         return false;
     }     }
Line 206 
Line 226 
         const CIMInstance i (*this);         const CIMInstance i (*this);
         return true;         return true;
     }     }
     catch (DynamicCastFailedException)      catch (DynamicCastFailedException&)
     {     {
         return false;         return false;
     }     }
Line 305 
Line 325 
     return _rep->findQualifier(name);     return _rep->findQualifier(name);
 } }
  
 CIMConstQualifier CIMConstObject::getQualifier(Uint32 pos) const  CIMConstQualifier CIMConstObject::getQualifier(Uint32 index) const
 { {
     _checkRep();     _checkRep();
     return _rep->getQualifier(pos);      return _rep->getQualifier(index);
 } }
  
 Uint32 CIMConstObject::getQualifierCount() const Uint32 CIMConstObject::getQualifierCount() const
Line 323 
Line 343 
     return _rep->findProperty(name);     return _rep->findProperty(name);
 } }
  
 CIMConstProperty CIMConstObject::getProperty(Uint32 pos) const  CIMConstProperty CIMConstObject::getProperty(Uint32 index) const
 { {
     _checkRep();     _checkRep();
     return _rep->getProperty(pos);      return _rep->getProperty(index);
 } }
  
 Uint32 CIMConstObject::getPropertyCount() const Uint32 CIMConstObject::getPropertyCount() const
Line 340 
Line 360 
     return (_rep == 0)? true : false;     return (_rep == 0)? true : false;
 } }
  
   String CIMConstObject::toString () const
   {
       Buffer out;
   
       _checkRep();
       _rep->toXml(out);
       out.append('\0');
   
       return out.getData();
   }
   
 Boolean CIMConstObject::isClass() const Boolean CIMConstObject::isClass() const
 { {
     try     try
Line 347 
Line 378 
         const CIMConstClass c(*this);         const CIMConstClass c(*this);
         return true;         return true;
     }     }
     catch (DynamicCastFailedException)      catch (DynamicCastFailedException&)
     {     {
         return false;         return false;
     }     }
Line 360 
Line 391 
         const CIMConstInstance i(*this);         const CIMConstInstance i(*this);
         return true;         return true;
     }     }
     catch (DynamicCastFailedException)      catch (DynamicCastFailedException&)
     {     {
         return false;         return false;
     }     }


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2