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

Diff for /pegasus/src/Pegasus/Common/CIMParameter.cpp between version 1.10 and 1.17

version 1.10, 2002/05/07 00:00:35 version 1.17, 2002/07/30 16:14:53
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 23 
Line 24 
 // 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)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 52 
Line 55 
 } }
  
 CIMParameter::CIMParameter( CIMParameter::CIMParameter(
     const String& name,      const CIMName& name,
     CIMType type,     CIMType type,
     Boolean isArray,     Boolean isArray,
     Uint32 arraySize,     Uint32 arraySize,
     const String& referenceClassName)      const CIMName& referenceClassName)
 { {
     _rep = new CIMParameterRep(     _rep = new CIMParameterRep(
         name, type, isArray, arraySize, referenceClassName);         name, type, isArray, arraySize, referenceClassName);
Line 82 
Line 85 
     return *this;     return *this;
 } }
  
 const String& CIMParameter::getName() const  const CIMName& CIMParameter::getName() const
 { {
     _checkRep();     _checkRep();
     return _rep->getName();     return _rep->getName();
 } }
  
 void CIMParameter::setName(const String& name)  void CIMParameter::setName(const CIMName& name)
 { {
     _checkRep();     _checkRep();
     _rep->setName(name);     _rep->setName(name);
Line 106 
Line 109 
     return _rep->getArraySize();     return _rep->getArraySize();
 } }
  
 const String& CIMParameter::getReferenceClassName() const  const CIMName& CIMParameter::getReferenceClassName() const
 { {
     _checkRep();     _checkRep();
     return _rep->getReferenceClassName();     return _rep->getReferenceClassName();
Line 131 
Line 134 
     return *this;     return *this;
 } }
  
 Uint32 CIMParameter::findQualifier(const String& name) const  Uint32 CIMParameter::findQualifier(const CIMName& name) const
 { {
     _checkRep();     _checkRep();
     return _rep->findQualifier(name);     return _rep->findQualifier(name);
Line 155 
Line 158 
     return _rep->getQualifierCount();     return _rep->getQualifierCount();
 } }
  
 void CIMParameter::resolve(DeclContext* declContext, const String& nameSpace)  Boolean CIMParameter::isNull() const
 { {
     _checkRep();      return (_rep == 0)? true : false;
     _rep->resolve(declContext, nameSpace);  
 }  
   
 CIMParameter::operator int() const  
 {  
     return (_rep != 0);  
 }  
   
 void CIMParameter::toXml(Array<Sint8>& out) const  
 {  
     _checkRep();  
     _rep->toXml(out);  
 }  
   
 void CIMParameter::toMof(Array<Sint8>& out) const  
 {  
     _checkRep();  
     _rep->toMof(out);  
 }  
   
 void CIMParameter::print(PEGASUS_STD(ostream)& o) const  
 {  
     _checkRep();  
     _rep->print(o);  
 } }
  
 Boolean CIMParameter::identical(const CIMConstParameter& x) const Boolean CIMParameter::identical(const CIMConstParameter& x) const
Line 199 
Line 178 
 void CIMParameter::_checkRep() const void CIMParameter::_checkRep() const
 { {
     if (!_rep)     if (!_rep)
         ThrowUnitializedHandle();          ThrowUninitializedHandle();
 } }
  
  
Line 225 
Line 204 
 } }
  
 CIMConstParameter::CIMConstParameter( CIMConstParameter::CIMConstParameter(
     const String& name,      const CIMName& name,
     CIMType type,     CIMType type,
     Boolean isArray,     Boolean isArray,
     Uint32 arraySize,     Uint32 arraySize,
     const String& referenceClassName)      const CIMName& referenceClassName)
 { {
     _rep = new CIMParameterRep(     _rep = new CIMParameterRep(
         name, type, isArray, arraySize, referenceClassName);         name, type, isArray, arraySize, referenceClassName);
Line 260 
Line 239 
     return *this;     return *this;
 } }
  
 const String& CIMConstParameter::getName() const  const CIMName& CIMConstParameter::getName() const
 { {
     _checkRep();     _checkRep();
     return _rep->getName();     return _rep->getName();
Line 278 
Line 257 
     return _rep->getArraySize();     return _rep->getArraySize();
 } }
  
 const String& CIMConstParameter::getReferenceClassName() const  const CIMName& CIMConstParameter::getReferenceClassName() const
 { {
     _checkRep();     _checkRep();
     return _rep->getReferenceClassName();     return _rep->getReferenceClassName();
Line 290 
Line 269 
     return _rep->getType();     return _rep->getType();
 } }
  
 Uint32 CIMConstParameter::findQualifier(const String& name) const  Uint32 CIMConstParameter::findQualifier(const CIMName& name) const
 { {
     _checkRep();     _checkRep();
     return _rep->findQualifier(name);     return _rep->findQualifier(name);
Line 308 
Line 287 
     return _rep->getQualifierCount();     return _rep->getQualifierCount();
 } }
  
 CIMConstParameter::operator int() const  Boolean CIMConstParameter::isNull() const
 {  
     return (_rep != 0);  
 }  
   
 void CIMConstParameter::toXml(Array<Sint8>& out) const  
 {  
     _checkRep();  
     _rep->toXml(out);  
 }  
   
 void CIMConstParameter::print(PEGASUS_STD(ostream)& o) const  
 { {
     _checkRep();      return (_rep == 0)? true : false;
     _rep->print(o);  
 } }
  
 Boolean CIMConstParameter::identical(const CIMConstParameter& x) const Boolean CIMConstParameter::identical(const CIMConstParameter& x) const
Line 340 
Line 307 
 void CIMConstParameter::_checkRep() const void CIMConstParameter::_checkRep() const
 { {
     if (!_rep)     if (!_rep)
         ThrowUnitializedHandle();          ThrowUninitializedHandle();
 } }
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.10  
changed lines
  Added in v.1.17

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2