version 1.17, 2006/01/30 16:17:33
|
version 1.18, 2007/06/22 21:34:59
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Bob Blair (bblair@bmc.com) |
|
// |
|
// Modified By: |
|
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
| |
/** Class to create and add to a qualifierList | /** Class to create and add to a qualifierList |
*/ | */ |
class PEGASUS_COMPILER_LINKAGE qualifierList { |
class PEGASUS_COMPILER_LINKAGE qualifierList |
|
{ |
public: | public: |
qplist *_pv; | qplist *_pv; |
unsigned int _initsize; | unsigned int _initsize; |
|
|
template <class T> | template <class T> |
void applyQualifierList(qualifierList* that, T *c) | void applyQualifierList(qualifierList* that, T *c) |
{ | { |
if (that->_pv) { |
if (that->_pv) |
|
{ |
for (Uint32 i = 0; | for (Uint32 i = 0; |
i < that->_pv->size(); // && (*that->_pv)[i] ? | i < that->_pv->size(); // && (*that->_pv)[i] ? |
i++) { |
i++) |
|
{ |
CIMQualifier** qpp = &((*that->_pv)[i]); | CIMQualifier** qpp = &((*that->_pv)[i]); |
c->addQualifier( **qpp ); | c->addQualifier( **qpp ); |
delete *qpp; | delete *qpp; |