1 martin 1.21 //%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.22 //
|
3 martin 1.21 // 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.22 //
|
10 martin 1.21 // 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.22 //
|
17 martin 1.21 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
|
19 martin 1.22 //
|
20 martin 1.21 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.22 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.21 // 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.22 //
|
28 martin 1.21 //////////////////////////////////////////////////////////////////////////
|
29 schuur 1.1 //
30 //%/////////////////////////////////////////////////////////////////////////////
31
32 #ifndef _CMPI_SelectExp_H_
33 #define _CMPI_SelectExp_H_
34
35 #include "CMPI_SelectCond.h"
|
36 konrad.r 1.6 #include "CMPI_Query2Dnf.h"
|
37 schuur 1.1 #include "CMPI_Wql2Dnf.h"
|
38 konrad.r 1.6 #include "CMPI_Cql2Dnf.h"
|
39 schuur 1.1 #include "CMPI_Object.h"
40 #include "CMPI_Ftabs.h"
41
42 #include <Pegasus/Common/OperationContext.h>
|
43 schuur 1.3 #include <Pegasus/WQL/WQLSelectStatement.h>
|
44 konrad.r 1.8 #include <Pegasus/Query/QueryCommon/QueryContext.h>
|
45 konrad.r 1.10
46 #include <Pegasus/ProviderManager2/CMPI/Linkage.h>
|
47 schuur 1.1 PEGASUS_NAMESPACE_BEGIN
48
|
49 konrad.r 1.11 #define CALL_SIGN_WQL "WQL"
50 #define CALL_SIGN_WQL_SIZE 3
|
51 karl 1.20
52 #ifdef PEGASUS_ENABLE_CQL
|
53 a.dunfey 1.16 #define CALL_SIGN_CQL "DMTF:CQL"
54 #define CALL_SIGN_CQL_SIZE 8
|
55 konrad.r 1.14 #endif
|
56 konrad.r 1.11
|
57 kumpf 1.23 struct PEGASUS_CMPIPM_LINKAGE CMPI_SelectExp : CMPISelectExp
|
58 venkat.puvvada 1.18 {
59 CMPI_SelectExp(
60 const OperationContext& ct,
61 QueryContext *context,
62 String cond_,
63 String lang_);
64 CMPI_SelectExp(WQLSelectStatement*, Boolean persistent_ = false);
|
65 karl 1.20 #ifdef PEGASUS_ENABLE_CQL
|
66 venkat.puvvada 1.19 CMPI_SelectExp(CQLSelectStatement*, Boolean persistent_ = false,
67 QueryContext *context = 0);
|
68 konrad.r 1.14 #endif
|
69 venkat.puvvada 1.18 ~CMPI_SelectExp();
70 CMPI_Object *next,*prev;
71 const char **props;
72 Array<CIMObjectPath> classNames;
|
73 r.kieninger 1.23.4.1 Array<SCMOInstance> classNamesSCMO;
|
74 venkat.puvvada 1.18 const OperationContext ctx;
75 SubscriptionFilterConditionContainer* fcc;
76 String cond,lang;
77 CMPI_Wql2Dnf *wql_dnf;
78 CMPI_Cql2Dnf *cql_dnf;
79 CMPI_Tableau *tableau;
80 WQLSelectStatement *wql_stmt;
|
81 karl 1.20
82 #ifdef PEGASUS_ENABLE_CQL
|
83 venkat.puvvada 1.18 CQLSelectStatement *cql_stmt;
|
84 konrad.r 1.14 #endif
|
85 venkat.puvvada 1.18 QueryContext *_context;
86 Boolean persistent;
|
87 schuur 1.1 };
88
89 PEGASUS_NAMESPACE_END
90
91 #endif
|