![]() ![]() |
![]() |
1 humberto 1.1.2.1 #include "CQLFactor.h" 2 #include <Pegasus/CQL/CQLExpression.h> 3 #include <Pegasus/CQL/CQLFunction.h> | ||
4 humberto 1.1.2.6 #include <Pegasus/CQL/CQLFactory.h> | ||
5 humberto 1.1.2.7 #include <Pegasus/CQL/CQLFactorRep.h> 6 #include <Pegasus/CQL/QueryContext.h> 7 | ||
8 humberto 1.1.2.1 PEGASUS_NAMESPACE_BEGIN 9 10 #define PEGASUS_ARRAY_T CQLFactor 11 #include <Pegasus/Common/ArrayImpl.h> 12 #undef PEGASUS_ARRAY_T 13 | ||
14 humberto 1.1.2.10 CQLFactor::CQLFactor(){ 15 _rep = new CQLFactorRep(); 16 } 17 | ||
18 david 1.1.2.2 CQLFactor::CQLFactor(const CQLFactor& inCQLFact) 19 { | ||
20 humberto 1.1.2.10 _rep = new CQLFactorRep(inCQLFact._rep); | ||
21 david 1.1.2.2 } 22 | ||
23 humberto 1.1.2.11 CQLFactor::CQLFactor(const CQLValue& inCQLVal) | ||
24 humberto 1.1.2.1 { | ||
25 humberto 1.1.2.7 _rep = new CQLFactorRep(inCQLVal); | ||
26 humberto 1.1.2.1 } 27 28 CQLFactor::CQLFactor(CQLExpression& inCQLExp) 29 { | ||
30 humberto 1.1.2.7 _rep = new CQLFactorRep(inCQLExp); | ||
31 humberto 1.1.2.1 } 32 | ||
33 humberto 1.1.2.7 CQLFactor::CQLFactor(CQLFunction& inCQLFunc) | ||
34 humberto 1.1.2.1 { | ||
35 humberto 1.1.2.7 _rep = new CQLFactorRep(inCQLFunc); | ||
36 humberto 1.1.2.1 } 37 | ||
38 humberto 1.1.2.8 CQLFactor::~CQLFactor(){ 39 if(_rep){ 40 delete _rep; 41 } 42 } 43 | ||
44 david 1.1.2.4 CQLValue CQLFactor::getValue() | ||
45 humberto 1.1.2.1 { | ||
46 humberto 1.1.2.7 return _rep->getValue(); | ||
47 david 1.1.2.2 } 48 49 CQLValue CQLFactor::resolveValue(CIMInstance CI, QueryContext& QueryCtx) 50 { | ||
51 humberto 1.1.2.7 return _rep->resolveValue(CI, QueryCtx); | ||
52 david 1.1.2.2 } | ||
53 humberto 1.1.2.9 Boolean CQLFactor::isSimple() 54 { 55 return _rep->isSimple(); 56 } | ||
57 david 1.1.2.2 Boolean CQLFactor::isSimpleValue() 58 { | ||
59 humberto 1.1.2.7 return _rep->isSimpleValue(); | ||
60 david 1.1.2.2 } 61 62 CQLFunction CQLFactor::getCQLFunction() 63 { | ||
64 humberto 1.1.2.7 return _rep->getCQLFunction(); | ||
65 david 1.1.2.2 } 66 67 CQLExpression CQLFactor::getCQLExpression() 68 { | ||
69 humberto 1.1.2.7 return _rep->getCQLExpression(); | ||
70 humberto 1.1.2.1 } 71 | ||
72 david 1.1.2.2 String CQLFactor::toString() 73 { | ||
74 humberto 1.1.2.7 return _rep->toString(); | ||
75 david 1.1.2.2 } 76 | ||
77 chuck 1.1.2.12 void CQLFactor::applyContext(QueryContext& inContext) | ||
78 david 1.1.2.2 { | ||
79 chuck 1.1.2.12 _rep->applyContext(inContext); | ||
80 david 1.1.2.2 } 81 | ||
82 humberto 1.1.2.10 CQLFactor& CQLFactor::operator=(const CQLFactor& rhs){ 83 if(&rhs != this){ 84 if(_rep) delete _rep; 85 _rep = new CQLFactorRep(rhs._rep); 86 } 87 88 return *this; 89 } 90 | ||
91 humberto 1.1.2.7 Boolean CQLFactor::operator==(const CQLFactor& factor){ 92 return (_rep == factor._rep); 93 } 94 Boolean CQLFactor::operator!=(const CQLFactor& factor){ 95 return (!operator==(factor)); 96 } | ||
97 david 1.1.2.2 | ||
98 humberto 1.1.2.1 PEGASUS_NAMESPACE_END |
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |