(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            // Author: Chip Vincent (cvincent@us.ibm.com)
 33            //
 34            // Modified By: Mike Day (mdday@us.ibm.com)
 35            //
 36            //%/////////////////////////////////////////////////////////////////////////////
 37            
 38            #ifndef Pegasus_OperationContextInternal_h
 39            #define Pegasus_OperationContextInternal_h
 40            
 41            #include <Pegasus/Common/Config.h>
 42 kumpf 1.1  #include <Pegasus/Common/Linkage.h>
 43            #include <Pegasus/Common/OperationContext.h>
 44 chip  1.11 #include <Pegasus/Common/CIMClass.h>
 45 kumpf 1.1  #include <Pegasus/Common/CIMInstance.h>
 46            
 47 a.dunfey 1.16 #include <Pegasus/Common/ObjectNormalizer.h>
 48               
 49 kumpf    1.1  PEGASUS_NAMESPACE_BEGIN
 50               
 51               // This class should be moved to the OperationContext module when localization
 52               // support is added to Pegasus and this class definition is firm.
 53               class PEGASUS_COMMON_LINKAGE LocaleContainer
 54 kumpf    1.5      : virtual public OperationContext::Container
 55 kumpf    1.1  {
 56               public:
 57                   static const String NAME;
 58               
 59                   LocaleContainer(const OperationContext::Container & container);
 60                   LocaleContainer(const String & languageId);
 61                   virtual ~LocaleContainer(void);
 62 chip     1.11 
 63                   LocaleContainer & operator=(const LocaleContainer & container);
 64 kumpf    1.1  
 65                   virtual String getName(void) const;
 66                   virtual OperationContext::Container * clone(void) const;
 67                   virtual void destroy(void);
 68               
 69                   String getLanguageId(void) const;
 70               
 71               protected:
 72                   String _languageId;
 73               
 74               };
 75               
 76               class PEGASUS_COMMON_LINKAGE ProviderIdContainer
 77 kumpf    1.5      : virtual public OperationContext::Container
 78 kumpf    1.1  {
 79               public:
 80                   static const String NAME;
 81               
 82                   ProviderIdContainer(const OperationContext::Container & container);
 83 schuur   1.6      ProviderIdContainer(const CIMInstance & module, const CIMInstance & provider,
 84 chip     1.14         Boolean isRemoteNameSpace = false, const String & remoteInfo = String::EMPTY);
 85 kumpf    1.1      virtual ~ProviderIdContainer(void);
 86 chip     1.11 
 87                   ProviderIdContainer & operator=(const ProviderIdContainer & container);
 88 kumpf    1.1  
 89                   virtual String getName(void) const;
 90                   virtual OperationContext::Container * clone(void) const;
 91                   virtual void destroy(void);
 92               
 93                   CIMInstance getModule(void) const;
 94                   CIMInstance getProvider(void) const;
 95 chip     1.11     Boolean isRemoteNameSpace(void) const;
 96 chip     1.13     String getRemoteInfo(void) const;
 97 kumpf    1.1  
 98               protected:
 99                   CIMInstance _module;
100                   CIMInstance _provider;
101 chip     1.13     Boolean _isRemoteNameSpace;
102 schuur   1.6      String _remoteInfo;
103 kumpf    1.1  
104               };
105               
106 chip     1.11 class PEGASUS_COMMON_LINKAGE CachedClassDefinitionContainer
107                   : virtual public OperationContext::Container
108               {
109               public:
110                   static const String NAME;
111               
112                   CachedClassDefinitionContainer(const OperationContext::Container & container);
113                   CachedClassDefinitionContainer(const CIMClass & cimClass);
114                   virtual ~CachedClassDefinitionContainer(void);
115               
116                   CachedClassDefinitionContainer & operator=(const CachedClassDefinitionContainer & container);
117               
118                   virtual String getName(void) const;
119                   virtual OperationContext::Container * clone(void) const;
120                   virtual void destroy(void);
121               
122                   CIMClass getClass(void) const;
123               
124               protected:
125                   CIMClass _cimClass;
126               
127 chip     1.11 };
128               
129 a.dunfey 1.16 class PEGASUS_COMMON_LINKAGE NormalizerContextContainer
130                   : virtual public OperationContext::Container
131               {
132               public:
133                   static const String NAME;
134               
135                   NormalizerContextContainer(const OperationContext::Container & container);
136                   NormalizerContextContainer(AutoPtr<NormalizerContext> & context);
137                   virtual ~NormalizerContextContainer(void);
138               
139                   NormalizerContextContainer & operator=(const NormalizerContextContainer & container);
140               
141                   virtual String getName(void) const;
142                   virtual OperationContext::Container * clone(void) const;
143                   virtual void destroy(void);
144               
145                   NormalizerContext * getContext(void) const;
146               
147               protected:
148                   AutoPtr<NormalizerContext> normalizerContext;
149                   
150 a.dunfey 1.16 private:
151                   NormalizerContextContainer();
152               };
153               
154 kumpf    1.1  PEGASUS_NAMESPACE_END
155               
156               #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2