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

Diff for /pegasus/src/Pegasus/CQL/CQLTerm.cpp between version 1.1 and 1.1.2.5

version 1.1, 2004/08/20 18:22:36 version 1.1.2.5, 2004/09/07 18:28:04
Line 0 
Line 1 
   #include <Pegasus/CQL/CQLTerm.h>
   #include <Pegasus/CQL/CQLTermRep.h>
   #include <Pegasus/CQL/CQLFactory.h>
   #include <Pegasus/CQL/QueryContext.h>
   PEGASUS_NAMESPACE_BEGIN
   
   #define PEGASUS_ARRAY_T FactorOpType
   #include <Pegasus/Common/ArrayImpl.h>
   #undef PEGASUS_ARRAY_T
   
   #define PEGASUS_ARRAY_T CQLTerm
   #include <Pegasus/Common/ArrayImpl.h>
   #undef PEGASUS_ARRAY_T
   
   
   CQLTerm::CQLTerm():_rep(0){
   
   }
   
   CQLTerm::CQLTerm(const CQLTerm& inTerm){
           _rep = inTerm._rep;
   }
   
   CQLTerm::CQLTerm(CQLFactor theFactor)
   {
           _rep = new CQLTermRep(theFactor);
   }
   
   CQLTerm::~CQLTerm(){
           if(_rep)
                   delete _rep;
   }
   
   CQLValue CQLTerm::resolveValue(CIMInstance CI, QueryContext& QueryCtx)
   {
           return _rep->resolveValue(CI,QueryCtx);
   }
   
   void CQLTerm::appendOperation(FactorOpType inFactorOpType, CQLFactor inFactor)
   {
           _rep->appendOperation(inFactorOpType,inFactor);
   }
   
   String CQLTerm::toString()
   {
      return _rep->toString();
   }
   
   Boolean CQLTerm::isSimpleValue()
   {
      return _rep->isSimpleValue();
   }
   
   Array<CQLFactor> CQLTerm::getFactors()
   {
      return _rep->getFactors();
   }
   
   Array<FactorOpType> CQLTerm::getOperators()
   {
      return _rep->getOperators();
   }
   
   void CQLTerm::applyScopes(Array<CQLScope> inScope)
   {
           _rep->applyScopes(inScope);
   }
   
   PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2