(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               ProviderIdContainer(const CIMInstance & module, const CIMInstance & provider);
73               virtual ~ProviderIdContainer(void);
74           
75               virtual String getName(void) const;
76               virtual OperationContext::Container * clone(void) const;
77               virtual void destroy(void);
78           
79               CIMInstance getModule(void) const;
80               CIMInstance getProvider(void) const;
81           
82           protected:
83               CIMInstance _module;
84               CIMInstance _provider;
85           
86           };
87           
88 kumpf 1.1 PEGASUS_NAMESPACE_END
89           
90           #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2