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

  1 karl  1.15 //%2006////////////////////////////////////////////////////////////////////////
  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 karl  1.12 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.15 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12            // EMC Corporation; Symantec Corporation; The Open Group.
 13 kumpf 1.1  //
 14            // Permission is hereby granted, free of charge, to any person obtaining a copy
 15            // of this software and associated documentation files (the "Software"), to
 16            // deal in the Software without restriction, including without limitation the
 17            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18            // sell copies of the Software, and to permit persons to whom the Software is
 19            // furnished to do so, subject to the following conditions:
 20 karl  1.15 // 
 21 kumpf 1.1  // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22            // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24            // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27            // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29            //
 30            //==============================================================================
 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 chip  1.11 #include <Pegasus/Common/CIMClass.h>
 41 kumpf 1.1  #include <Pegasus/Common/CIMInstance.h>
 42 kumpf 1.20 #include <Pegasus/Common/AutoPtr.h>
 43 a.dunfey 1.16 #include <Pegasus/Common/ObjectNormalizer.h>
 44               
 45 kumpf    1.1  PEGASUS_NAMESPACE_BEGIN
 46               
 47               // This class should be moved to the OperationContext module when localization
 48               // support is added to Pegasus and this class definition is firm.
 49               class PEGASUS_COMMON_LINKAGE LocaleContainer
 50 kumpf    1.5      : virtual public OperationContext::Container
 51 kumpf    1.1  {
 52               public:
 53                   static const String NAME;
 54               
 55 kumpf    1.19     LocaleContainer(const OperationContext::Container& container);
 56                   LocaleContainer(const String& languageId);
 57                   virtual ~LocaleContainer();
 58 chip     1.11 
 59 kumpf    1.18     // NOTE: The compiler default implementation of the copy constructor
 60                   // is used for this class.
 61               
 62 kumpf    1.19     LocaleContainer& operator=(const LocaleContainer& container);
 63 kumpf    1.1  
 64 kumpf    1.19     virtual String getName() const;
 65                   virtual OperationContext::Container* clone() const;
 66                   virtual void destroy();
 67 kumpf    1.1  
 68 kumpf    1.19     String getLanguageId() const;
 69 kumpf    1.1  
 70               protected:
 71                   String _languageId;
 72               
 73               };
 74               
 75               class PEGASUS_COMMON_LINKAGE ProviderIdContainer
 76 kumpf    1.5      : virtual public OperationContext::Container
 77 kumpf    1.1  {
 78               public:
 79                   static const String NAME;
 80               
 81 kumpf    1.19     ProviderIdContainer(const OperationContext::Container& container);
 82                   ProviderIdContainer(
 83                       const CIMInstance& module,
 84                       const CIMInstance& provider,
 85                       Boolean isRemoteNameSpace = false,
 86                       const String& remoteInfo = String::EMPTY);
 87                   virtual ~ProviderIdContainer();
 88 chip     1.11 
 89 kumpf    1.18     // NOTE: The compiler default implementation of the copy constructor
 90                   // is used for this class.
 91               
 92 kumpf    1.19     ProviderIdContainer& operator=(const ProviderIdContainer& container);
 93 kumpf    1.1  
 94 kumpf    1.19     virtual String getName() const;
 95                   virtual OperationContext::Container* clone() const;
 96                   virtual void destroy();
 97               
 98                   CIMInstance getModule() const;
 99                   CIMInstance getProvider() const;
100                   Boolean isRemoteNameSpace() const;
101                   String getRemoteInfo() const;
102 kumpf    1.1  
103               protected:
104                   CIMInstance _module;
105                   CIMInstance _provider;
106 chip     1.13     Boolean _isRemoteNameSpace;
107 schuur   1.6      String _remoteInfo;
108 kumpf    1.1  
109               };
110               
111 chip     1.11 class PEGASUS_COMMON_LINKAGE CachedClassDefinitionContainer
112                   : virtual public OperationContext::Container
113               {
114               public:
115                   static const String NAME;
116               
117 kumpf    1.19     CachedClassDefinitionContainer(
118                       const OperationContext::Container& container);
119                   CachedClassDefinitionContainer(const CIMClass& cimClass);
120                   virtual ~CachedClassDefinitionContainer();
121 chip     1.11 
122 kumpf    1.18     // NOTE: The compiler default implementation of the copy constructor
123                   // is used for this class.
124               
125 kumpf    1.19     CachedClassDefinitionContainer& operator=(
126                       const CachedClassDefinitionContainer& container);
127 chip     1.11 
128 kumpf    1.19     virtual String getName() const;
129                   virtual OperationContext::Container* clone() const;
130                   virtual void destroy();
131 chip     1.11 
132 kumpf    1.19     CIMClass getClass() const;
133 chip     1.11 
134               protected:
135                   CIMClass _cimClass;
136               
137               };
138               
139 a.dunfey 1.16 class PEGASUS_COMMON_LINKAGE NormalizerContextContainer
140                   : virtual public OperationContext::Container
141               {
142               public:
143                   static const String NAME;
144               
145 kumpf    1.19     NormalizerContextContainer(const OperationContext::Container& container);
146                   NormalizerContextContainer(AutoPtr<NormalizerContext>& context);
147                   NormalizerContextContainer(const NormalizerContextContainer& container);
148                   virtual ~NormalizerContextContainer();
149               
150                   NormalizerContextContainer& operator=(
151                       const NormalizerContextContainer& container);
152               
153                   virtual String getName() const;
154                   virtual OperationContext::Container* clone() const;
155                   virtual void destroy();
156 a.dunfey 1.16 
157 kumpf    1.19     NormalizerContext* getContext() const;
158 a.dunfey 1.16 
159               protected:
160                   AutoPtr<NormalizerContext> normalizerContext;
161 kumpf    1.19 
162 a.dunfey 1.16 private:
163                   NormalizerContextContainer();
164               };
165               
166 kumpf    1.1  PEGASUS_NAMESPACE_END
167               
168               #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2