(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.28 and 1.35

version 1.28, 2003/10/22 14:26:02 version 1.35, 2007/10/19 18:22:02
Line 1 
Line 1 
 //%2003////////////////////////////////////////////////////////////////////////  //%2006////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002  BMC Software, Hewlett-Packard Development  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // Company, L. P., IBM Corp., 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.; // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.;
 // IBM Corp.; EMC Corporation, The Open Group. // 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.
   // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; Symantec 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 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Mike Brasher (mbrasher@bmc.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 "CIMPropertyRep.h"
Line 69 
Line 69 
         arraySize, referenceClassName, classOrigin, propagated);         arraySize, referenceClassName, classOrigin, propagated);
 } }
  
 // This constructor allows the CIMClassRep friend class to cast  
 // away constness.  
 CIMProperty::CIMProperty(const CIMConstProperty& x)  
 {  
     Inc(_rep = x._rep);  
 }  
   
 CIMProperty::CIMProperty(CIMPropertyRep* rep) CIMProperty::CIMProperty(CIMPropertyRep* rep)
     : _rep(rep)     : _rep(rep)
 { {
Line 98 
Line 91 
  
 const CIMName& CIMProperty::getName() const const CIMName& CIMProperty::getName() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getName();     return _rep->getName();
 } }
  
 void CIMProperty::setName(const CIMName& name) void CIMProperty::setName(const CIMName& name)
 { {
     _checkRep();      CheckRep(_rep);
     _rep->setName(name);     _rep->setName(name);
 } }
  
 const CIMValue& CIMProperty::getValue() const const CIMValue& CIMProperty::getValue() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getValue();     return _rep->getValue();
 } }
  
 CIMType CIMProperty::getType() const CIMType CIMProperty::getType() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getValue().getType();     return _rep->getValue().getType();
 } }
  
 Boolean CIMProperty::isArray() const Boolean CIMProperty::isArray() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getValue().isArray();     return _rep->getValue().isArray();
 } }
  
 void CIMProperty::setValue(const CIMValue& value) void CIMProperty::setValue(const CIMValue& value)
 { {
     _checkRep();      CheckRep(_rep);
     _rep->setValue(value);     _rep->setValue(value);
 } }
  
 Uint32 CIMProperty::getArraySize() const Uint32 CIMProperty::getArraySize() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getArraySize();     return _rep->getArraySize();
 } }
  
 const CIMName& CIMProperty::getReferenceClassName() const const CIMName& CIMProperty::getReferenceClassName() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getReferenceClassName();     return _rep->getReferenceClassName();
 } }
  
 const CIMName& CIMProperty::getClassOrigin() const const CIMName& CIMProperty::getClassOrigin() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getClassOrigin();     return _rep->getClassOrigin();
 } }
  
 void CIMProperty::setClassOrigin(const CIMName& classOrigin) void CIMProperty::setClassOrigin(const CIMName& classOrigin)
 { {
     _checkRep();      CheckRep(_rep);
     _rep->setClassOrigin(classOrigin);     _rep->setClassOrigin(classOrigin);
 } }
  
 Boolean CIMProperty::getPropagated() const Boolean CIMProperty::getPropagated() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getPropagated();     return _rep->getPropagated();
 } }
  
 void CIMProperty::setPropagated(Boolean propagated) void CIMProperty::setPropagated(Boolean propagated)
 { {
     _checkRep();      CheckRep(_rep);
     _rep->setPropagated(propagated);     _rep->setPropagated(propagated);
 } }
  
 CIMProperty& CIMProperty::addQualifier(const CIMQualifier& x) CIMProperty& CIMProperty::addQualifier(const CIMQualifier& x)
 { {
     _checkRep();      CheckRep(_rep);
     _rep->addQualifier(x);     _rep->addQualifier(x);
     return *this;     return *this;
 } }
  
 Uint32 CIMProperty::findQualifier(const CIMName& name) const Uint32 CIMProperty::findQualifier(const CIMName& name) const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->findQualifier(name);     return _rep->findQualifier(name);
 } }
  
 CIMQualifier CIMProperty::getQualifier(Uint32 index) CIMQualifier CIMProperty::getQualifier(Uint32 index)
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getQualifier(index);     return _rep->getQualifier(index);
 } }
  
 CIMConstQualifier CIMProperty::getQualifier(Uint32 index) const CIMConstQualifier CIMProperty::getQualifier(Uint32 index) const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getQualifier(index);     return _rep->getQualifier(index);
 } }
  
 void CIMProperty::removeQualifier(Uint32 index) void CIMProperty::removeQualifier(Uint32 index)
 { {
     _checkRep();      CheckRep(_rep);
     _rep->removeQualifier(index);     _rep->removeQualifier(index);
 } }
  
 Uint32 CIMProperty::getQualifierCount() const Uint32 CIMProperty::getQualifierCount() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getQualifierCount();     return _rep->getQualifierCount();
 } }
  
 Boolean CIMProperty::isUninitialized() const Boolean CIMProperty::isUninitialized() const
 { {
     return (_rep == 0)? true : false;      return _rep == 0;
 } }
  
 Boolean CIMProperty::identical(const CIMConstProperty& x) const Boolean CIMProperty::identical(const CIMConstProperty& x) const
 { {
     x._checkRep();      CheckRep(x._rep);
     _checkRep();      CheckRep(_rep);
     return _rep->identical(x._rep);     return _rep->identical(x._rep);
 } }
  
