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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2