(file) Return to CQLTerm.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / CQL

 1 david 1.1.2.3 #include <Pegasus/CQL/CQLTerm.h>
 2 humberto 1.1.2.5 #include <Pegasus/CQL/CQLTermRep.h>
 3 humberto 1.1.2.4 #include <Pegasus/CQL/CQLFactory.h>
 4 humberto 1.1.2.5 #include <Pegasus/CQL/QueryContext.h>
 5 humberto 1.1.2.1 PEGASUS_NAMESPACE_BEGIN
 6 david    1.1.2.3 
 7                  #define PEGASUS_ARRAY_T FactorOpType
 8                  #include <Pegasus/Common/ArrayImpl.h>
 9                  #undef PEGASUS_ARRAY_T
10                  
11 humberto 1.1.2.1 #define PEGASUS_ARRAY_T CQLTerm
12                  #include <Pegasus/Common/ArrayImpl.h>
13                  #undef PEGASUS_ARRAY_T
14                  
15 david    1.1.2.3 
16 humberto 1.1.2.5 CQLTerm::CQLTerm():_rep(0){
17                  
18                  }
19                  
20                  CQLTerm::CQLTerm(const CQLTerm& inTerm){
21                  	_rep = inTerm._rep;
22                  }
23 david    1.1.2.3 
24 humberto 1.1.2.1 CQLTerm::CQLTerm(CQLFactor theFactor)
25                  {
26 humberto 1.1.2.5 	_rep = new CQLTermRep(theFactor);
27                  }
28                  
29                  CQLTerm::~CQLTerm(){
30                          if(_rep)
31                                  delete _rep;
32 humberto 1.1.2.1 }
33                  
34 david    1.1.2.2 CQLValue CQLTerm::resolveValue(CIMInstance CI, QueryContext& QueryCtx)
35 humberto 1.1.2.1 {
36 humberto 1.1.2.5 	return _rep->resolveValue(CI,QueryCtx);
37 humberto 1.1.2.1 }
38                  
39                  void CQLTerm::appendOperation(FactorOpType inFactorOpType, CQLFactor inFactor)
40                  {
41 humberto 1.1.2.5 	_rep->appendOperation(inFactorOpType,inFactor);
42 humberto 1.1.2.1 }
43                  
44 david    1.1.2.2 String CQLTerm::toString()
45                  {
46 humberto 1.1.2.5    return _rep->toString();
47 david    1.1.2.2 }
48                  
49                  Boolean CQLTerm::isSimpleValue()
50                  {
51 humberto 1.1.2.5    return _rep->isSimpleValue();
52 david    1.1.2.2 }
53                  
54 david    1.1.2.3 Array<CQLFactor> CQLTerm::getFactors()
55 david    1.1.2.2 {
56 humberto 1.1.2.5    return _rep->getFactors();
57 david    1.1.2.2 }
58                  
59                  Array<FactorOpType> CQLTerm::getOperators()
60                  {
61 humberto 1.1.2.5    return _rep->getOperators();
62 david    1.1.2.2 }
63                  
64                  void CQLTerm::applyScopes(Array<CQLScope> inScope)
65                  {
66 humberto 1.1.2.5 	_rep->applyScopes(inScope);
67 david    1.1.2.2 }
68                  
69 humberto 1.1.2.1 PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2