Return to CQLTerm.cpp CVS log | Up to [Pegasus] / pegasus / src / Pegasus / CQL |
File: [Pegasus] / pegasus / src / Pegasus / CQL / CQLTerm.cpp
(download)
Revision: 1.1.2.8, Mon Sep 27 12:25:20 2004 UTC (19 years, 9 months ago) by chuck Branch: CQL_2_5_BRANCH Changes since 1.1.2.7: +2 -2 lines PEP#: 193 TITLE: CQL stage1 implementation DESCRIPTION: applyContext API |
#include <Pegasus/CQL/CQLTerm.h> #include <Pegasus/CQL/CQLTermRep.h> #include <Pegasus/CQL/CQLFactory.h> #include <Pegasus/CQL/QueryContext.h> PEGASUS_NAMESPACE_BEGIN #define PEGASUS_ARRAY_T FactorOpType #include <Pegasus/Common/ArrayImpl.h> #undef PEGASUS_ARRAY_T #define PEGASUS_ARRAY_T CQLTerm #include <Pegasus/Common/ArrayImpl.h> #undef PEGASUS_ARRAY_T CQLTerm::CQLTerm(){ _rep = new CQLTermRep(); } CQLTerm::CQLTerm(const CQLTerm& inTerm){ _rep = new CQLTermRep(inTerm._rep); } CQLTerm::CQLTerm(CQLFactor theFactor) { _rep = new CQLTermRep(theFactor); } CQLTerm::~CQLTerm(){ if(_rep) delete _rep; } CQLValue CQLTerm::resolveValue(CIMInstance CI, QueryContext& QueryCtx) { return _rep->resolveValue(CI,QueryCtx); } void CQLTerm::appendOperation(FactorOpType inFactorOpType, CQLFactor inFactor) { _rep->appendOperation(inFactorOpType,inFactor); } String CQLTerm::toString() { return _rep->toString(); } Boolean CQLTerm::isSimple() { return _rep->isSimple(); } Boolean CQLTerm::isSimpleValue() { return _rep->isSimpleValue(); } Array<CQLFactor> CQLTerm::getFactors() { return _rep->getFactors(); } Array<FactorOpType> CQLTerm::getOperators() { return _rep->getOperators(); } void CQLTerm::applyContext(QueryContext& inContext) { _rep->applyContext(inContext); } CQLTerm& CQLTerm::operator=(const CQLTerm& rhs){ if(&rhs != this){ if(_rep) delete _rep; _rep = new CQLTermRep(rhs._rep); } return *this; } PEGASUS_NAMESPACE_END
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |