version 1.20, 2002/05/14 05:10:33
|
version 1.23, 2002/05/15 23:14:21
|
|
|
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/CIMType.h> | #include <Pegasus/Common/CIMType.h> |
#include <Pegasus/Common/CIMReference.h> |
#include <Pegasus/Common/CIMObjectPath.h> |
#include <Pegasus/Common/CIMDateTime.h> | #include <Pegasus/Common/CIMDateTime.h> |
#include <Pegasus/Common/Exception.h> | #include <Pegasus/Common/Exception.h> |
#include <Pegasus/Common/Array.h> | #include <Pegasus/Common/Array.h> |
|
|
CIMValue(const CIMDateTime& x); | CIMValue(const CIMDateTime& x); |
| |
/// Constructor | /// Constructor |
CIMValue(const CIMReference& x); |
CIMValue(const CIMObjectPath& x); |
| |
/// Constructor | /// Constructor |
CIMValue(const Array<Boolean>& x); | CIMValue(const Array<Boolean>& x); |
|
|
CIMValue(const Array<CIMDateTime>& x); | CIMValue(const Array<CIMDateTime>& x); |
| |
/// Constructor | /// Constructor |
CIMValue(const Array<CIMReference>& x); |
CIMValue(const Array<CIMObjectPath>& x); |
| |
/// Constructor | /// Constructor |
CIMValue(const CIMValue& x); | CIMValue(const CIMValue& x); |
|
|
/// | /// |
void set(const CIMDateTime& x); | void set(const CIMDateTime& x); |
/// | /// |
void set(const CIMReference& x); |
void set(const CIMObjectPath& x); |
/// | /// |
void set(const Array<Boolean>& x); | void set(const Array<Boolean>& x); |
/// | /// |
|
|
/// | /// |
void set(const Array<CIMDateTime>& x); | void set(const Array<CIMDateTime>& x); |
/// | /// |
void set(const Array<CIMReference>& x); |
void set(const Array<CIMObjectPath>& x); |
| |
/** get - Gets the value of a CIMValue | /** get - Gets the value of a CIMValue |
@param Variable in which we return the value: | @param Variable in which we return the value: |
|
|
/// | /// |
void get(CIMDateTime& x) const; | void get(CIMDateTime& x) const; |
/// | /// |
void get(CIMReference& x) const; |
void get(CIMObjectPath& x) const; |
/// | /// |
void get(Array<Boolean>& x) const; | void get(Array<Boolean>& x) const; |
/// | /// |
|
|
/// | /// |
void get(Array<CIMDateTime>& x) const; | void get(Array<CIMDateTime>& x) const; |
/// | /// |
void get(Array<CIMReference>& x) const; |
void get(Array<CIMObjectPath>& x) const; |
| |
/** Makes a deep copy (clone) of the given object. */ | /** Makes a deep copy (clone) of the given object. */ |
CIMValue clone() const; | CIMValue clone() const; |
| |
/** toXML - Converts a CIMValue object to XML. The XML is appended |
|
to the Array provided with the call. Returns the result as an |
|
XML element wrapped in the <VALUE>, <VALUE.ARRAY>, <VALUE.REFERENCE>, |
|
or <VALUE.REFARRAY> tags. If the CIMValue is Null, no element is |
|
returned. |
|
@param out Sint8 Array to hold the XML representation |
|
@return Returns the XML representation of the CIMValue |
|
object in the input parameter out. |
|
*/ |
|
void toXml(Array<Sint8>& out) const; |
|
|
|
/** toXML - Converts a CIMValue object to XML. There is no input |
|
parameter and the result is returned as a String rather |
|
than appended to an 8-bit array as above. Returns the |
|
element as value wrapped in the <VALUE>, <VALUE.ARRAY>, |
|
<VALUE.REFERENCE>, or <VALUE.REFARRAY> tags. If the |
|
CIMValue is Null, no element is returned. |
|
@return Returns the XML representation of the CIMValue |
|
object in String form. |
|
*/ |
|
String toXml() const; |
|
|
|
/** CIMMethod print - Format and print the Value as XML to std output |
|
stream |
|
@param o Stream to output to. Defaults to cout. |
|
@return None |
|
<PRE> |
|
Example: |
|
CIMValue value(Boolean(true)); |
|
value.print(); // Prints "true" |
|
</PRE> |
|
*/ |
|
void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const; |
|
|
|
/** toMof - Converts a CIMValueObject to Mof. |
|
@out Sint8 Array to hold the Mof representation |
|
@return Returns the Mof representation of the CIMValue |
|
object in the input parameter out. |
|
*/ |
|
void toMof(Array<Sint8>& out) const; |
|
|
|
/** toString - Converts the CIMvalue to a string. Should only be | /** toString - Converts the CIMvalue to a string. Should only be |
used for output purposes. To get an actual String value, use | used for output purposes. To get an actual String value, use |
get(String &). | get(String &). |