version 1.26, 2002/08/27 23:38:44
|
version 1.27, 2002/09/11 21:20:24
|
|
|
_referenceClassName(referenceClassName) | _referenceClassName(referenceClassName) |
{ | { |
if (_arraySize && !_isArray) | if (_arraySize && !_isArray) |
throw IncompatibleTypesException(); |
throw TypeMismatchException(); |
| |
if (!referenceClassName.isNull()) | if (!referenceClassName.isNull()) |
{ | { |
if (_type != CIMTYPE_REFERENCE) | if (_type != CIMTYPE_REFERENCE) |
{ | { |
throw ExpectedReferenceValueException(); |
throw TypeMismatchException(); |
} | } |
} | } |
else | else |
|
|
// ATTN: revisit this later! | // ATTN: revisit this later! |
#if 0 | #if 0 |
if (_type == CIMTYPE_REFERENCE) | if (_type == CIMTYPE_REFERENCE) |
throw MissingReferenceClassNameException(); |
throw TypeMismatchException(); |
#endif | #endif |
} | } |
} | } |
|
|
x._qualifiers.cloneTo(_qualifiers); | x._qualifiers.cloneTo(_qualifiers); |
} | } |
| |
void CIMParameterRep::setType(CIMType type) |
|
{ |
|
_type = type; |
|
|
|
if (_referenceClassName.isNull() && _type == CIMTYPE_REFERENCE) |
|
{ |
|
throw MissingReferenceClassNameException(); |
|
} |
|
} |
|
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |