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

Diff for /pegasus/src/Pegasus/Common/CIMProperty.cpp between version 1.20 and 1.27

version 1.20, 2002/07/23 17:01:48 version 1.27, 2002/08/27 23:38:44
Line 56 
Line 56 
 } }
  
 CIMProperty::CIMProperty( CIMProperty::CIMProperty(
     const String& name,      const CIMName& name,
     const CIMValue& value,     const CIMValue& value,
     Uint32 arraySize,     Uint32 arraySize,
     const String& referenceClassName,      const CIMName& referenceClassName,
     const String& classOrigin,      const CIMName& classOrigin,
     Boolean propagated)     Boolean propagated)
 { {
     _rep = new CIMPropertyRep(name, value,     _rep = new CIMPropertyRep(name, value,
Line 94 
Line 94 
     return *this;     return *this;
 } }
  
 const String& CIMProperty::getName() const  const CIMName& CIMProperty::getName() const
 { {
     _checkRep();     _checkRep();
     return _rep->getName();     return _rep->getName();
 } }
  
 void CIMProperty::setName(const String& name)  void CIMProperty::setName(const CIMName& name)
 { {
     _checkRep();     _checkRep();
     _rep->setName(name);     _rep->setName(name);
Line 136 
Line 136 
     return _rep->getArraySize();     return _rep->getArraySize();
 } }
  
 const String& CIMProperty::getReferenceClassName() const  const CIMName& CIMProperty::getReferenceClassName() const
 { {
     _checkRep();     _checkRep();
     return _rep->getReferenceClassName();     return _rep->getReferenceClassName();
 } }
  
 const String& CIMProperty::getClassOrigin() const  const CIMName& CIMProperty::getClassOrigin() const
 { {
     _checkRep();     _checkRep();
     return _rep->getClassOrigin();     return _rep->getClassOrigin();
 } }
  
 void CIMProperty::setClassOrigin(const String& classOrigin)  void CIMProperty::setClassOrigin(const CIMName& classOrigin)
 { {
     _checkRep();     _checkRep();
     _rep->setClassOrigin(classOrigin);     _rep->setClassOrigin(classOrigin);
Line 173 
Line 173 
     return *this;     return *this;
 } }
  
 Uint32 CIMProperty::findQualifier(const String& name) const  Uint32 CIMProperty::findQualifier(const CIMName& name) const
 { {
     _checkRep();     _checkRep();
     return _rep->findQualifier(name);     return _rep->findQualifier(name);
 } }
  
 CIMQualifier CIMProperty::getQualifier(Uint32 pos)  CIMQualifier CIMProperty::getQualifier(Uint32 index)
 { {
     _checkRep();     _checkRep();
     return _rep->getQualifier(pos);      return _rep->getQualifier(index);
 } }
  
 CIMConstQualifier CIMProperty::getQualifier(Uint32 pos) const  CIMConstQualifier CIMProperty::getQualifier(Uint32 index) const
 { {
     _checkRep();     _checkRep();
     return _rep->getQualifier(pos);      return _rep->getQualifier(index);
 } }
  
 void CIMProperty::removeQualifier(Uint32 pos)  void CIMProperty::removeQualifier(Uint32 index)
 { {
     _checkRep();     _checkRep();
     _rep->removeQualifier(pos);      _rep->removeQualifier(index);
 } }
  
 Uint32 CIMProperty::getQualifierCount() const Uint32 CIMProperty::getQualifierCount() const
Line 203 
Line 203 
     return _rep->getQualifierCount();     return _rep->getQualifierCount();
 } }
  
 Boolean CIMProperty::isNull() const  Boolean CIMProperty::isUninitialized() const
 { {
     return (_rep == 0)? true : false;     return (_rep == 0)? true : false;
 } }
