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

  1 karl  1.10 //%2006////////////////////////////////////////////////////////////////////////
  2 humberto 1.1  //
  3 karl     1.7  // 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 humberto 1.1  // IBM Corp.; EMC Corporation, The Open Group.
  7 karl     1.7  // 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.10 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12               // EMC Corporation; Symantec Corporation; The Open Group.
 13 humberto 1.1  //
 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.10 // 
 21 humberto 1.1  // 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               // Author: Dave Rosckes (rosckes@us.ibm.com)
 33               //
 34 david.dillard 1.8  // Modified By: David Dillard, VERITAS Software Corp.
 35                    //                  (david.dillard@veritas.com)
 36 vijay.eli     1.9  //              Vijay Eli, IBM (vijayeli@in.ibm.com) bug#3590
 37 humberto      1.1  //
 38                    //%/////////////////////////////////////////////////////////////////////////////
 39                    
 40 chuck         1.4  #ifndef Pegasus_CQLFactorRep_h
 41                    #define Pegasus_CQLFactorRep_h
 42                    
 43 humberto      1.1  #include <Pegasus/CQL/Linkage.h>
 44                    #include <Pegasus/Common/CIMInstance.h>
 45                    #include <Pegasus/CQL/CQLExpression.h>
 46                    #include <Pegasus/CQL/CQLFunction.h>
 47                    
 48                    PEGASUS_NAMESPACE_BEGIN
 49 mike          1.11 class CQLFactory;
 50                    class CQLValue;
 51                    class QueryContext;
 52 humberto      1.1  
 53 mike          1.11 class CQLFactorRep
 54 humberto      1.1  {
 55 chuck         1.4   public:
 56 humberto      1.1  
 57 humberto      1.6    CQLFactorRep();
 58 david.dillard 1.8  
 59 chuck         1.4    CQLFactorRep(const CQLValue& inCQLVal);
 60 david.dillard 1.8  
 61 chuck         1.4    CQLFactorRep(const CQLExpression& inCQLExp);
 62 david.dillard 1.8  
 63 chuck         1.4    CQLFactorRep(const CQLFunction& inCQLFunc);
 64                    
 65                      CQLFactorRep(const CQLFactorRep* rep);
 66 david.dillard 1.8  
 67 chuck         1.4    ~CQLFactorRep(){}
 68 david.dillard 1.8  
 69 chuck         1.4    CQLValue resolveValue(const CIMInstance& CI, const QueryContext& QueryCtx);
 70 david.dillard 1.8  
 71 chuck         1.4    Boolean isSimple()const;
 72 david.dillard 1.8  
 73 chuck         1.4    Boolean isSimpleValue()const;
 74 david.dillard 1.8  
 75 chuck         1.4    CQLValue getValue()const;
 76 david.dillard 1.8  
 77 chuck         1.4    CQLFunction getCQLFunction()const;
 78 david.dillard 1.8  
 79 chuck         1.4    CQLExpression getCQLExpression()const;
 80 david.dillard 1.8  
 81 chuck         1.4    String toString()const;
 82 david.dillard 1.8  
 83 vijay.eli     1.9    void applyContext(const QueryContext& inContext,
 84                                const CQLChainedIdentifier& inCid);
 85 david.dillard 1.8  /*
 86 chuck         1.4    Boolean operator==(const CQLFactorRep& rep)const;
 87 david.dillard 1.8  
 88 chuck         1.4    Boolean operator!=(const CQLFactorRep& rep)const;
 89 humberto      1.5    */
 90 chuck         1.4    friend class CQLFactory;
 91 david.dillard 1.8  
 92 chuck         1.4   private:
 93 david.dillard 1.8  
 94 chuck         1.4    enum ContainedObjectType {EXPRESSION, FUNCTION, VALUE};
 95 david.dillard 1.8  
 96 chuck         1.4    CQLExpression _CQLExp;
 97 david.dillard 1.8  
 98 chuck         1.4    CQLValue _CQLVal;
 99 david.dillard 1.8  
100 chuck         1.4    CQLFunction _CQLFunct;
101 david.dillard 1.8  
102 chuck         1.4    Boolean _invert;
103 david.dillard 1.8  
104 chuck         1.4    Boolean _simpleValue;
105 david.dillard 1.8  
106 chuck         1.4    ContainedObjectType _containedType;
107                    };
108 humberto      1.1  
109                    PEGASUS_NAMESPACE_END
110                    
111 chuck         1.4  #endif /* CQLFACTORREP_H_HEADER */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2