version 1.37, 2004/05/31 10:47:41
|
version 1.41, 2004/11/29 18:48:20
|
|
|
//%2003//////////////////////////////////////////////////////////////////////// |
//%2004//////////////////////////////////////////////////////////////////////// |
// | // |
// 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. |
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; | // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; |
// 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.; |
|
// 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 |
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) |
|
// |
|
// Modified By: Karl schopmeyer (k.schopmeyer@opengroup.org) |
|
// Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
|
// Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef Pegasus_Value_h | #ifndef Pegasus_Value_h |
|
|
#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<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. |
|
|
friend class CIMPropertyRep; | friend class CIMPropertyRep; |
friend class CIMQualifierRep; | friend class CIMQualifierRep; |
friend class CIMQualifierDeclRep; | friend class CIMQualifierDeclRep; |
|
friend class BinaryStreamer; |
}; | }; |
| |
/** operator == compares two CIMValue objects for equality. | /** operator == compares two CIMValue objects for equality. |