version 1.40, 2004/10/17 20:39:17
|
version 1.44, 2005/05/13 18:55:38
|
|
|
//%2004//////////////////////////////////////////////////////////////////////// |
//%2005//////////////////////////////////////////////////////////////////////// |
// | // |
// 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, The Open Group. | // IBM Corp.; EMC Corporation, The Open Group. |
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; | // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
// 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.; |
|
// EMC Corporation; VERITAS Software 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 |
|
|
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/CIMType.h> | #include <Pegasus/Common/CIMType.h> |
#include <Pegasus/Common/CIMObjectPath.h> | #include <Pegasus/Common/CIMObjectPath.h> |
|
#include <Pegasus/Common/CIMObject.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> |
|
|
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
class CIMValueRep; | class CIMValueRep; |
|
class CIMObject; |
| |
/** | /** |
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 CIMObjectPath& x); | CIMValue(const CIMObjectPath& x); |
| |
/// Constructor. | /// Constructor. |
|
CIMValue(const CIMObject& x); |
|
|
|
/// Constructor. |
CIMValue(const Array<Boolean>& x); | CIMValue(const Array<Boolean>& x); |
| |
/// Constructor. | /// Constructor. |
|
|
CIMValue(const Array<CIMObjectPath>& x); | CIMValue(const Array<CIMObjectPath>& x); |
| |
/// Constructor. | /// Constructor. |
|
CIMValue(const Array<CIMObject>& x); |
|
|
|
/// Constructor. |
CIMValue(const CIMValue& x); | CIMValue(const CIMValue& x); |
| |
/// Destructor. | /// Destructor. |
|
|
/// | /// |
void set(const CIMObjectPath& x); | void set(const CIMObjectPath& x); |
/// | /// |
|
void set(const CIMObject& x); |
|
/// |
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<CIMDateTime>& x); | void set(const Array<CIMDateTime>& x); |
/// | /// |
void set(const Array<CIMObjectPath>& x); | void set(const Array<CIMObjectPath>& x); |
|
/// |
|
void set(const Array<CIMObject>& x); |
| |
/** 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(CIMObjectPath& x) const; | void get(CIMObjectPath& x) const; |
/// | /// |
|
void get(CIMObject& x) const; |
|
/// |
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<Sint8>& x) const; | void get(Array<Sint8>& x) const; |
/// | /// |
void get(Array<Uint16>& x) const; | void get(Array<Uint16>& x) const; |
|
|
void get(Array<CIMDateTime>& x) const; | void get(Array<CIMDateTime>& x) const; |
/// | /// |
void get(Array<CIMObjectPath>& x) const; | void get(Array<CIMObjectPath>& x) const; |
|
/// |
|
void get(Array<CIMObject>& x) const; |
| |
/** 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. |
|
|
*/ | */ |
String toString() const; | String toString() const; |
| |
|
#ifdef PEGASUS_USE_DEPRECATED_INTERFACES |
|
/** |
|
<I><B>Deprecated Interface</B></I><BR> |
|
Constructor. (Note: This constructor exists solely to support binary |
|
compatibility with a previous definition of the Sint8 type.) |
|
*/ |
|
CIMValue(char x); |
|
|
|
/** |
|
<I><B>Deprecated Interface</B></I><BR> |
|
Constructor. (Note: This constructor exists solely to support binary |
|
compatibility with a previous definition of the Sint8 type.) |
|
*/ |
|
CIMValue(const Array<char>& x); |
|
|
|
/** |
|
<I><B>Deprecated Interface</B></I><BR> |
|
Sets an Sint8 value. (Note: This method exists solely to support |
|
binary compatibility with a previous definition of the Sint8 type.) |
|
*/ |
|
void set(char x); |
|
|
|
/** |
|
<I><B>Deprecated Interface</B></I><BR> |
|
Sets an Sint8 array value. (Note: This method exists solely to support |
|
binary compatibility with a previous definition of the Sint8 type.) |
|
*/ |
|
void set(const Array<char>& x); |
|
|
|
/** |
|
<I><B>Deprecated Interface</B></I><BR> |
|
Gets an Sint8 value. (Note: This method exists solely to support |
|
binary compatibility with a previous definition of the Sint8 type.) |
|
*/ |
|
void get(char& x) const; |
|
|
|
/** |
|
<I><B>Deprecated Interface</B></I><BR> |
|
Gets an Sint8 array value. (Note: This method exists solely to support |
|
binary compatibility with a previous definition of the Sint8 type.) |
|
*/ |
|
void get(Array<char>& x) const; |
|
#endif |
|
|
private: | private: |
| |
CIMValueRep* _rep; | CIMValueRep* _rep; |