1 karl 1.7 //%2004////////////////////////////////////////////////////////////////////////
|
2 kumpf 1.1 //
|
3 karl 1.7 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
6 karl 1.3 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.7 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 kumpf 1.1 //
10 // Permission is hereby granted, free of charge, to any person obtaining a copy
11 // of this software and associated documentation files (the "Software"), to
12 // deal in the Software without restriction, including without limitation the
13 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
14 // sell copies of the Software, and to permit persons to whom the Software is
15 // furnished to do so, subject to the following conditions:
|
16 chip 1.9 //
|
17 kumpf 1.1 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
18 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
19 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
20 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
21 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 //
26 //==============================================================================
27 //
28 // Author: Chip Vincent (cvincent@us.ibm.com)
29 //
30 // Modified By: Mike Day (mdday@us.ibm.com)
31 //
32 //%/////////////////////////////////////////////////////////////////////////////
33
34 #ifndef Pegasus_OperationContextInternal_h
35 #define Pegasus_OperationContextInternal_h
36
37 #include <Pegasus/Common/Config.h>
38 kumpf 1.1 #include <Pegasus/Common/Linkage.h>
39 #include <Pegasus/Common/OperationContext.h>
|
40 chip 1.9 #include <Pegasus/Common/CIMClass.h>
|
41 kumpf 1.1 #include <Pegasus/Common/CIMInstance.h>
42
43 PEGASUS_NAMESPACE_BEGIN
44
45 // This class should be moved to the OperationContext module when localization
46 // support is added to Pegasus and this class definition is firm.
47 class PEGASUS_COMMON_LINKAGE LocaleContainer
|
48 kumpf 1.5 : virtual public OperationContext::Container
|
49 kumpf 1.1 {
50 public:
51 static const String NAME;
52
53 LocaleContainer(const OperationContext::Container & container);
54 LocaleContainer(const String & languageId);
55 virtual ~LocaleContainer(void);
|
56 chip 1.9
57 LocaleContainer & operator=(const LocaleContainer & container);
|
58 kumpf 1.1
59 virtual String getName(void) const;
60 virtual OperationContext::Container * clone(void) const;
61 virtual void destroy(void);
62
63 String getLanguageId(void) const;
64
65 protected:
66 String _languageId;
67
68 };
69
70 class PEGASUS_COMMON_LINKAGE ProviderIdContainer
|
71 kumpf 1.5 : virtual public OperationContext::Container
|
72 kumpf 1.1 {
73 public:
74 static const String NAME;
75
76 ProviderIdContainer(const OperationContext::Container & container);
|
77 schuur 1.6 ProviderIdContainer(const CIMInstance & module, const CIMInstance & provider,
|
78 chip 1.9 Boolean remoteNameSpace = false, String remoteInfo = String::EMPTY);
|
79 kumpf 1.1 virtual ~ProviderIdContainer(void);
|
80 chip 1.9
81 ProviderIdContainer & operator=(const ProviderIdContainer & container);
|
82 kumpf 1.1
83 virtual String getName(void) const;
84 virtual OperationContext::Container * clone(void) const;
85 virtual void destroy(void);
86
87 CIMInstance getModule(void) const;
88 CIMInstance getProvider(void) const;
|
89 chip 1.9 const String & getRemoteInfo(void) const;
90 Boolean isRemoteNameSpace(void) const;
|
91 kumpf 1.1
92 protected:
93 CIMInstance _module;
94 CIMInstance _provider;
|
95 schuur 1.6 Boolean _remoteNameSpace;
96 String _remoteInfo;
|
97 kumpf 1.1
98 };
99
|
100 chip 1.9 class PEGASUS_COMMON_LINKAGE CachedClassDefinitionContainer
101 : virtual public OperationContext::Container
102 {
103 public:
104 static const String NAME;
105
106 CachedClassDefinitionContainer(const OperationContext::Container & container);
107 CachedClassDefinitionContainer(const CIMClass & cimClass);
108 virtual ~CachedClassDefinitionContainer(void);
109
110 CachedClassDefinitionContainer & operator=(const CachedClassDefinitionContainer & container);
111
112 virtual String getName(void) const;
113 virtual OperationContext::Container * clone(void) const;
114 virtual void destroy(void);
115
116 CIMClass getClass(void) const;
117
118 protected:
119 CIMClass _cimClass;
120
121 chip 1.9 };
122
|
123 kumpf 1.1 PEGASUS_NAMESPACE_END
124
125 #endif
|