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

 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 david    1.1.2.2 CQLFactor::CQLFactor(const CQLFactor& inCQLFact)
15                  {
16 humberto 1.1.2.7 	_rep = inCQLFact._rep;
17 david    1.1.2.2 }
18                  
19 humberto 1.1.2.7 CQLFactor::CQLFactor(CQLValue& inCQLVal)
20 humberto 1.1.2.1 {
21 humberto 1.1.2.7 	_rep = new CQLFactorRep(inCQLVal);
22 humberto 1.1.2.1 }
23                  
24                  CQLFactor::CQLFactor(CQLExpression& inCQLExp)
25                  {
26 humberto 1.1.2.7 	_rep = new CQLFactorRep(inCQLExp);
27 humberto 1.1.2.1 }
28                  
29 humberto 1.1.2.7 CQLFactor::CQLFactor(CQLFunction& inCQLFunc)
30 humberto 1.1.2.1 {
31 humberto 1.1.2.7 	_rep = new CQLFactorRep(inCQLFunc);
32 humberto 1.1.2.1 }
33                  
34 humberto 1.1.2.8 CQLFactor::~CQLFactor(){
35                  	if(_rep){
36                  		delete _rep;
37                  	}
38                  }
39                  
40 david    1.1.2.4 CQLValue CQLFactor::getValue()
41 humberto 1.1.2.1 {
42 humberto 1.1.2.7    	return _rep->getValue();
43 david    1.1.2.2 }
44                  
45                  CQLValue CQLFactor::resolveValue(CIMInstance CI, QueryContext& QueryCtx)
46                  {
47 humberto 1.1.2.7 	return _rep->resolveValue(CI, QueryCtx);
48 david    1.1.2.2 }
49 humberto 1.1.2.9 Boolean CQLFactor::isSimple()
50                  {
51                          return _rep->isSimple();
52                  }
53 david    1.1.2.2 Boolean CQLFactor::isSimpleValue()
54                  {
55 humberto 1.1.2.7 	return _rep->isSimpleValue();
56 david    1.1.2.2 }
57                  
58                  CQLFunction CQLFactor::getCQLFunction()
59                  {
60 humberto 1.1.2.7    return _rep->getCQLFunction();
61 david    1.1.2.2 }
62                  
63                  CQLExpression CQLFactor::getCQLExpression()
64                  {
65 humberto 1.1.2.7    return _rep->getCQLExpression();
66 humberto 1.1.2.1 }
67                  
68 david    1.1.2.2 String CQLFactor::toString()
69                  {
70 humberto 1.1.2.7 	return _rep->toString();
71 david    1.1.2.2 }
72                  
73                  void CQLFactor::applyScopes(Array<CQLScope> inScopes)
74                  {
75 humberto 1.1.2.7 	_rep->applyScopes(inScopes);   
76 david    1.1.2.2 }
77                  
78 humberto 1.1.2.7 Boolean CQLFactor::operator==(const CQLFactor& factor){
79                  	return (_rep == factor._rep);
80                  }
81                  Boolean CQLFactor::operator!=(const CQLFactor& factor){
82                  	return (!operator==(factor));                                                                                
83                  }
84 david    1.1.2.2 
85 humberto 1.1.2.1 PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2