1 humberto 1.1.2.1 #include "CQLPredicate.h"
|
2 humberto 1.1.2.8 #include "CQLPredicateRep.h"
|
3 humberto 1.1.2.7 #include <Pegasus/CQL/CQLFactory.h>
|
4 humberto 1.1.2.8 #include <Pegasus/CQL/QueryContext.h>
|
5 humberto 1.1.2.1
6 PEGASUS_NAMESPACE_BEGIN
7
8 #define PEGASUS_ARRAY_T CQLPredicate
9 #include <Pegasus/Common/ArrayImpl.h>
10 #undef PEGASUS_ARRAY_T
11
|
12 humberto 1.1.2.5 #define PEGASUS_ARRAY_T BooleanOpType
13 #include <Pegasus/Common/ArrayImpl.h>
14 #undef PEGASUS_ARRAY_T
15
16
|
17 humberto 1.1.2.4 CQLPredicate::CQLPredicate(const CQLSimplePredicate& inSimplePredicate, Boolean inVerted)
|
18 humberto 1.1.2.1 {
|
19 humberto 1.1.2.8 _rep = new CQLPredicateRep(inSimplePredicate,inVerted);
|
20 humberto 1.1.2.1 }
21
|
22 humberto 1.1.2.4 CQLPredicate::CQLPredicate(const CQLPredicate& inPredicate, Boolean inInverted)
|
23 humberto 1.1.2.1 {
|
24 humberto 1.1.2.8 _rep = new CQLPredicateRep(inPredicate,inInverted);
25 }
26
27 CQLPredicate::~CQLPredicate(){
28 if(_rep)
29 delete _rep;
|
30 humberto 1.1.2.1 }
31
32 Boolean CQLPredicate::evaluate(CIMInstance CI, QueryContext& QueryCtx)
33 {
|
34 humberto 1.1.2.8 return _rep->evaluate(CI,QueryCtx);
|
35 humberto 1.1.2.1 }
36
|
37 humberto 1.1.2.2 Boolean CQLPredicate::isTerminal(){
|
38 humberto 1.1.2.8 return _rep->isTerminal();
|
39 humberto 1.1.2.2 }
40 Boolean CQLPredicate::getInverted(){
|
41 humberto 1.1.2.8 return _rep->getInverted();
|
42 humberto 1.1.2.2 }
43
|
44 humberto 1.1.2.5 void CQLPredicate::setInverted(){
|
45 humberto 1.1.2.8 _rep->setInverted();
|
46 humberto 1.1.2.2 }
47
|
48 humberto 1.1.2.1 void CQLPredicate::appendPredicate(CQLPredicate inPredicate, BooleanOpType inBooleanOperator)
49 {
|
50 humberto 1.1.2.8 _rep->appendPredicate(inPredicate,inBooleanOperator);
|
51 humberto 1.1.2.1 }
52
|
53 humberto 1.1.2.2 void CQLPredicate::appendPredicate(CQLSimplePredicate inSimplePredicate, BooleanOpType inBooleanOperator){
|
54 humberto 1.1.2.8 _rep->appendPredicate(inSimplePredicate,inBooleanOperator);
|
55 humberto 1.1.2.2 }
56
57 Array<CQLPredicate> CQLPredicate::getPredicates(){
|
58 humberto 1.1.2.8 return _rep->getPredicates();
|
59 humberto 1.1.2.2 }
60
61 CQLSimplePredicate CQLPredicate::getSimplePredicate(){
|
62 humberto 1.1.2.8 return _rep->getSimplePredicate();
|
63 humberto 1.1.2.2 }
64
|
65 humberto 1.1.2.5 Array<BooleanOpType> CQLPredicate::getOperators(){
|
66 humberto 1.1.2.8 return _rep->getOperators();
|
67 humberto 1.1.2.3 }
|
68 humberto 1.1.2.2 Array<CQLScope> CQLPredicate::getScopes(){
69
70 }
71 void CQLPredicate::applyScopes(Array<CQLScope> & inScopes){
72 }
73
74
|
75 humberto 1.1.2.5 Boolean CQLPredicate::isSimple(){
|
76 humberto 1.1.2.8 return _rep->isSimple();
|
77 humberto 1.1.2.2 }
78
|
79 humberto 1.1.2.9 Boolean CQLPredicate::isSimpleValue(){
80 return _rep->isSimpleValue();
81 }
82
83
|
84 humberto 1.1.2.2 String CQLPredicate::toString(){
|
85 humberto 1.1.2.8 return _rep->toString();
|
86 humberto 1.1.2.2 }
|
87 humberto 1.1.2.6
|
88 humberto 1.1.2.1 PEGASUS_NAMESPACE_END
|