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

Diff for /pegasus/src/Pegasus/Common/CIMInstance.cpp between version 1.22 and 1.29

version 1.22, 2002/05/15 23:14:19 version 1.29, 2002/07/31 22:05:08
Line 1 
Line 1 
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM  // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
   // The Open Group, Tivoli Systems
 // //
 // 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 24 
Line 25 
 // //
 // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 //                              Karl Schopmeyer, (k.schopmeyer@opengroup.org) //                              Karl Schopmeyer, (k.schopmeyer@opengroup.org)
   //              Carol Ann Krug Graves, Hewlett-Packard Company
   //                  (carolann_graves@hp.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 65 
Line 68 
     Inc(_rep);     Inc(_rep);
 } }
  
 CIMInstance::CIMInstance(const String& className)  CIMInstance::CIMInstance(const CIMName& className)
 { {
     _rep = new CIMInstanceRep(className);      _rep = new CIMInstanceRep(CIMObjectPath(String::EMPTY, CIMNamespaceName(), className));
 } }
  
 CIMInstance::CIMInstance(CIMInstanceRep* rep) CIMInstance::CIMInstance(CIMInstanceRep* rep)
Line 90 
Line 93 
     Dec(_rep);     Dec(_rep);
 } }
  
 const String& CIMInstance::getClassName() const  const CIMName& CIMInstance::getClassName() const
 { {
     _checkRep();     _checkRep();
     return _rep->getClassName();     return _rep->getClassName();
 } }
  
 const Boolean CIMInstance::equalClassName(const String& classname) const  const CIMObjectPath& CIMInstance::getPath() const
 { {
     _checkRep();     _checkRep();
     return _rep->equalClassName(classname);      return _rep->getPath();
   
 } }
  
 const CIMObjectPath& CIMInstance::getPath() const  void CIMInstance::setPath (const CIMObjectPath & path)
 { {
     _checkRep();     _checkRep();
     return _rep->getPath();      _rep->setPath (path);
 } }
  
 CIMInstance& CIMInstance::addQualifier(const CIMQualifier& qualifier) CIMInstance& CIMInstance::addQualifier(const CIMQualifier& qualifier)
Line 116 
Line 118 
     return *this;     return *this;
 } }
  
 Uint32 CIMInstance::findQualifier(const String& name) const  Uint32 CIMInstance::findQualifier(const CIMName& name) const
 { {
     _checkRep();     _checkRep();
     return _rep->findQualifier(name);     return _rep->findQualifier(name);
 } }
  
 Boolean CIMInstance::existsQualifier(const String& name) const  
 {  
     _checkRep();  
     return _rep->existsQualifier(name);  
 }  
   
 CIMQualifier CIMInstance::getQualifier(Uint32 pos) CIMQualifier CIMInstance::getQualifier(Uint32 pos)
 { {
     _checkRep();     _checkRep();
Line 153 
Line 149 
     return *this;     return *this;
 } }
  
 Uint32 CIMInstance::findProperty(const String& name) const  Uint32 CIMInstance::findProperty(const CIMName& name) const
 { {
     _checkRep();     _checkRep();
     return _rep->findProperty(name);     return _rep->findProperty(name);
 } }
  
 Boolean CIMInstance::existsProperty(const String& name) const  
 {  
    _checkRep();  
    return _rep->existsProperty(name);  
 }  
   
 CIMProperty CIMInstance::getProperty(Uint32 pos) throw(OutOfBounds) CIMProperty CIMInstance::getProperty(Uint32 pos) throw(OutOfBounds)
 { {
     _checkRep();     _checkRep();
Line 189 
Line 179 
     return _rep->getPropertyCount();     return _rep->getPropertyCount();
 } }
  
 Boolean CIMInstance::isNull() const  Boolean CIMInstance::isUninitialized() const
 { {
     return (_rep == 0)? true : false;     return (_rep == 0)? true : false;
 } }
