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

  1 martin 1.10 //%LICENSE////////////////////////////////////////////////////////////////
  2             // 
  3             // Licensed to The Open Group (TOG) under one or more contributor license
  4             // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5             // this work for additional information regarding copyright ownership.
  6             // Each contributor licenses this file to you under the OpenPegasus Open
  7             // Source License; you may not use this file except in compliance with the
  8             // License.
  9             // 
 10             // Permission is hereby granted, free of charge, to any person obtaining a
 11             // copy of this software and associated documentation files (the "Software"),
 12             // to deal in the Software without restriction, including without limitation
 13             // the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14             // and/or sell copies of the Software, and to permit persons to whom the
 15             // Software is furnished to do so, subject to the following conditions:
 16             // 
 17             // The above copyright notice and this permission notice shall be included
 18             // in all copies or substantial portions of the Software.
 19             // 
 20             // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21             // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
 22 martin 1.10 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23             // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24             // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25             // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26             // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27 karl   1.8  // 
 28 martin 1.10 //////////////////////////////////////////////////////////////////////////
 29 chuck  1.2  //
 30             // Authors: David Rosckes (rosckes@us.ibm.com)
 31             //          Bert Rivero (hurivero@us.ibm.com)
 32             //          Chuck Carmack (carmack@us.ibm.com)
 33             //          Brian Lucier (lucier@us.ibm.com)
 34             //
 35 david.dillard 1.6  // Modified By: David Dillard, VERITAS Software Corp.
 36                    //                  (david.dillard@veritas.com)
 37 vijay.eli     1.7  //              Vijay Eli, IBM (vijayeli@in.ibm.com) bug#3590
 38 chuck         1.2  //
 39                    //%/////////////////////////////////////////////////////////////////////////////
 40                    
 41                    #ifndef Pegasus_CQLExpressionRep_h
 42                    #define Pegasus_CQLExpressionRep_h
 43                    
 44 david.dillard 1.6  #include <Pegasus/CQL/Linkage.h>
 45 chuck         1.2  #include <Pegasus/CQL/CQLValue.h>
 46                    #include <Pegasus/CQL/CQLTerm.h>
 47                    
 48                    PEGASUS_NAMESPACE_BEGIN
 49                    
 50 mike          1.9  class CQLFactory;
 51                    class QueryContext;
 52 chuck         1.2  
 53 mike          1.9  class CQLExpressionRep
 54 chuck         1.2  {
 55                      public:
 56                      CQLExpressionRep(){}
 57                    
 58                      CQLExpressionRep(const CQLTerm& theTerm);
 59                      CQLExpressionRep(const CQLExpressionRep* rep);
 60                    
 61                      ~CQLExpressionRep();
 62 david.dillard 1.6  
 63 chuck         1.2    CQLValue resolveValue(const CIMInstance& CI, const QueryContext& QueryCtx);
 64 david.dillard 1.6  
 65 chuck         1.2    void appendOperation(const TermOpType theTermOpType, const CQLTerm& theTerm);
 66 david.dillard 1.6  
 67 chuck         1.2    String toString()const;
 68 david.dillard 1.6  
 69 chuck         1.2    Boolean isSimple()const;
 70 david.dillard 1.6  
 71 chuck         1.2    Boolean isSimpleValue()const;
 72 david.dillard 1.6  
 73 chuck         1.2    Array<CQLTerm> getTerms()const;
 74 david.dillard 1.6  
 75 chuck         1.2    Array<TermOpType> getOperators()const;
 76 david.dillard 1.6  
 77 vijay.eli     1.7    void applyContext(const QueryContext& inContext,
 78                                const CQLChainedIdentifier& inCid);
 79 david.dillard 1.6  /*
 80 chuck         1.2    Boolean operator==(const CQLExpressionRep& rep)const;
 81 david.dillard 1.6  
 82 chuck         1.2    Boolean operator!=(const CQLExpressionRep& rep)const;
 83 humberto      1.4    */
 84 chuck         1.2    friend class CQLFactory;
 85 david.dillard 1.6  
 86 chuck         1.2   private:
 87 david.dillard 1.6  
 88                      /**  The _TermOperators member variable is an
 89 chuck         1.2         array of operators that are valid to operate on Terms in a CQL
 90 david.dillard 1.6         expression.
 91 chuck         1.3         Valid operators include concatentation, add and subtract.
 92 david.dillard 1.6  
 93 chuck         1.2         The array is ordered according to the operation from left to right.
 94                      */
 95                      Array<TermOpType> _TermOperators;
 96 david.dillard 1.6  
 97                      /**  The _CQLTerms member variable is an
 98                           array of operands that are valid in a CQL expression.
 99                    
100 chuck         1.2         The array is ordered according to the operation from left to right.
101                      */
102                      Array<CQLTerm> _CQLTerms;
103 david.dillard 1.6  
104 chuck         1.2  };
105                    
106                    PEGASUS_NAMESPACE_END
107                    
108                    
109                    #endif /* CQLEXPRESSION_H_HEADER_INCLUDED_BEE5929F */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2