version 1.16, 2002/05/15 23:14:20
|
version 1.20, 2002/06/01 00:56:28
|
|
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
|
// The Open Group, Tivoli Systems |
// | // |
// 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 |
|
|
/// Constructor | /// Constructor |
CIMType(Tag tag); | CIMType(Tag tag); |
| |
#if 0 // ATTN-RK-P3-20020514: Why encourage/allow this? |
|
/// Constructor |
|
PEGASUS_EXPLICIT CIMType(Uint32 tag); |
|
#endif |
|
|
|
/// Constructor | /// Constructor |
CIMType(const CIMType& x); | CIMType(const CIMType& x); |
| |
|
|
Tag _tag; | Tag _tag; |
}; | }; |
| |
#if 0 // ATTN-RK-P3-20020514: These shouldn't be necessary because the |
PEGASUS_COMMON_LINKAGE Boolean operator==(CIMType x, CIMType y); |
// compiler can convert CIMType to CIMType::Tag automatically |
PEGASUS_COMMON_LINKAGE Boolean operator!=(CIMType x, CIMType y); |
inline Boolean operator==(CIMType x, CIMType y) |
|
{ |
|
return CIMType::Tag(x) == CIMType::Tag(y); |
|
} |
|
| |
inline Boolean operator!=(CIMType x, CIMType y) |
PEGASUS_COMMON_LINKAGE Boolean operator==(CIMType x, CIMType::Tag y); |
{ |
PEGASUS_COMMON_LINKAGE Boolean operator==(CIMType::Tag x, CIMType y); |
return !operator==(x, y); |
PEGASUS_COMMON_LINKAGE Boolean operator!=(CIMType x, CIMType::Tag y); |
} |
PEGASUS_COMMON_LINKAGE Boolean operator!=(CIMType::Tag x, CIMType y); |
#endif |
|
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |