version 1.48, 2005/11/07 23:12:52
|
version 1.51, 2006/11/07 21:30:36
|
|
|
//%2005//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development | // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. | // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; | // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
// EMC Corporation; VERITAS Software Corporation; The Open Group. | // EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
| |
class CIMValueRep; | class CIMValueRep; |
class CIMObject; | class CIMObject; |
|
#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
class CIMInstance; |
|
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
#endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES |
| |
/** | /** |
The CIMValue class represents a value of any of the CIM data types | The CIMValue class represents a value of any of the CIM data types |
|
|
CIMValue(const CIMObject& x); | CIMValue(const CIMObject& x); |
| |
/// Constructor. | /// Constructor. |
|
#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
CIMValue(const CIMInstance& x); |
|
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
#endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
|
|
/// Constructor. |
CIMValue(const Array<Boolean>& x); | CIMValue(const Array<Boolean>& x); |
| |
/// Constructor. | /// Constructor. |
|
|
*/ | */ |
CIMValue(const Array<CIMObject>& x); | CIMValue(const Array<CIMObject>& x); |
| |
|
/// Constructor. |
|
#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
CIMValue(const Array<CIMInstance>& x); |
|
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
#endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
|
/** Constructor. | /** Constructor. |
Note: If the input type is CIMObject, it/they will be cloned before | Note: If the input type is CIMObject, it/they will be cloned before |
putting it into the value of the constructed CIMValue. This is because | putting it into the value of the constructed CIMValue. This is because |
|
|
x.set(Uint16(9)); | x.set(Uint16(9)); |
</pre> | </pre> |
@exception UninitializedObjectException If the given type is CIMObject, | @exception UninitializedObjectException If the given type is CIMObject, |
and the input CIMObject parameter is uninitialized or at least one entry |
and the input CIMObject parameter is uninitialized or at least one |
in the Array of CIMObjects is uninitialized. |
entry in the Array of CIMObjects is uninitialized. |
Note: If the input type is CIMObject, it/they will be cloned before | Note: If the input type is CIMObject, it/they will be cloned before |
putting it into the value of the target CIMValue. This is because | putting it into the value of the target CIMValue. This is because |
CIMObjects use a shared representation model, but we don't want | CIMObjects use a shared representation model, but we don't want |
|
|
/// | /// |
void set(const CIMObject& x); | void set(const CIMObject& x); |
/// | /// |
|
#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
void set(const CIMInstance& x); |
|
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
#endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
/// |
void set(const Array<Boolean>& x); | void set(const Array<Boolean>& x); |
/// | /// |
void set(const Array<Uint8>& x); | void set(const Array<Uint8>& x); |
|
|
void set(const Array<CIMObjectPath>& x); | void set(const Array<CIMObjectPath>& x); |
/// | /// |
void set(const Array<CIMObject>& x); | void set(const Array<CIMObject>& x); |
|
/// |
|
#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
void set(const Array<CIMInstance>& x); |
|
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
#endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES |
| |
/** Gets the value of a CIMValue. | /** Gets the value of a CIMValue. |
Note: Before using get, the caller should use getType () and isNull () | Note: Before using get, the caller should use getType () and isNull () |
|
|
/// | /// |
void get(CIMObject& x) const; | void get(CIMObject& x) const; |
/// | /// |
|
#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
void get(CIMInstance& x) const; |
|
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
#endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
/// |
void get(Array<Boolean>& x) const; | void get(Array<Boolean>& x) const; |
/// | /// |
void get(Array<Uint8>& x) const; | void get(Array<Uint8>& x) const; |
|
|
void get(Array<CIMObjectPath>& x) const; | void get(Array<CIMObjectPath>& x) const; |
/// | /// |
void get(Array<CIMObject>& x) const; | void get(Array<CIMObject>& x) const; |
|
/// |
|
#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
void get(Array<CIMInstance>& x) const; |
|
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
#endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES |
| |
/** Compares with another CIMValue object for equality. | /** Compares with another CIMValue object for equality. |
@param x - CIMValue to compare with. | @param x - CIMValue to compare with. |