version 1.20, 2002/09/20 16:48:11
|
version 1.22, 2002/09/20 19:40:11
|
|
|
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <cctype> | #include <cctype> |
#include <cstring> | #include <cstring> |
|
#include <iostream> |
#include "HashTable.h" | #include "HashTable.h" |
#include "CIMObjectPath.h" | #include "CIMObjectPath.h" |
#include "Indentor.h" | #include "Indentor.h" |
|
|
| |
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; |
} | } |
|
|
setKeyBindings(keyBindings); | setKeyBindings(keyBindings); |
} | } |
| |
Boolean CIMObjectPath::_parseHostElement( |
Boolean _parseHostElement( |
const String& objectName, | const String& objectName, |
char*& p, | char*& p, |
String& host) | String& host) |
|
|
return true; | return true; |
} | } |
| |
Boolean CIMObjectPath::_parseNamespaceElement( |
Boolean _parseNamespaceElement( |
const String& objectName, | const String& objectName, |
char*& p, | char*& p, |
CIMNamespaceName& nameSpace) | CIMNamespaceName& nameSpace) |
|
|
operation of retrieving the class definition to determine | operation of retrieving the class definition to determine |
the key property types. | the key property types. |
*/ | */ |
void CIMObjectPath::_parseKeyBindingPairs( |
void _parseKeyBindingPairs( |
const String& objectName, | const String& objectName, |
char*& p, | char*& p, |
Array<CIMKeyBinding>& keyBindings) | Array<CIMKeyBinding>& keyBindings) |
|
|
return !operator==(x, y); | return !operator==(x, y); |
} | } |
| |
|
#ifndef PEGASUS_REMOVE_DEPRECATED |
PEGASUS_STD(ostream)& operator<<( | PEGASUS_STD(ostream)& operator<<( |
PEGASUS_STD(ostream)& os, | PEGASUS_STD(ostream)& os, |
const CIMObjectPath& x) | const CIMObjectPath& x) |
{ | { |
return os << x.toString(); | return os << x.toString(); |
} | } |
|
#endif |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |