version 1.20, 2002/09/20 16:48:11
|
version 1.21, 2002/09/20 17:17:22
|
|
|
| |
CIMKeyBinding::CIMKeyBinding(const CIMName& name, const CIMValue& value) | CIMKeyBinding::CIMKeyBinding(const CIMName& name, const CIMValue& value) |
{ | { |
// ATTN-RK-20020920: Verify that real numbers cannot be keys |
if (value.isArray()) |
if (value.isArray() || |
|
(value.getType() == CIMTYPE_REAL32) || |
|
(value.getType() == CIMTYPE_REAL64)) |
|
{ | { |
throw TypeMismatchException(); | throw TypeMismatchException(); |
} | } |
|
|
| |
Boolean CIMKeyBinding::equal(CIMValue value) | Boolean CIMKeyBinding::equal(CIMValue value) |
{ | { |
// ATTN-RK-20020920: Verify that real numbers cannot be keys |
if (value.isArray()) |
if (value.isArray() || |
|
(value.getType() == CIMTYPE_REAL32) || |
|
(value.getType() == CIMTYPE_REAL64)) |
|
{ | { |
return false; | return false; |
} | } |