version 1.37.18.1, 2008/01/16 13:22:59
|
version 1.38, 2007/10/17 20:50:44
|
|
|
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/Linkage.h> | #include <Pegasus/Common/Linkage.h> |
#include <Pegasus/Common/Constants.h> |
|
#include <Pegasus/Common/CIMName.h> | #include <Pegasus/Common/CIMName.h> |
#include <Pegasus/Common/CIMQualifier.h> | #include <Pegasus/Common/CIMQualifier.h> |
#include <Pegasus/Common/CIMScope.h> | #include <Pegasus/Common/CIMScope.h> |
#include <Pegasus/Common/Array.h> | #include <Pegasus/Common/Array.h> |
#include <Pegasus/Common/Pair.h> | #include <Pegasus/Common/Pair.h> |
#include <Pegasus/Common/Buffer.h> | #include <Pegasus/Common/Buffer.h> |
#include <Pegasus/Common/OrderedSet.h> |
|
| |
| |
/* ATTN: P2 KS 25 Mar 2002 - The function names are a mismash of local and | /* ATTN: P2 KS 25 Mar 2002 - The function names are a mismash of local and |
|
|
| |
class DeclContext; | class DeclContext; |
| |
|
|
/* ATTN: KS P3 DEFER 1 May 2002. | /* ATTN: KS P3 DEFER 1 May 2002. |
We have list processors (really array processors) for | We have list processors (really array processors) for |
qualifiers, properties, methods(???) but they are all slightly different. | qualifiers, properties, methods(???) but they are all slightly different. |
|
|
*/ | */ |
void removeQualifier(Uint32 index); | void removeQualifier(Uint32 index); |
| |
|
/** |
|
Removes all the qualifiers from the list. |
|
*/ |
|
void clear(); |
|
|
/** find - Searches for a qualifier with the specified ` | /** find - Searches for a qualifier with the specified ` |
input name if it exists in the class | input name if it exists in the class |
@param name CIMName of the qualifier | @param name CIMName of the qualifier |
|
|
*/ | */ |
Boolean isTrue(const CIMName& name) const; | Boolean isTrue(const CIMName& name) const; |
| |
/// findReverse - See find |
|
Uint32 findReverse(const CIMName& name) const; |
|
|
|
/** resolve - Resolves the qualifierList based on the information provided. | /** resolve - Resolves the qualifierList based on the information provided. |
The resolved qualifiers are the result of validating and testing the | The resolved qualifiers are the result of validating and testing the |
qualifiers against the inherited qualifiers and qualifier declarations. | qualifiers against the inherited qualifiers and qualifier declarations. |
|
|
/// | /// |
void cloneTo(CIMQualifierList& x) const; | void cloneTo(CIMQualifierList& x) const; |
| |
Boolean isKey() const; |
|
|
|
private: | private: |
| |
typedef OrderedSet<CIMQualifier, |
Array<CIMQualifier> _qualifiers; |
CIMQualifierRep, |
|
PEGASUS_QUALIFIER_ORDEREDSET_HASHSIZE> QualifierSet; |
|
QualifierSet _qualifiers; |
|
|
|
/** Index of key qualifier or the meaning is as follows: |
|
PEGASUS_ORDEREDSET_INDEX_NOTFOUND -- |
|
there is no key qualifier in the list. |
|
PEGASUS_ORDEREDSET_INDEX_UNKNOWN -- |
|
the index is unresolved. |
|
*/ |
|
Uint32 _keyIndex; |
|
|
|
friend class CIMPropertyInternal; |
|
}; | }; |
| |
|
/** |
|
Applies a specified qualifier list to a specified object, using an |
|
addQualifier method which is expected to exist for the object type. |
|
@param qualifierList The CIMQualifierList to apply to the object. |
|
@param object The object to which to apply the qualifierList. |
|
*/ |
|
template <class T> |
|
void applyQualifierList(CIMQualifierList& qualifierList, T& object) |
|
{ |
|
for (Uint32 i = 0; i < qualifierList.getCount(); i++) |
|
{ |
|
object.addQualifier(qualifierList.getQualifier(i)); |
|
} |
|
qualifierList.clear(); |
|
} |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |
#endif /* Pegasus_QualifierList_h */ | #endif /* Pegasus_QualifierList_h */ |