OW_NAMESPACE::CIMValueCast Namespace Reference


Functions

CIMValue castValueToDataType (const CIMValue &value, const CIMDataType &dataType)
 Converts a given CIMValue object to an CIMValue object that represents the given CIMDataType.


Function Documentation

OW_COMMON_API CIMValue OW_NAMESPACE::CIMValueCast::castValueToDataType const CIMValue value,
const CIMDataType &  dataType
 

Converts a given CIMValue object to an CIMValue object that represents the given CIMDataType.

Parameters:
value The CIMValue object to be converted.
dataType The data type to convert the value to.
Exceptions:
ValueCastException if the convertion is not possible.

Definition at line 64 of file OW_CIMValueCast.cpp.

References OW_NAMESPACE::CIMNULL, OW_NAMESPACE::convertArray(), OW_NAMESPACE::CIMException::FAILED, OW_NAMESPACE::CIMDataType::getType(), OW_NAMESPACE::CIMValue::getType(), OW_NAMESPACE::CIMValue::isArray(), OW_NAMESPACE::CIMDataType::isArrayType(), OW_NAMESPACE::isCompatible(), OW_THROWCIMMSG, OW_NAMESPACE::CIMDataType::toString(), and OW_NAMESPACE::CIMValue::toString().

Referenced by OWBI1::CIMValueCast::castValueToDataType(), OW_NAMESPACE::CIMQualifierType::setDataType(), OW_NAMESPACE::CIMProperty::setDataType(), OW_NAMESPACE::CIMQualifierType::setDefaultValue(), OW_NAMESPACE::CIMServer::setProperty(), OW_NAMESPACE::CIMRepository2::setProperty(), OW_NAMESPACE::CIMRepository::setProperty(), OW_NAMESPACE::CIMProperty::setValue(), OW_NAMESPACE::MOF::CIMOMVisitor::VisitQualifierParameterArrayInitializer(), and OW_NAMESPACE::MOF::CIMOMVisitor::VisitQualifierParameterConstantValue().


Generated on Thu Feb 9 09:17:12 2006 for openwbem by  doxygen 1.4.6