![]() ![]() |
![]() |
File: [Pegasus] / pegasus / src / Pegasus / CQL / CQLSimplePredicate.cpp
(download)
Revision: 1.1.2.7, Fri Sep 17 13:52:11 2004 UTC (19 years, 9 months ago) by humberto Branch: CQL_2_5_BRANCH Changes since 1.1.2.6: +3 -1 lines PEP#: 138 TITLE: cql updates DESCRIPTION: cql updates |
#include "CQLSimplePredicate.h" #include "CQLSimplePredicateRep.h" #include <Pegasus/CQL/CQLExpression.h> #include <Pegasus/CQL/CQLFactory.h> #include <Pegasus/CQL/QueryContext.h> PEGASUS_NAMESPACE_BEGIN CQLSimplePredicate::CQLSimplePredicate(const CQLExpression& inExpression) { _rep = new CQLSimplePredicateRep(inExpression); } CQLSimplePredicate::CQLSimplePredicate(const CQLExpression& inExpression, const ExpressionOpType inOperator) { _rep = new CQLSimplePredicateRep(inExpression,inOperator); } CQLSimplePredicate::CQLSimplePredicate(const CQLExpression& leftSideExpression, const CQLExpression& rightSideExpression, ExpressionOpType inOperator) { _rep = new CQLSimplePredicateRep(leftSideExpression,rightSideExpression,inOperator); } CQLSimplePredicate::CQLSimplePredicate(const CQLSimplePredicate& inSimplePredicate){ _rep = inSimplePredicate._rep; } CQLSimplePredicate::~CQLSimplePredicate(){ if(_rep) delete _rep; } Boolean CQLSimplePredicate::evaluate(CIMInstance CI, QueryContext& QueryCtx) { return _rep->evaluate(CI,QueryCtx); } CQLExpression CQLSimplePredicate::getLeftExpression() { return _rep->getLeftExpression(); } CQLExpression CQLSimplePredicate::getRightExpression() { return _rep->getRightExpression(); } enum ExpressionOpType CQLSimplePredicate::getOperation() { return _rep->getOperation(); } String CQLSimplePredicate::toString() { return _rep->toString(); } Boolean CQLSimplePredicate::isSimple(){ return _rep->isSimple(); } Boolean CQLSimplePredicate::isSimpleValue(){ return _rep->isSimpleValue(); } PEGASUS_NAMESPACE_END
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |