(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.7 CQLTerm::CQLTerm(){
17                  	_rep = new CQLTermRep();
18 humberto 1.1.2.5 }
19                  
20                  CQLTerm::CQLTerm(const CQLTerm& inTerm){
21 humberto 1.1.2.7 	_rep = new CQLTermRep(inTerm._rep);
22 humberto 1.1.2.5 }
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 humberto 1.1.2.6 Boolean CQLTerm::isSimple()
50                  {
51                     return _rep->isSimple();
52                  }
53                  
54 david    1.1.2.2 Boolean CQLTerm::isSimpleValue()
55                  {
56 humberto 1.1.2.5    return _rep->isSimpleValue();
57 david    1.1.2.2 }
58                  
59 david    1.1.2.3 Array<CQLFactor> CQLTerm::getFactors()
60 david    1.1.2.2 {
61 humberto 1.1.2.5    return _rep->getFactors();
62 david    1.1.2.2 }
63                  
64                  Array<FactorOpType> CQLTerm::getOperators()
65                  {
66 humberto 1.1.2.5    return _rep->getOperators();
67 david    1.1.2.2 }
68                  
69 chuck    1.1.2.8 void CQLTerm::applyContext(QueryContext& inContext)
70 david    1.1.2.2 {
71 chuck    1.1.2.8   _rep->applyContext(inContext);
72 david    1.1.2.2 }
73                  
74 humberto 1.1.2.7 CQLTerm& CQLTerm::operator=(const CQLTerm& rhs){
75                  	if(&rhs != this){
76                  		if(_rep) delete _rep;
77                  		_rep = new CQLTermRep(rhs._rep);
78                  	}
79                  	return *this;
80                  
81                  }
82                  
83 humberto 1.1.2.1 PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2