version 1.41, 2002/08/26 16:26:10
|
version 1.42, 2002/09/11 21:20:24
|
|
|
_rep->_u._referenceArray = | _rep->_u._referenceArray = |
new Array<CIMObjectPath>(*(x._rep->_u._referenceArray)); | new Array<CIMObjectPath>(*(x._rep->_u._referenceArray)); |
break; | break; |
|
|
default: | default: |
throw CIMValueInvalidTypeException(); |
PEGASUS_ASSERT(false); |
} | } |
} | } |
else | else |
|
|
| |
// Should never get here. testing complete enum | // Should never get here. testing complete enum |
default: | default: |
throw CIMValueInvalidTypeException(); |
PEGASUS_ASSERT(false); |
} | } |
} | } |
} | } |
| |
//ATTN: P1 KS Problem with Compiler when I added the defaults to clear, the compiler |
|
// gets an exception very early. Disabled the exceptions to keep compiler running for |
|
// the minute. Note that the case statement is not complete. None missing. |
|
void CIMValue::clear() | void CIMValue::clear() |
{ | { |
if (_rep->_isArray) | if (_rep->_isArray) |
|
|
delete _rep->_u._referenceArray; | delete _rep->_u._referenceArray; |
break; | break; |
| |
//default: |
default: |
//throw CIMValueInvalidTypeException(); |
PEGASUS_ASSERT(false); |
} | } |
} | } |
else | else |
|
|
case CIMTYPE_REFERENCE: | case CIMTYPE_REFERENCE: |
delete _rep->_u._referenceValue; | delete _rep->_u._referenceValue; |
break; | break; |
//default: |
|
//throw CIMValueInvalidTypeException(); |
default: |
|
PEGASUS_ASSERT(false); |
} | } |
} | } |
| |
|
|
case CIMTYPE_REFERENCE: | case CIMTYPE_REFERENCE: |
return _rep->_u._referenceArray->size(); | return _rep->_u._referenceArray->size(); |
break; | break; |
// Should never get here. switch on complete enum |
|
default: |
//default: // Handled below |
throw CIMValueInvalidTypeException(); |
|
} | } |
| |
// Unreachable! | // Unreachable! |
|
|
case CIMTYPE_REFERENCE: | case CIMTYPE_REFERENCE: |
set(Array<CIMObjectPath>(arraySize)); | set(Array<CIMObjectPath>(arraySize)); |
break; | break; |
|
|
default: | default: |
throw CIMValueInvalidTypeException(); |
throw InvalidTypeException(); |
} | } |
} | } |
else | else |
|
|
case CIMTYPE_REFERENCE: | case CIMTYPE_REFERENCE: |
set(CIMObjectPath()); | set(CIMObjectPath()); |
break; | break; |
|
|
default: | default: |
throw CIMValueInvalidTypeException(); |
throw InvalidTypeException(); |
} | } |
} | } |
| |
|
|
case CIMTYPE_REFERENCE: | case CIMTYPE_REFERENCE: |
return (*_rep->_u._referenceArray) == | return (*_rep->_u._referenceArray) == |
(*x._rep->_u._referenceArray); | (*x._rep->_u._referenceArray); |
|
|
default: | default: |
throw CIMValueInvalidTypeException(); |
PEGASUS_ASSERT(false); |
} | } |
} | } |
else | else |
|
|
*x._rep->_u._referenceValue; | *x._rep->_u._referenceValue; |
| |
default: | default: |
throw CIMValueInvalidTypeException(); |
PEGASUS_ASSERT(false); |
} | } |
} | } |
| |
|
|
break; | break; |
| |
default: | default: |
throw CIMValueInvalidTypeException(); |
PEGASUS_ASSERT(false); |
} | } |
} | } |
else | else |
|
|
break; | break; |
| |
default: | default: |
throw CIMValueInvalidTypeException(); |
PEGASUS_ASSERT(false); |
} | } |
} | } |
| |