version 1.40, 2002/08/21 00:15:44
|
version 1.41, 2002/08/26 16:26:10
|
|
|
if (_rep->_type != CIMTYPE_BOOLEAN || _rep->_isArray) | if (_rep->_type != CIMTYPE_BOOLEAN || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = _rep->_u._booleanValue != 0; | x = _rep->_u._booleanValue != 0; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_UINT8 || _rep->_isArray) | if (_rep->_type != CIMTYPE_UINT8 || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = _rep->_u._uint8Value; | x = _rep->_u._uint8Value; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_SINT8 || _rep->_isArray) | if (_rep->_type != CIMTYPE_SINT8 || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = _rep->_u._sint8Value; | x = _rep->_u._sint8Value; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_UINT16 || _rep->_isArray) | if (_rep->_type != CIMTYPE_UINT16 || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = _rep->_u._uint16Value; | x = _rep->_u._uint16Value; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_SINT16 || _rep->_isArray) | if (_rep->_type != CIMTYPE_SINT16 || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = _rep->_u._sint16Value; | x = _rep->_u._sint16Value; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_UINT32 || _rep->_isArray) | if (_rep->_type != CIMTYPE_UINT32 || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = _rep->_u._uint32Value; | x = _rep->_u._uint32Value; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_SINT32 || _rep->_isArray) | if (_rep->_type != CIMTYPE_SINT32 || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = _rep->_u._sint32Value; | x = _rep->_u._sint32Value; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_UINT64 || _rep->_isArray) | if (_rep->_type != CIMTYPE_UINT64 || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = _rep->_u._uint64Value; | x = _rep->_u._uint64Value; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_SINT64 || _rep->_isArray) | if (_rep->_type != CIMTYPE_SINT64 || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = _rep->_u._sint64Value; | x = _rep->_u._sint64Value; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_REAL32 || _rep->_isArray) | if (_rep->_type != CIMTYPE_REAL32 || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = _rep->_u._real32Value; | x = _rep->_u._real32Value; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_REAL64 || _rep->_isArray) | if (_rep->_type != CIMTYPE_REAL64 || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = _rep->_u._real64Value; | x = _rep->_u._real64Value; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_CHAR16 || _rep->_isArray) | if (_rep->_type != CIMTYPE_CHAR16 || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = _rep->_u._char16Value; | x = _rep->_u._char16Value; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_STRING || _rep->_isArray) | if (_rep->_type != CIMTYPE_STRING || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._stringValue; | x = *_rep->_u._stringValue; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_DATETIME || _rep->_isArray) | if (_rep->_type != CIMTYPE_DATETIME || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._dateTimeValue; | x = *_rep->_u._dateTimeValue; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_REFERENCE || _rep->_isArray) | if (_rep->_type != CIMTYPE_REFERENCE || _rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._referenceValue; | x = *_rep->_u._referenceValue; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_BOOLEAN || !_rep->_isArray) | if (_rep->_type != CIMTYPE_BOOLEAN || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._booleanArray; | x = *_rep->_u._booleanArray; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_UINT8 || !_rep->_isArray) | if (_rep->_type != CIMTYPE_UINT8 || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._uint8Array; | x = *_rep->_u._uint8Array; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_SINT8 || !_rep->_isArray) | if (_rep->_type != CIMTYPE_SINT8 || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._sint8Array; | x = *_rep->_u._sint8Array; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_UINT16 || !_rep->_isArray) | if (_rep->_type != CIMTYPE_UINT16 || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._uint16Array; | x = *_rep->_u._uint16Array; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_SINT16 || !_rep->_isArray) | if (_rep->_type != CIMTYPE_SINT16 || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._sint16Array; | x = *_rep->_u._sint16Array; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_UINT32 || !_rep->_isArray) | if (_rep->_type != CIMTYPE_UINT32 || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._uint32Array; | x = *_rep->_u._uint32Array; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_SINT32 || !_rep->_isArray) | if (_rep->_type != CIMTYPE_SINT32 || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._sint32Array; | x = *_rep->_u._sint32Array; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_UINT64 || !_rep->_isArray) | if (_rep->_type != CIMTYPE_UINT64 || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._uint64Array; | x = *_rep->_u._uint64Array; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_SINT64 || !_rep->_isArray) | if (_rep->_type != CIMTYPE_SINT64 || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._sint64Array; | x = *_rep->_u._sint64Array; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_REAL32 || !_rep->_isArray) | if (_rep->_type != CIMTYPE_REAL32 || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._real32Array; | x = *_rep->_u._real32Array; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_REAL64 || !_rep->_isArray) | if (_rep->_type != CIMTYPE_REAL64 || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._real64Array; | x = *_rep->_u._real64Array; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_CHAR16 || !_rep->_isArray) | if (_rep->_type != CIMTYPE_CHAR16 || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._char16Array; | x = *_rep->_u._char16Array; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_STRING || !_rep->_isArray) | if (_rep->_type != CIMTYPE_STRING || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._stringArray; | x = *_rep->_u._stringArray; |
} | } |
| |
void CIMValue::get(Array<CIMDateTime>& x) const | void CIMValue::get(Array<CIMDateTime>& x) const |
{ | { |
// ATTN-RK-20020815: Use UninitializedObjectException here if CIMValue is null? |
|
|
|
if (_rep->_type != CIMTYPE_DATETIME || !_rep->_isArray) | if (_rep->_type != CIMTYPE_DATETIME || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._dateTimeArray; | x = *_rep->_u._dateTimeArray; |
} | } |
| |
|
|
if (_rep->_type != CIMTYPE_REFERENCE || !_rep->_isArray) | if (_rep->_type != CIMTYPE_REFERENCE || !_rep->_isArray) |
throw TypeMismatchException(); | throw TypeMismatchException(); |
| |
|
if (!_rep->_isNull) |
x = *_rep->_u._referenceArray; | x = *_rep->_u._referenceArray; |
} | } |
| |