Line 222 
Line 215 
     return CIMProperty(_rep->clone());     return CIMProperty(_rep->clone());
 } }
  
 void CIMProperty::_checkRep() const  
 {  
     if (!_rep)  
         throw UninitializedObjectException();  
 }  
  
 //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
 // //
Line 288 
Line 276 
  
 const CIMName& CIMConstProperty::getName() const const CIMName& CIMConstProperty::getName() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getName();     return _rep->getName();
 } }
  
 const CIMValue& CIMConstProperty::getValue() const const CIMValue& CIMConstProperty::getValue() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getValue();     return _rep->getValue();
 } }
  
 CIMType CIMConstProperty::getType() const CIMType CIMConstProperty::getType() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getValue().getType();     return _rep->getValue().getType();
 } }
  
 Boolean CIMConstProperty::isArray() const Boolean CIMConstProperty::isArray() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getValue().isArray();     return _rep->getValue().isArray();
 } }
  
 Uint32 CIMConstProperty::getArraySize() const Uint32 CIMConstProperty::getArraySize() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getArraySize();     return _rep->getArraySize();
 } }
  
 const CIMName& CIMConstProperty::getReferenceClassName() const const CIMName& CIMConstProperty::getReferenceClassName() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getReferenceClassName();     return _rep->getReferenceClassName();
 } }
  
 const CIMName& CIMConstProperty::getClassOrigin() const const CIMName& CIMConstProperty::getClassOrigin() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getClassOrigin();     return _rep->getClassOrigin();
 } }
  
 Boolean CIMConstProperty::getPropagated() const Boolean CIMConstProperty::getPropagated() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getPropagated();     return _rep->getPropagated();
 } }
  
 Uint32 CIMConstProperty::findQualifier(const CIMName& name) const Uint32 CIMConstProperty::findQualifier(const CIMName& name) const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->findQualifier(name);     return _rep->findQualifier(name);
 } }
  
 CIMConstQualifier CIMConstProperty::getQualifier(Uint32 index) const CIMConstQualifier CIMConstProperty::getQualifier(Uint32 index) const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getQualifier(index);     return _rep->getQualifier(index);
 } }
  
 Uint32 CIMConstProperty::getQualifierCount() const Uint32 CIMConstProperty::getQualifierCount() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getQualifierCount();     return _rep->getQualifierCount();
 } }
  
 Boolean CIMConstProperty::isUninitialized() const Boolean CIMConstProperty::isUninitialized() const
 { {
     return (_rep == 0)? true : false;      return _rep == 0;
 } }
  
 Boolean CIMConstProperty::identical(const CIMConstProperty& x) const Boolean CIMConstProperty::identical(const CIMConstProperty& x) const
 { {
     x._checkRep();      CheckRep(x._rep);
     _checkRep();      CheckRep(_rep);
     return _rep->identical(x._rep);     return _rep->identical(x._rep);
 } }
  
Line 369 
Line 357 
     return CIMProperty(_rep->clone());     return CIMProperty(_rep->clone());
 } }
  
 void CIMConstProperty::_checkRep() const  
 {  
     if (!_rep)  
         throw UninitializedObjectException();  
 }  
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2