version 1.23, 2002/09/11 21:20:24
|
version 1.23.2.1, 2002/10/28 15:43:21
|
|
|
} | } |
| |
CIMParameter::CIMParameter( | CIMParameter::CIMParameter( |
const CIMName& name, |
const String& name, |
CIMType type, | CIMType type, |
Boolean isArray, | Boolean isArray, |
Uint32 arraySize, | Uint32 arraySize, |
const CIMName& referenceClassName) |
const String& referenceClassName) |
{ | { |
_rep = new CIMParameterRep( | _rep = new CIMParameterRep( |
name, type, isArray, arraySize, referenceClassName); | name, type, isArray, arraySize, referenceClassName); |
|
|
return *this; | return *this; |
} | } |
| |
const CIMName& CIMParameter::getName() const |
const String& CIMParameter::getName() const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getName(); | return _rep->getName(); |
} | } |
| |
void CIMParameter::setName(const CIMName& name) |
void CIMParameter::setName(const String& name) |
{ | { |
_checkRep(); | _checkRep(); |
_rep->setName(name); | _rep->setName(name); |
|
|
return _rep->getArraySize(); | return _rep->getArraySize(); |
} | } |
| |
const CIMName& CIMParameter::getReferenceClassName() const |
const String& CIMParameter::getReferenceClassName() const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getReferenceClassName(); | return _rep->getReferenceClassName(); |
|
|
return _rep->getType(); | return _rep->getType(); |
} | } |
| |
CIMParameter& CIMParameter::addQualifier(const CIMQualifier& x) |
void CIMParameter::setType(const CIMType type) |
{ | { |
_checkRep(); | _checkRep(); |
_rep->addQualifier(x); |
_rep->setType(type); |
return *this; |
|
} | } |
| |
Uint32 CIMParameter::findQualifier(const CIMName& name) const |
CIMParameter& CIMParameter::addQualifier(const CIMQualifier& x) |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->findQualifier(name); |
_rep->addQualifier(x); |
|
return *this; |
} | } |
| |
CIMQualifier CIMParameter::getQualifier(Uint32 index) |
Uint32 CIMParameter::findQualifier(const String& name) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getQualifier(index); |
return _rep->findQualifier(name); |
} | } |
| |
CIMConstQualifier CIMParameter::getQualifier(Uint32 index) const |
CIMQualifier CIMParameter::getQualifier(Uint32 pos) |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getQualifier(index); |
return _rep->getQualifier(pos); |
} | } |
| |
void CIMParameter::removeQualifier (Uint32 index) |
CIMConstQualifier CIMParameter::getQualifier(Uint32 pos) const |
{ | { |
_checkRep (); | _checkRep (); |
_rep->removeQualifier (index); |
return _rep->getQualifier(pos); |
} | } |
| |
Uint32 CIMParameter::getQualifierCount() const | Uint32 CIMParameter::getQualifierCount() const |
|
|
return _rep->getQualifierCount(); | return _rep->getQualifierCount(); |
} | } |
| |
Boolean CIMParameter::isUninitialized() const |
Boolean CIMParameter::isNull() const |
{ | { |
return (_rep == 0)? true : false; | return (_rep == 0)? true : false; |
} | } |
|
|
void CIMParameter::_checkRep() const | void CIMParameter::_checkRep() const |
{ | { |
if (!_rep) | if (!_rep) |
throw UninitializedObjectException(); |
ThrowUninitializedHandle(); |
} | } |
| |
| |
|
|
} | } |
| |
CIMConstParameter::CIMConstParameter( | CIMConstParameter::CIMConstParameter( |
const CIMName& name, |
const String& name, |
CIMType type, | CIMType type, |
Boolean isArray, | Boolean isArray, |
Uint32 arraySize, | Uint32 arraySize, |
const CIMName& referenceClassName) |
const String& referenceClassName) |
{ | { |
_rep = new CIMParameterRep( | _rep = new CIMParameterRep( |
name, type, isArray, arraySize, referenceClassName); | name, type, isArray, arraySize, referenceClassName); |
|
|
return *this; | return *this; |
} | } |
| |
const CIMName& CIMConstParameter::getName() const |
const String& CIMConstParameter::getName() const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getName(); | return _rep->getName(); |
|
|
return _rep->getArraySize(); | return _rep->getArraySize(); |
} | } |
| |
const CIMName& CIMConstParameter::getReferenceClassName() const |
const String& CIMConstParameter::getReferenceClassName() const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getReferenceClassName(); | return _rep->getReferenceClassName(); |
|
|
return _rep->getType(); | return _rep->getType(); |
} | } |
| |
Uint32 CIMConstParameter::findQualifier(const CIMName& name) const |
Uint32 CIMConstParameter::findQualifier(const String& name) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->findQualifier(name); | return _rep->findQualifier(name); |
} | } |
| |
CIMConstQualifier CIMConstParameter::getQualifier(Uint32 index) const |
CIMConstQualifier CIMConstParameter::getQualifier(Uint32 pos) const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getQualifier(index); |
return _rep->getQualifier(pos); |
} | } |
| |
Uint32 CIMConstParameter::getQualifierCount() const | Uint32 CIMConstParameter::getQualifierCount() const |
|
|
return _rep->getQualifierCount(); | return _rep->getQualifierCount(); |
} | } |
| |
Boolean CIMConstParameter::isUninitialized() const |
Boolean CIMConstParameter::isNull() const |
{ | { |
return (_rep == 0)? true : false; | return (_rep == 0)? true : false; |
} | } |
|
|
void CIMConstParameter::_checkRep() const | void CIMConstParameter::_checkRep() const |
{ | { |
if (!_rep) | if (!_rep) |
throw UninitializedObjectException(); |
ThrowUninitializedHandle(); |
} | } |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |