/scratch/rpmbuild.22230.L22270/pegasus/src/Pegasus/Provider/CIMInstanceProvider.h

00001 //%LICENSE////////////////////////////////////////////////////////////////
00002 //
00003 // Licensed to The Open Group (TOG) under one or more contributor license
00004 // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
00005 // this work for additional information regarding copyright ownership.
00006 // Each contributor licenses this file to you under the OpenPegasus Open
00007 // Source License; you may not use this file except in compliance with the
00008 // License.
00009 //
00010 // Permission is hereby granted, free of charge, to any person obtaining a
00011 // copy of this software and associated documentation files (the "Software"),
00012 // to deal in the Software without restriction, including without limitation
00013 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
00014 // and/or sell copies of the Software, and to permit persons to whom the
00015 // Software is furnished to do so, subject to the following conditions:
00016 //
00017 // The above copyright notice and this permission notice shall be included
00018 // in all copies or substantial portions of the Software.
00019 //
00020 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00021 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00022 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00023 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
00024 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
00025 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
00026 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00027 //
00029 //
00030 //%/////////////////////////////////////////////////////////////////////////////
00031 
00032 #ifndef Pegasus_CIMInstanceProvider_h
00033 #define Pegasus_CIMInstanceProvider_h
00034 
00035 #include <Pegasus/Common/Config.h>
00036 #include <Pegasus/Provider/CIMProvider.h>
00037 
00038 #include <Pegasus/Common/Array.h>
00039 #include <Pegasus/Common/CIMPropertyList.h>
00040 #include <Pegasus/Common/CIMObjectPath.h>
00041 #include <Pegasus/Common/CIMInstance.h>
00042 #include <Pegasus/Provider/Linkage.h>
00043 
00044 PEGASUS_NAMESPACE_BEGIN
00045 
00061 class PEGASUS_PROVIDER_LINKAGE CIMInstanceProvider : public virtual CIMProvider
00062 {
00063 public:
00067     CIMInstanceProvider();
00068 
00072     virtual ~CIMInstanceProvider();
00073 
00109     virtual void getInstance(
00110         const OperationContext& context,
00111         const CIMObjectPath& instanceReference,
00112         const Boolean includeQualifiers,
00113         const Boolean includeClassOrigin,
00114         const CIMPropertyList& propertyList,
00115         InstanceResponseHandler& handler) = 0;
00116 
00169     virtual void enumerateInstances(
00170         const OperationContext& context,
00171         const CIMObjectPath& classReference,
00172         const Boolean includeQualifiers,
00173         const Boolean includeClassOrigin,
00174         const CIMPropertyList& propertyList,
00175         InstanceResponseHandler& handler) = 0;
00176 
00214     virtual void enumerateInstanceNames(
00215         const OperationContext& context,
00216         const CIMObjectPath& classReference,
00217         ObjectPathResponseHandler& handler) = 0;
00218 
00256     virtual void modifyInstance(
00257         const OperationContext& context,
00258         const CIMObjectPath& instanceReference,
00259         const CIMInstance& instanceObject,
00260         const Boolean includeQualifiers,
00261         const CIMPropertyList& propertyList,
00262         ResponseHandler& handler) = 0;
00263 
00292     virtual void createInstance(
00293         const OperationContext& context,
00294         const CIMObjectPath& instanceReference,
00295         const CIMInstance& instanceObject,
00296         ObjectPathResponseHandler& handler) = 0;
00297 
00316     virtual void deleteInstance(
00317         const OperationContext& context,
00318         const CIMObjectPath& instanceReference,
00319         ResponseHandler& handler) = 0;
00320 };
00321 
00322 PEGASUS_NAMESPACE_END
00323 
00324 #endif