version 1.111, 2005/03/15 05:41:45
|
version 1.112, 2005/03/28 09:42:51
|
|
|
// Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com) | // Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com) |
// Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) | // Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
// Sean Keenan, Hewlett-Packard Company (sean.keenan@hp.com) | // Sean Keenan, Hewlett-Packard Company (sean.keenan@hp.com) |
|
// Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) for Bug#3103 |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
|
|
#endif | #endif |
// l10n | // l10n |
#include <Pegasus/Common/MessageLoader.h> | #include <Pegasus/Common/MessageLoader.h> |
|
#include <Pegasus/Common/AutoPtr.h> |
| |
#define PEGASUS_SINT64_MIN (PEGASUS_SINT64_LITERAL(0x8000000000000000)) | #define PEGASUS_SINT64_MIN (PEGASUS_SINT64_LITERAL(0x8000000000000000)) |
#define PEGASUS_UINT64_MAX PEGASUS_UINT64_LITERAL(0xFFFFFFFFFFFFFFFF) | #define PEGASUS_UINT64_MAX PEGASUS_UINT64_LITERAL(0xFFFFFFFFFFFFFFFF) |
|
|
| |
// First we need to create a new "temporary" XmlParser that is | // First we need to create a new "temporary" XmlParser that is |
// just the value of the Embedded Object in String representation. | // just the value of the Embedded Object in String representation. |
char* tmp_buffer = new char[strlen(valueString) + 1]; |
AutoArrayPtr<char> tmp_buffer(new char[strlen(valueString) + 1]); |
strcpy(tmp_buffer, valueString); |
strcpy(tmp_buffer.get(), valueString); |
XmlParser tmp_parser(tmp_buffer); |
XmlParser tmp_parser(tmp_buffer.get()); |
| |
// The next bit of logic constructs a CIMObject from the Embedded Object String. | // The next bit of logic constructs a CIMObject from the Embedded Object String. |
// It is similar to the method XmlReader::getValueObjectElement(). | // It is similar to the method XmlReader::getValueObjectElement(). |
|
|
| |
} | } |
// Ok, now we can delete the storage for the temporary XmlParser. | // Ok, now we can delete the storage for the temporary XmlParser. |
delete [] tmp_buffer; |
tmp_buffer.reset(); |
} | } |
return CIMValue(x); | return CIMValue(x); |
} | } |