Line 201 
Line 191 
     return _rep->identical(x._rep);     return _rep->identical(x._rep);
 } }
  
 void CIMInstance::resolve(  
     DeclContext* declContext,  
     const String& nameSpace,  
     Boolean propagateQualifiers)  
 {  
     _checkRep();  
     CIMConstClass cimClass;  
     _rep->resolve(declContext, nameSpace, cimClass, propagateQualifiers);  
 }  
   
 void CIMInstance::resolve(  
     DeclContext* declContext,  
     const String& nameSpace,  
     CIMConstClass& cimClassOut,  
     Boolean propagateQualifiers)  
 {  
     _checkRep();  
     _rep->resolve(declContext, nameSpace, cimClassOut, propagateQualifiers);  
 }  
   
 CIMInstance CIMInstance::clone() const CIMInstance CIMInstance::clone() const
 { {
     return CIMInstance((CIMInstanceRep*)(_rep->clone()));     return CIMInstance((CIMInstanceRep*)(_rep->clone()));
Line 241 
Line 211 
 void CIMInstance::_checkRep() const void CIMInstance::_checkRep() const
 { {
     if (!_rep)     if (!_rep)
         ThrowUninitializedHandle();          ThrowUninitializedObject();
 } }
  
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
Line 280 
Line 250 
     Inc(_rep);     Inc(_rep);
 } }
  
 CIMConstInstance::CIMConstInstance(const String& className)  CIMConstInstance::CIMConstInstance(const CIMName& className)
 { {
     _rep = new CIMInstanceRep(className);      _rep = new CIMInstanceRep(CIMObjectPath(String::EMPTY, CIMNamespaceName(), className));
 } }
  
 CIMConstInstance& CIMConstInstance::operator=(const CIMConstInstance& x) CIMConstInstance& CIMConstInstance::operator=(const CIMConstInstance& x)
Line 310 
Line 280 
     Dec(_rep);     Dec(_rep);
 } }
  
 const String& CIMConstInstance::getClassName() const  const CIMName& CIMConstInstance::getClassName() const
 { {
     _checkRep();     _checkRep();
     return _rep->getClassName();     return _rep->getClassName();
 } }
  
 const Boolean CIMConstInstance::equalClassName(const String& classname) const  
 {  
     _checkRep();  
     return _rep->equalClassName(classname);  
 }  
   
 const CIMObjectPath& CIMConstInstance::getPath() const const CIMObjectPath& CIMConstInstance::getPath() const
 { {
     _checkRep();     _checkRep();
     return _rep->getPath();     return _rep->getPath();
 } }
  
 Uint32 CIMConstInstance::findQualifier(const String& name) const  Uint32 CIMConstInstance::findQualifier(const CIMName& name) const
 { {
     _checkRep();     _checkRep();
     return _rep->findQualifier(name);     return _rep->findQualifier(name);
Line 346 
Line 310 
     return _rep->getQualifierCount();     return _rep->getQualifierCount();
 } }
  
 Uint32 CIMConstInstance::findProperty(const String& name) const  Uint32 CIMConstInstance::findProperty(const CIMName& name) const
 { {
     _checkRep();     _checkRep();
     return _rep->findProperty(name);     return _rep->findProperty(name);
Line 364 
Line 328 
     return _rep->getPropertyCount();     return _rep->getPropertyCount();
 } }
  
 Boolean CIMConstInstance::isNull() const  Boolean CIMConstInstance::isUninitialized() const
 { {
     return (_rep == 0)? true : false;     return (_rep == 0)? true : false;
 } }
Line 396 
Line 360 
 void CIMConstInstance::_checkRep() const void CIMConstInstance::_checkRep() const
 { {
     if (!_rep)     if (!_rep)
         ThrowUninitializedHandle();          ThrowUninitializedObject();
 } }
  
  


Legend:
Removed from v.1.22  
changed lines
  Added in v.1.29

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2