(file) Return to OperationContextInternal.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2