version 1.70, 2002/08/25 06:43:56
|
version 1.72, 2002/09/11 19:11:54
|
|
|
#include "CIMInstance.h" | #include "CIMInstance.h" |
#include "CIMObject.h" | #include "CIMObject.h" |
#include "CIMParamValue.h" | #include "CIMParamValue.h" |
|
#include "System.h" |
| |
//#define PEGASUS_SINT64_MIN (-PEGASUS_SINT64_LITERAL(9223372036854775808)) | //#define PEGASUS_SINT64_MIN (-PEGASUS_SINT64_LITERAL(9223372036854775808)) |
//#define PEGASUS_UINT64_MAX PEGASUS_UINT64_LITERAL(18446744073709551615) | //#define PEGASUS_UINT64_MAX PEGASUS_UINT64_LITERAL(18446744073709551615) |
|
|
{ | { |
case CIMTYPE_BOOLEAN: | case CIMTYPE_BOOLEAN: |
{ | { |
if (CompareNoCase(valueString, "TRUE") == 0) |
if (System::strcasecmp(valueString, "TRUE") == 0) |
return CIMValue(true); | return CIMValue(true); |
else if (CompareNoCase(valueString, "FALSE") == 0) |
else if (System::strcasecmp(valueString, "FALSE") == 0) |
return CIMValue(false); | return CIMValue(false); |
else | else |
throw XmlSemanticError( | throw XmlSemanticError( |
|
|
while (getNameSpaceElement(parser, nameSpaceComponent)) | while (getNameSpaceElement(parser, nameSpaceComponent)) |
{ | { |
if (nameSpace.size()) | if (nameSpace.size()) |
nameSpace += '/'; |
nameSpace.append('/'); |
| |
nameSpace += nameSpaceComponent; |
nameSpace.append(nameSpaceComponent); |
} | } |
| |
if (!nameSpace.size()) | if (!nameSpace.size()) |
|
|
| |
expectContentOrCData(parser, entry); | expectContentOrCData(parser, entry); |
| |
if (CompareNoCase(entry.text, "TRUE") == 0) |
if (System::strcasecmp(entry.text, "TRUE") == 0) |
result = true; | result = true; |
else if (CompareNoCase(entry.text, "FALSE") == 0) |
else if (System::strcasecmp(entry.text, "FALSE") == 0) |
result = false; | result = false; |
else | else |
throw XmlSemanticError(parser.getLine(), | throw XmlSemanticError(parser.getLine(), |