version 1.43, 2007/10/23 17:42:56
|
version 1.44, 2007/11/11 19:48:34
|
|
|
_type(x._type), | _type(x._type), |
_isArray(x._isArray), | _isArray(x._isArray), |
_arraySize(x._arraySize), | _arraySize(x._arraySize), |
_referenceClassName(x._referenceClassName) |
_referenceClassName(x._referenceClassName), |
|
_ownerCount(0) |
{ | { |
x._qualifiers.cloneTo(_qualifiers); | x._qualifiers.cloneTo(_qualifiers); |
|
// Set the CIM name tag. |
|
_nameTag = generateCIMNameTag(_name); |
} | } |
| |
CIMParameterRep::CIMParameterRep( | CIMParameterRep::CIMParameterRep( |
|
|
const CIMName& referenceClassName) | const CIMName& referenceClassName) |
: _name(name), _type(type), | : _name(name), _type(type), |
_isArray(isArray), _arraySize(arraySize), | _isArray(isArray), _arraySize(arraySize), |
_referenceClassName(referenceClassName) |
_referenceClassName(referenceClassName), |
|
_ownerCount(0) |
{ | { |
// ensure name is not null | // ensure name is not null |
if (name.isNull()) | if (name.isNull()) |
{ | { |
throw UninitializedObjectException(); | throw UninitializedObjectException(); |
} | } |
|
// Set the CIM name tag. |
|
_nameTag = generateCIMNameTag(_name); |
| |
if ((_arraySize != 0) && !_isArray) | if ((_arraySize != 0) && !_isArray) |
{ | { |
|
|
{ | { |
throw UninitializedObjectException(); | throw UninitializedObjectException(); |
} | } |
|
if (_ownerCount != 0 && _name != name) |
|
{ |
|
MessageLoaderParms parms( |
|
"Common.CIMParameterRep.CONTAINED_PARAMETER_NAMECHANGEDEXCEPTION", |
|
"Attempted to change the name of a parameter" |
|
" already in a container."); |
|
throw Exception(parms); |
|
} |
_name = name; | _name = name; |
|
// Set the CIM name tag. |
|
_nameTag = generateCIMNameTag(_name); |
} | } |
| |
void CIMParameterRep::removeQualifier(Uint32 index) | void CIMParameterRep::removeQualifier(Uint32 index) |