1 martin 1.12 //%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.13 //
|
3 martin 1.12 // 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.13 //
|
10 martin 1.12 // 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.13 //
|
17 martin 1.12 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
|
19 martin 1.13 //
|
20 martin 1.12 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.13 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.12 // 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.13 //
|
28 martin 1.12 //////////////////////////////////////////////////////////////////////////
|
29 schuur 1.1 //
30 //%/////////////////////////////////////////////////////////////////////////////
31
32 #ifndef Pegasus_CMPIProviderModule_h
33 #define Pegasus_CMPIProviderModule_h
34
35 #include <Pegasus/Common/Config.h>
36 #include <Pegasus/Common/String.h>
|
37 kumpf 1.7 #include <Pegasus/Common/DynamicLibrary.h>
|
38 mike 1.9 #include <Pegasus/Common/System.h>
|
39 schuur 1.1
40 #include <Pegasus/Provider/CIMProvider.h>
41 #include <Pegasus/ProviderManager2/CMPI/CMPIProvider.h>
42
|
43 schuur 1.2 #include <Pegasus/ProviderManager2/CMPI/Linkage.h>
|
44 schuur 1.1
45 PEGASUS_NAMESPACE_BEGIN
46
|
47 kumpf 1.14 // The CMPIProviderModule class represents the physical module, as defined by
48 // the operation, that contains a provider. This class effectively
|
49 venkat.puvvada 1.10 // encapsulates the "physical" portion of a provider.
|
50 schuur 1.1
|
51 schuur 1.2 class PEGASUS_CMPIPM_LINKAGE CMPIProviderModule
|
52 schuur 1.1 {
53
54 friend class CMPILocalProviderManager;
55
56 public:
|
57 venkat.puvvada 1.10 virtual ~CMPIProviderModule();
58 const String & getFileName() const;
|
59 schuur 1.1 ProviderVector load(const String & providerName);
|
60 venkat.puvvada 1.10 void unloadModule();
|
61 schuur 1.1
62 protected:
|
63 kumpf 1.7 DynamicLibrary _library;
|
64 schuur 1.1
65 private:
|
66 schuur 1.3 CMPIProviderModule(const String & fileName);
|
67 schuur 1.1 };
68
|
69 venkat.puvvada 1.10 inline const String & CMPIProviderModule::getFileName() const
|
70 schuur 1.1 {
|
71 kumpf 1.7 return _library.getFileName();
|
72 schuur 1.1 }
73
74 PEGASUS_NAMESPACE_END
75
76 #endif
|
77 kumpf 1.14
|