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

  1 karl  1.12 //%2005////////////////////////////////////////////////////////////////////////
  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 kumpf 1.1  //
 12            // Permission is hereby granted, free of charge, to any person obtaining a copy
 13            // of this software and associated documentation files (the "Software"), to
 14            // deal in the Software without restriction, including without limitation the
 15            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 16            // sell copies of the Software, and to permit persons to whom the Software is
 17            // furnished to do so, subject to the following conditions:
 18 chip  1.13 //
 19 kumpf 1.1  // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 20            // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 21            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 22            // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 23            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 24            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 25            // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 26            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27            //
 28            //==============================================================================
 29            //
 30            // Author: Chip Vincent (cvincent@us.ibm.com)
 31            //
 32            // Modified By: Mike Day (mdday@us.ibm.com)
 33            //
 34            //%/////////////////////////////////////////////////////////////////////////////
 35            
 36            #ifndef Pegasus_OperationContextInternal_h
 37            #define Pegasus_OperationContextInternal_h
 38            
 39            #include <Pegasus/Common/Config.h>
 40 kumpf 1.1  #include <Pegasus/Common/Linkage.h>
 41            #include <Pegasus/Common/OperationContext.h>
 42 chip  1.11 #include <Pegasus/Common/CIMClass.h>
 43 kumpf 1.1  #include <Pegasus/Common/CIMInstance.h>
 44            
 45            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                LocaleContainer(const OperationContext::Container & container);
 56                LocaleContainer(const String & languageId);
 57                virtual ~LocaleContainer(void);
 58 chip  1.11 
 59                LocaleContainer & operator=(const LocaleContainer & container);
 60 kumpf 1.1  
 61                virtual String getName(void) const;
 62                virtual OperationContext::Container * clone(void) const;
 63                virtual void destroy(void);
 64            
 65                String getLanguageId(void) const;
 66            
 67            protected:
 68                String _languageId;
 69            
 70            };
 71            
 72            class PEGASUS_COMMON_LINKAGE ProviderIdContainer
 73 kumpf 1.5      : virtual public OperationContext::Container
 74 kumpf 1.1  {
 75            public:
 76                static const String NAME;
 77            
 78                ProviderIdContainer(const OperationContext::Container & container);
 79 schuur 1.6      ProviderIdContainer(const CIMInstance & module, const CIMInstance & provider,
 80 chip   1.14         Boolean isRemoteNameSpace = false, const String & remoteInfo = String::EMPTY);
 81 kumpf  1.1      virtual ~ProviderIdContainer(void);
 82 chip   1.11 
 83                 ProviderIdContainer & operator=(const ProviderIdContainer & container);
 84 kumpf  1.1  
 85                 virtual String getName(void) const;
 86                 virtual OperationContext::Container * clone(void) const;
 87                 virtual void destroy(void);
 88             
 89                 CIMInstance getModule(void) const;
 90                 CIMInstance getProvider(void) const;
 91 chip   1.11     Boolean isRemoteNameSpace(void) const;
 92 chip   1.13     String getRemoteInfo(void) const;
 93 kumpf  1.1  
 94             protected:
 95                 CIMInstance _module;
 96                 CIMInstance _provider;
 97 chip   1.13     Boolean _isRemoteNameSpace;
 98 schuur 1.6      String _remoteInfo;
 99 kumpf  1.1  
100             };
101             
102 chip   1.11 class PEGASUS_COMMON_LINKAGE CachedClassDefinitionContainer
103                 : virtual public OperationContext::Container
104             {
105             public:
106                 static const String NAME;
107             
108                 CachedClassDefinitionContainer(const OperationContext::Container & container);
109                 CachedClassDefinitionContainer(const CIMClass & cimClass);
110                 virtual ~CachedClassDefinitionContainer(void);
111             
112                 CachedClassDefinitionContainer & operator=(const CachedClassDefinitionContainer & container);
113             
114                 virtual String getName(void) const;
115                 virtual OperationContext::Container * clone(void) const;
116                 virtual void destroy(void);
117             
118                 CIMClass getClass(void) const;
119             
120             protected:
121                 CIMClass _cimClass;
122             
123 chip   1.11 };
124             
125 kumpf  1.1  PEGASUS_NAMESPACE_END
126             
127             #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2