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

 1 martin 1.8 //%LICENSE////////////////////////////////////////////////////////////////
 2 martin 1.9 //
 3 martin 1.8 // 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 martin 1.9 //
10 martin 1.8 // 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 martin 1.9 //
17 martin 1.8 // The above copyright notice and this permission notice shall be included
18            // in all copies or substantial portions of the Software.
19 martin 1.9 //
20 martin 1.8 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 martin 1.9 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 martin 1.8 // 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 martin 1.9 //
28 martin 1.8 //////////////////////////////////////////////////////////////////////////
29 schuur 1.1 //
30            // Author: Adrian Schuur (schuur@de.ibm.com)
31            //
32            // Modified By:
33            //
34            //%/////////////////////////////////////////////////////////////////////////////
35            
36            #ifndef Pegasus_WQLQueryExpressionRep_h
37            #define Pegasus_WQLQueryExpressionRep_h
38            
39            #include <Pegasus/Common/Config.h>
40            #include <Pegasus/Common/String.h>
41            #include <Pegasus/Common/CIMName.h>
42            #include <Pegasus/Common/CIMInstance.h>
43            #include <Pegasus/Common/CIMPropertyList.h>
44            
45            #include <Pegasus/Common/QueryExpressionRep.h>
46            #include "WQLSelectStatement.h"
47            
48            PEGASUS_NAMESPACE_BEGIN
49            
50 schuur 1.1 class WQLSelectStatement;
51            
52 schuur 1.2 class PEGASUS_WQL_LINKAGE WQLQueryExpressionRep : public QueryExpressionRep {
53 schuur 1.1   friend class QueryExpression;
54              public:
55                WQLQueryExpressionRep(const String & queryLanguage)
56                  : QueryExpressionRep(queryLanguage), _stmt(NULL) {}
57                WQLQueryExpressionRep(const String & queryLanguage, WQLSelectStatement *s)
58                  : QueryExpressionRep(queryLanguage), _stmt(s){}
59                WQLQueryExpressionRep(const String & queryLanguage, String & query)
60                  : QueryExpressionRep(queryLanguage,query), _stmt(NULL) {}
61            
62 mike   1.7     PEGASUS_HIDDEN_LINKAGE
63 schuur 1.1     virtual ~WQLQueryExpressionRep();
64            
65 mike   1.7     PEGASUS_HIDDEN_LINKAGE
66 schuur 1.1     virtual const CIMPropertyList getPropertyList() const;
67 mike   1.7 
68                PEGASUS_HIDDEN_LINKAGE
69 schuur 1.1     virtual Boolean evaluate(const CIMInstance &) const;
70 mike   1.7 
71                PEGASUS_HIDDEN_LINKAGE
72 carolann.graves 1.5     virtual void applyProjection(CIMInstance &, Boolean allowMissing);
73 schuur          1.1 
74 mike            1.7     PEGASUS_HIDDEN_LINKAGE
75 schuur          1.1     void _parse();
76 mike            1.7 
77 schuur          1.1     WQLSelectStatement *_stmt;
78                     };
79                     
80                     PEGASUS_NAMESPACE_END
81                     
82                     #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2