(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.12 and 1.28

version 1.12, 2002/05/01 04:37:23 version 1.28, 2003/10/22 14:26:02
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2003////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM  // Copyright (c) 2000, 2001, 2002  BMC Software, Hewlett-Packard Development
   // 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.
 // //
 // 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 23 
Line 26 
 // Author: Mike Brasher (mbrasher@bmc.com) // Author: Mike Brasher (mbrasher@bmc.com)
 // //
 // 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
   //                (carolann_graves@hp.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
   #include "CIMPropertyRep.h"
 #include "CIMProperty.h" #include "CIMProperty.h"
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
Line 52 
Line 58 
 } }
  
 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 90 
Line 96 
     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 132 
Line 138 
     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 169 
Line 175 
     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);
 } }
  
 Boolean CIMProperty::existsQualifier(const String& name) const  CIMQualifier CIMProperty::getQualifier(Uint32 index)
 {  
     _checkRep();  
     return _rep->existsQualifier(name);  
 }  
   
 CIMQualifier CIMProperty::getQualifier(Uint32 pos)  
 { {
     _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 205 
Line 205 
     return _rep->getQualifierCount();     return _rep->getQualifierCount();
 } }
  
 void CIMProperty::resolve(  Boolean CIMProperty::isUninitialized() const
     DeclContext* declContext,  
     const String& nameSpace,  
     Boolean isInstancePart,  
     const CIMConstProperty& property,  
     Boolean propagateQualifiers)  
 {  
     _checkRep();  
     _rep->resolve(declContext,  
         nameSpace, isInstancePart, property, propagateQualifiers);  
 }  
   
 void CIMProperty::resolve(  
     DeclContext* declContext,  
     const String& nameSpace,  
     Boolean isInstancePart,  
     Boolean propagateQualifiers)  
 {  
     _checkRep();  
     _rep->resolve(  
         declContext, nameSpace, isInstancePart, propagateQualifiers);  
 }  
   
 CIMProperty::operator int() const  
 {  
     return (_rep != 0);  
 }  
   
 void CIMProperty::toXml(Array<Sint8>& out) const  
 {  
     _checkRep();  
     _rep->toXml(out);  
 }  
   
 void CIMProperty::print(PEGASUS_STD(ostream)& o) const  
 {  
     _checkRep();  
     _rep->print(o);  
 }  
   
 void CIMProperty::toMof(Array<Sint8>& out) const  
 { {
     _checkRep();      return (_rep == 0)? true : false;
     _rep->toMof(out);  
 } }
  
 Boolean CIMProperty::identical(const CIMConstProperty& x) const Boolean CIMProperty::identical(const CIMConstProperty& x) const
Line 258 
Line 217 
     return _rep->identical(x._rep);     return _rep->identical(x._rep);
 } }
  
 Boolean CIMProperty::isKey() const  CIMProperty CIMProperty::clone() const
 {  
     _checkRep();  
     return _rep->isKey();  
 }  
   
 CIMProperty CIMProperty::clone(Boolean propagateQualifiers) const  
 { {
     return CIMProperty(_rep->clone(propagateQualifiers));      return CIMProperty(_rep->clone());
 } }
  
 void CIMProperty::_checkRep() const void CIMProperty::_checkRep() const
 { {
     if (!_rep)     if (!_rep)
         ThrowUnitializedHandle();          throw UninitializedObjectException();
 } }
  
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
Line 296 
Line 249 
     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 335 
Line 286 
     return *this;     return *this;
 } }
  
 const String& CIMConstProperty::getName() const  const CIMName& CIMConstProperty::getName() const
 { {
     _checkRep();     _checkRep();
     return _rep->getName();     return _rep->getName();
Line 365 
Line 316 
     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 383 
Line 334 
     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 401 
Line 352 
     return _rep->getQualifierCount();     return _rep->getQualifierCount();
 } }
  
 CIMConstProperty::operator int() const  Boolean CIMConstProperty::isUninitialized() const
 {  
     return (_rep != 0);  
 }  
   
 void CIMConstProperty::toXml(Array<Sint8>& out) const  
 { {
     _checkRep();      return (_rep == 0)? true : false;
     _rep->toXml(out);  
 }  
   
 void CIMConstProperty::print(PEGASUS_STD(ostream)& o) const  
 {  
     _checkRep();  
     _rep->print(o);  
 }  
   
 void CIMConstProperty::toMof(Array<Sint8>& out) const  
 {  
     _checkRep();  
     _rep->toMof(out);  
 } }
  
 Boolean CIMConstProperty::identical(const CIMConstProperty& x) const Boolean CIMConstProperty::identical(const CIMConstProperty& x) const
Line 431 
Line 364 
     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)
         ThrowUnitializedHandle();          throw UninitializedObjectException();
 } }
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.12  
changed lines
  Added in v.1.28

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2