version 1.1, 2004/08/24 18:35:41
|
version 1.1.2.5, 2004/09/08 03:52:03
|
|
|
|
#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(); |
|
} |
|
|
|
PEGASUS_NAMESPACE_END |