CIMInstanceProvider.h
1 //%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 // 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 //
29 //
30 //%/////////////////////////////////////////////////////////////////////////////
31 
32 #ifndef Pegasus_CIMInstanceProvider_h
33 #define Pegasus_CIMInstanceProvider_h
34 
35 #include <Pegasus/Common/Config.h>
36 #include <Pegasus/Provider/CIMProvider.h>
37 
38 #include <Pegasus/Common/Array.h>
39 #include <Pegasus/Common/CIMPropertyList.h>
40 #include <Pegasus/Common/CIMObjectPath.h>
41 #include <Pegasus/Common/CIMInstance.h>
42 #include <Pegasus/Provider/Linkage.h>
43 
44 PEGASUS_NAMESPACE_BEGIN
45 
61 class PEGASUS_PROVIDER_LINKAGE CIMInstanceProvider : public virtual CIMProvider
62 {
63 public:
68 
72  virtual ~CIMInstanceProvider();
73 
112  virtual void getInstance(
113  const OperationContext& context,
114  const CIMObjectPath& instanceReference,
115  const Boolean includeQualifiers,
116  const Boolean includeClassOrigin,
117  const CIMPropertyList& propertyList,
118  InstanceResponseHandler& handler) = 0;
119 
174  virtual void enumerateInstances(
175  const OperationContext& context,
176  const CIMObjectPath& classReference,
177  const Boolean includeQualifiers,
178  const Boolean includeClassOrigin,
179  const CIMPropertyList& propertyList,
180  InstanceResponseHandler& handler) = 0;
181 
219  virtual void enumerateInstanceNames(
220  const OperationContext& context,
221  const CIMObjectPath& classReference,
222  ObjectPathResponseHandler& handler) = 0;
223 
261  virtual void modifyInstance(
262  const OperationContext& context,
263  const CIMObjectPath& instanceReference,
264  const CIMInstance& instanceObject,
265  const Boolean includeQualifiers,
266  const CIMPropertyList& propertyList,
267  ResponseHandler& handler) = 0;
268 
297  virtual void createInstance(
298  const OperationContext& context,
299  const CIMObjectPath& instanceReference,
300  const CIMInstance& instanceObject,
301  ObjectPathResponseHandler& handler) = 0;
302 
321  virtual void deleteInstance(
322  const OperationContext& context,
323  const CIMObjectPath& instanceReference,
324  ResponseHandler& handler) = 0;
325 };
326 
327 PEGASUS_NAMESPACE_END
328 
329 #endif
Definition: CIMInstanceProvider.h:61
Definition: CIMObjectPath.h:388
Definition: ResponseHandler.h:55
Definition: CIMInstance.h:64
Definition: ResponseHandler.h:152
Definition: CIMPropertyList.h:61
Definition: OperationContext.h:52
Definition: ResponseHandler.h:122
Definition: CIMProvider.h:70