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

 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           // 
17           // 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 kumpf 1.1 // 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           #include <Pegasus/Common/Linkage.h>
39           #include <Pegasus/Common/OperationContext.h>
40           #include <Pegasus/Common/CIMInstance.h>
41           
42           PEGASUS_NAMESPACE_BEGIN
43           
44           // This class should be moved to the OperationContext module when localization
45           // support is added to Pegasus and this class definition is firm.
46           class PEGASUS_COMMON_LINKAGE LocaleContainer
47 kumpf 1.5     : virtual public OperationContext::Container
48 kumpf 1.1 {
49           public:
50               static const String NAME;
51           
52               LocaleContainer(const OperationContext::Container & container);
53               LocaleContainer(const String & languageId);
54               virtual ~LocaleContainer(void);
55           
56               virtual String getName(void) const;
57               virtual OperationContext::Container * clone(void) const;
58               virtual void destroy(void);
59           
60               String getLanguageId(void) const;
61           
62           protected:
63               String _languageId;
64           
65           };
66           
67           class PEGASUS_COMMON_LINKAGE ProviderIdContainer
68 kumpf 1.5     : virtual public OperationContext::Container
69 kumpf 1.1 {
70           public:
71               static const String NAME;
72           
73               ProviderIdContainer(const OperationContext::Container & container);
74 schuur 1.6     ProviderIdContainer(const CIMInstance & module, const CIMInstance & provider,
75                    Boolean remoteNameSpace=false, String remoteInfo=String::EMPTY);
76 kumpf  1.1     virtual ~ProviderIdContainer(void);
77            
78                virtual String getName(void) const;
79                virtual OperationContext::Container * clone(void) const;
80                virtual void destroy(void);
81            
82                CIMInstance getModule(void) const;
83                CIMInstance getProvider(void) const;
84 schuur 1.6     const String & getRemoteInfo() const;
85                Boolean isRemoteNameSpace() const;
86 kumpf  1.1 
87            protected:
88                CIMInstance _module;
89                CIMInstance _provider;
90 schuur 1.6     Boolean _remoteNameSpace;
91                String _remoteInfo;
92 kumpf  1.1 
93            };
94            
95            PEGASUS_NAMESPACE_END
96            
97            #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2