version 1.11, 2002/02/05 10:23:09
|
version 1.13, 2002/03/12 19:41:19
|
|
|
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: | // Modified By: |
|
// Ramnath Ravindran (Ramnath.Ravindran@compaq.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
REFERENCE | REFERENCE |
}; | }; |
| |
|
/// Constructor |
CIMType() : _tag(NONE) { } | CIMType() : _tag(NONE) { } |
| |
|
/// Constructor |
CIMType(Tag tag) : _tag(tag) { } | CIMType(Tag tag) : _tag(tag) { } |
| |
|
/// Constructor |
PEGASUS_EXPLICIT CIMType(Uint32 tag) : _tag(Tag(tag)) { } | PEGASUS_EXPLICIT CIMType(Uint32 tag) : _tag(Tag(tag)) { } |
| |
|
/// Constructor |
CIMType(const CIMType& x) : _tag(x._tag) { } | CIMType(const CIMType& x) : _tag(x._tag) { } |
| |
|
/// operator = |
CIMType& operator=(Tag tag) { _tag = tag; return *this; } | CIMType& operator=(Tag tag) { _tag = tag; return *this; } |
| |
|
/// |
operator Tag() const { return _tag; } | operator Tag() const { return _tag; } |
| |
|
/// |
Boolean equal(const CIMType& x) const { return x._tag == _tag; } | Boolean equal(const CIMType& x) const { return x._tag == _tag; } |
| |
private: | private: |
|
|
| |
inline Boolean operator==(CIMType::Tag x, CIMType::Tag y) | inline Boolean operator==(CIMType::Tag x, CIMType::Tag y) |
{ | { |
|
//not supported on Tru64 |
return x == y; | return x == y; |
|
|
|
#ifdef PEGASUS_PLATFORM_TRU64_ALPHA_DECCXX |
|
return operator==(x, y); |
|
#endif |
} | } |
| |
// Returns a string representation of the given type. The string | // Returns a string representation of the given type. The string |