version 1.7, 2002/05/15 10:34:28
|
version 1.20, 2007/09/03 11:27:02
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// 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.; |
|
// 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 |
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com) |
|
// |
|
// Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#include "CIMParamValueRep.h" | #include "CIMParamValueRep.h" |
|
|
| |
String CIMParamValue::getParameterName() const | String CIMParamValue::getParameterName() const |
{ | { |
_checkRep(); |
CheckRep(_rep); |
return _rep->getParameterName(); | return _rep->getParameterName(); |
} | } |
| |
CIMValue CIMParamValue::getValue() const | CIMValue CIMParamValue::getValue() const |
{ | { |
_checkRep(); |
CheckRep(_rep); |
return _rep->getValue(); | return _rep->getValue(); |
} | } |
| |
Boolean CIMParamValue::isTyped() const | Boolean CIMParamValue::isTyped() const |
{ | { |
_checkRep(); |
CheckRep(_rep); |
return _rep->isTyped(); | return _rep->isTyped(); |
} | } |
| |
void CIMParamValue::setParameterName(String& parameterName) | void CIMParamValue::setParameterName(String& parameterName) |
{ | { |
_checkRep(); |
CheckRep(_rep); |
_rep->setParameterName(parameterName); | _rep->setParameterName(parameterName); |
} | } |
| |
void CIMParamValue::setValue(CIMValue& value) | void CIMParamValue::setValue(CIMValue& value) |
{ | { |
_checkRep(); |
CheckRep(_rep); |
_rep->setValue(value); | _rep->setValue(value); |
} | } |
| |
void CIMParamValue::setIsTyped(Boolean isTyped) | void CIMParamValue::setIsTyped(Boolean isTyped) |
{ | { |
_checkRep(); |
CheckRep(_rep); |
_rep->setIsTyped(isTyped); | _rep->setIsTyped(isTyped); |
} | } |
| |
Boolean CIMParamValue::isNull() const |
Boolean CIMParamValue::isUninitialized() const |
{ |
|
return (_rep == 0)? true : false; |
|
} |
|
|
|
Boolean CIMParamValue::identical(const CIMParamValue& x) const |
|
{ | { |
x._checkRep(); |
return _rep == 0; |
_checkRep(); |
|
return _rep->identical(x._rep); |
|
} | } |
| |
CIMParamValue CIMParamValue::clone() const | CIMParamValue CIMParamValue::clone() const |
{ | { |
|
CheckRep(_rep); |
return CIMParamValue(_rep->clone()); | return CIMParamValue(_rep->clone()); |
} | } |
| |
void CIMParamValue::_checkRep() const | void CIMParamValue::_checkRep() const |
{ | { |
if (!_rep) | if (!_rep) |
ThrowUninitializedHandle(); |
throw UninitializedObjectException(); |
} | } |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |