1 martin 1.10 //%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.11 //
|
3 martin 1.10 // 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.11 //
|
10 martin 1.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 martin 1.11 //
|
17 martin 1.10 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
|
19 martin 1.11 //
|
20 martin 1.10 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.11 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.10 // 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.11 //
|
28 martin 1.10 //////////////////////////////////////////////////////////////////////////
|
29 kumpf 1.1 //
30 //%/////////////////////////////////////////////////////////////////////////////
31
32 #ifndef Pegasus_ProviderClassList_h
33 #define Pegasus_ProviderClassList_h
34
35 #include <Pegasus/Common/Config.h>
36 #include <Pegasus/Common/CIMInstance.h>
37 #include <Pegasus/Common/CIMName.h>
38
39
40 PEGASUS_NAMESPACE_BEGIN
41
42 /**
|
43 venkat.puvvada 1.13 * NamespaceClassList holds the indication subclasses with the
44 * associated source namespace. This is used in the providerClassList
45 * to keep track of the indication subclasses serviced by the provider
46 * for each source namespace.
47 */
48 struct NamespaceClassList
49 {
50 CIMNamespaceName nameSpace;
51 Array<CIMName> classList;
52 };
53
54 /**
55 * SubscriptionWithSrcNamespace holds the subscription with the associated
56 * source namespace. This is used by the getMatchingSubscriptions() function
57 * to return the matched subscriptions with the source namespace of their
58 * service.
59 */
60 struct SubscriptionWithSrcNamespace
61 {
62 CIMNamespaceName nameSpace;
63 CIMInstance subscription;
64 venkat.puvvada 1.13 };
65
66 /**
|
67 kumpf 1.1 Entry for list of indication providers
68 */
69 struct providerClassList
70 {
71 CIMInstance provider;
72 CIMInstance providerModule;
|
73 yi.zhou 1.9 #ifdef PEGASUS_ENABLE_INDICATION_COUNT
74 Uint32 matchedIndCountPerSubscription;
75 #endif
|
76 venkat.puvvada 1.13 Array <NamespaceClassList> classList;
|
77 dave.sudlik 1.7 // Enabling Indications on Remote CMPI -V 5245
78 #ifdef PEGASUS_ENABLE_REMOTE_CMPI
79 Boolean isRemoteNameSpace;
80 String remoteInfo;
81 #endif
|
82 venkat.puvvada 1.12 String controlProviderName;
|
83 kumpf 1.8 providerClassList()
|
84 kumpf 1.1 {
|
85 yi.zhou 1.9 #ifdef PEGASUS_ENABLE_INDICATION_COUNT
86 matchedIndCountPerSubscription = 0;
87 #endif
|
88 kumpf 1.1 }
|
89 kumpf 1.8
|
90 kumpf 1.1 providerClassList (const providerClassList & rh)
91 : provider (rh.provider),
92 providerModule (rh.providerModule),
|
93 yi.zhou 1.9 #ifdef PEGASUS_ENABLE_INDICATION_COUNT
94 matchedIndCountPerSubscription(rh.matchedIndCountPerSubscription),
95 #endif
|
96 kumpf 1.1 classList (rh.classList)
|
97 dave.sudlik 1.7 #ifdef PEGASUS_ENABLE_REMOTE_CMPI
98 ,
99 isRemoteNameSpace (rh.isRemoteNameSpace),
100 remoteInfo (rh.remoteInfo)
101 #endif
|
102 venkat.puvvada 1.12 ,controlProviderName(rh.controlProviderName)
|
103 kumpf 1.1 {
104 }
105
106 providerClassList & operator= (const providerClassList & rh)
107 {
108 if (this != & rh)
109 {
110 provider = rh.provider;
111 providerModule = rh.providerModule;
|
112 yi.zhou 1.9 #ifdef PEGASUS_ENABLE_INDICATION_COUNT
113 matchedIndCountPerSubscription = rh.matchedIndCountPerSubscription;
114 #endif
|
115 kumpf 1.1 classList = rh.classList;
|
116 dave.sudlik 1.7 #ifdef PEGASUS_ENABLE_REMOTE_CMPI
117 isRemoteNameSpace = rh.isRemoteNameSpace;
118 remoteInfo = rh.remoteInfo;
119 #endif
|
120 venkat.puvvada 1.12 controlProviderName = rh.controlProviderName;
|
121 kumpf 1.1 }
122 return * this;
123 }
124 };
125
126 typedef struct providerClassList ProviderClassList;
127
128 PEGASUS_NAMESPACE_END
129
130 #endif /* Pegasus_ProviderClassList_h */
|