version 1.35, 2006/01/30 16:16:47
|
version 1.36, 2006/11/07 21:30:36
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) |
|
// |
|
// Modified By: Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
|
// David Dillard, VERITAS Software Corp. |
|
// (david.dillard@veritas.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef Pegasus_QualifierList_h | #ifndef Pegasus_QualifierList_h |
|
|
#include <Pegasus/Common/Buffer.h> | #include <Pegasus/Common/Buffer.h> |
| |
| |
/* ATTN: P2 KS 25 Mar 2002 - The function names are a mismash of local and taken |
/* ATTN: P2 KS 25 Mar 2002 - The function names are a mismash of local and |
from the class and instance functions. Thus, we have getCount but getQualifier |
taken from the class and instance functions. Thus, we have getCount but |
This causes confusion with the functions in class and instance which are specifically |
getQualifier. This causes confusion with the functions in class and |
getQualifier. We should clean up so the names here remove the Qualifier portion. |
instance which are specifically getQualifier. We should clean up so the |
|
names here remove the Qualifier portion. |
*/ | */ |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
class DeclContext; | class DeclContext; |
| |
| |
/* ATTN: KS P3 DEFER 1 May 2002. We have list processors (really array processors) for |
/* ATTN: KS P3 DEFER 1 May 2002. |
|
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. |
Should we create a common base?? | Should we create a common base?? |
*/ | */ |
|
|
/// findReverse - See find | /// findReverse - See find |
Uint32 findReverse(const CIMName& name) const; | Uint32 findReverse(const CIMName& name) const; |
| |
/** resolve - Resolves the qualifierList based on the information provided. The resolved |
/** resolve - Resolves the qualifierList based on the information provided. |
qualifiers are the result of validating and testing the qualifiers against the |
The resolved qualifiers are the result of validating and testing the |
inherited qualifiers and qualifier declarations. The qualifier list contains |
qualifiers against the inherited qualifiers and qualifier declarations. |
the set of resolved qualifiers when the function is complete. |
The qualifier list contains the set of resolved qualifiers when the |
|
function is complete. |
|
|
Resolution includes: | Resolution includes: |
1. Determining if the qualifier is declared (obtainable form declContext). |
1. Determining if the qualifier is declared (obtainable form |
|
declContext). |
2. Qualifier is same type as declaration | 2. Qualifier is same type as declaration |
3. Valid for the scope provided (Qualifier scope contains the provided scope). |
3. Valid for the scope provided (Qualifier scope contains the provided |
|
scope). |
4. Whether qualifier can be overridden. | 4. Whether qualifier can be overridden. |
5. Whether it should be propagated to subclass | 5. Whether it should be propagated to subclass |
If a qualifier can be overridden it is put into the qualifiers array. | If a qualifier can be overridden it is put into the qualifiers array. |
@param declContext Declaration context for this resolution (ex repository, simple) |
|
|
@param declContext Declaration context for this resolution (ex |
|
repository, simple) |
@param nameSpace Namespace in which to find the declaration. | @param nameSpace Namespace in which to find the declaration. |
@param scope - Scope of the entity doing the resolution (ex. Class, association, etc.) |
@param scope - Scope of the entity doing the resolution (ex. Class, |
|
association, etc.) |
@param isInstancePart - TBD | @param isInstancePart - TBD |
@param inheritedQualifiers - CimQualifierList defining List of inherited qualifiers |
@param inheritedQualifiers - CimQualifierList defining List of |
@param propagateQualifiers Boolean indicator whether to propagate qualifiers. |
inherited qualifiers |
@return |
@param propagateQualifiers Boolean indicator whether to propagate |
|
qualifiers. |
@exception - There are a number of different | @exception - There are a number of different |
*/ | */ |
void resolve( | void resolve( |