Line 215 
Line 215 
     return _rep->identical(x._rep);     return _rep->identical(x._rep);
 } }
  
 Boolean CIMProperty::isKey() const  CIMProperty CIMProperty::clone() const
 { {
     _checkRep();      return CIMProperty(_rep->clone());
     return _rep->isKey();  
 }  
   
 CIMProperty CIMProperty::clone(Boolean propagateQualifiers) const  
 {  
     return CIMProperty(_rep->clone(propagateQualifiers));  
 } }
  
 void CIMProperty::_checkRep() const void CIMProperty::_checkRep() const
 { {
     if (!_rep)     if (!_rep)
         ThrowUninitializedHandle();          throw UninitializedObjectException();
 } }
  
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
Line 253 
Line 247 
     Inc(_rep = x._rep);     Inc(_rep = x._rep);
 } }
  
 // Throws IllegalName if name argument not legal CIM identifier.  
   
 CIMConstProperty::CIMConstProperty( CIMConstProperty::CIMConstProperty(
     const String& name,      const CIMName& name,
     const CIMValue& value,     const CIMValue& value,
     Uint32 arraySize,     Uint32 arraySize,
     const String& referenceClassName,      const CIMName& referenceClassName,
     const String& classOrigin,      const CIMName& classOrigin,
     Boolean propagated)     Boolean propagated)
 { {
     _rep = new CIMPropertyRep(name, value,     _rep = new CIMPropertyRep(name, value,
Line 292 
Line 284 
     return *this;     return *this;
 } }
  
 const String& CIMConstProperty::getName() const  const CIMName& CIMConstProperty::getName() const
 { {
     _checkRep();     _checkRep();
     return _rep->getName();     return _rep->getName();
Line 322 
Line 314 
     return _rep->getArraySize();     return _rep->getArraySize();
 } }
  
 const String& CIMConstProperty::getReferenceClassName() const  const CIMName& CIMConstProperty::getReferenceClassName() const
 { {
     _checkRep();     _checkRep();
     return _rep->getReferenceClassName();     return _rep->getReferenceClassName();
 } }
  
 const String& CIMConstProperty::getClassOrigin() const  const CIMName& CIMConstProperty::getClassOrigin() const
 { {
     _checkRep();     _checkRep();
     return _rep->getClassOrigin();     return _rep->getClassOrigin();
Line 340 
Line 332 
     return _rep->getPropagated();     return _rep->getPropagated();
 } }
  
 Uint32 CIMConstProperty::findQualifier(const String& name) const  Uint32 CIMConstProperty::findQualifier(const CIMName& name) const
 { {
     _checkRep();     _checkRep();
     return _rep->findQualifier(name);     return _rep->findQualifier(name);
 } }
  
 CIMConstQualifier CIMConstProperty::getQualifier(Uint32 pos) const  CIMConstQualifier CIMConstProperty::getQualifier(Uint32 index) const
 { {
     _checkRep();     _checkRep();
     return _rep->getQualifier(pos);      return _rep->getQualifier(index);
 } }
  
 Uint32 CIMConstProperty::getQualifierCount() const Uint32 CIMConstProperty::getQualifierCount() const
Line 358 
Line 350 
     return _rep->getQualifierCount();     return _rep->getQualifierCount();
 } }
  
 Boolean CIMConstProperty::isNull() const  Boolean CIMConstProperty::isUninitialized() const
 { {
     return (_rep == 0)? true : false;     return (_rep == 0)? true : false;
 } }
Line 370 
Line 362 
     return _rep->identical(x._rep);     return _rep->identical(x._rep);
 } }
  
 Boolean CIMConstProperty::isKey() const  CIMProperty CIMConstProperty::clone() const
 {  
     _checkRep();  
     return _rep->isKey();  
 }  
   
 CIMProperty CIMConstProperty::clone(Boolean propagateQualifiers) const  
 { {
     return CIMProperty(_rep->clone(propagateQualifiers));      return CIMProperty(_rep->clone());
 } }
  
 void CIMConstProperty::_checkRep() const void CIMConstProperty::_checkRep() const
 { {
     if (!_rep)     if (!_rep)
         ThrowUninitializedHandle();          throw UninitializedObjectException();
 } }
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2