(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            PEGASUS_NAMESPACE_BEGIN
 48            
 49            // This class should be moved to the OperationContext module when localization
 50            // support is added to Pegasus and this class definition is firm.
 51            class PEGASUS_COMMON_LINKAGE LocaleContainer
 52 kumpf 1.5      : virtual public OperationContext::Container
 53 kumpf 1.1  {
 54            public:
 55                static const String NAME;
 56            
 57                LocaleContainer(const OperationContext::Container & container);
 58                LocaleContainer(const String & languageId);
 59                virtual ~LocaleContainer(void);
 60 chip  1.11 
 61                LocaleContainer & operator=(const LocaleContainer & container);
 62 kumpf 1.1  
 63                virtual String getName(void) const;
 64                virtual OperationContext::Container * clone(void) const;
 65                virtual void destroy(void);
 66            
 67                String getLanguageId(void) const;
 68            
 69            protected:
 70                String _languageId;
 71            
 72            };
 73            
 74            class PEGASUS_COMMON_LINKAGE ProviderIdContainer
 75 kumpf 1.5      : virtual public OperationContext::Container
 76 kumpf 1.1  {
 77            public:
 78                static const String NAME;
 79            
 80                ProviderIdContainer(const OperationContext::Container & container);
 81 schuur 1.6      ProviderIdContainer(const CIMInstance & module, const CIMInstance & provider,
 82 chip   1.14         Boolean isRemoteNameSpace = false, const String & remoteInfo = String::EMPTY);
 83 kumpf  1.1      virtual ~ProviderIdContainer(void);
 84 chip   1.11 
 85                 ProviderIdContainer & operator=(const ProviderIdContainer & container);
 86 kumpf  1.1  
 87                 virtual String getName(void) const;
 88                 virtual OperationContext::Container * clone(void) const;
 89                 virtual void destroy(void);
 90             
 91                 CIMInstance getModule(void) const;
 92                 CIMInstance getProvider(void) const;
 93 chip   1.11     Boolean isRemoteNameSpace(void) const;
 94 chip   1.13     String getRemoteInfo(void) const;
 95 kumpf  1.1  
 96             protected:
 97                 CIMInstance _module;
 98                 CIMInstance _provider;
 99 chip   1.13     Boolean _isRemoteNameSpace;
100 schuur 1.6      String _remoteInfo;
101 kumpf  1.1  
102             };
103             
104 chip   1.11 class PEGASUS_COMMON_LINKAGE CachedClassDefinitionContainer
105                 : virtual public OperationContext::Container
106             {
107             public:
108                 static const String NAME;
109             
110                 CachedClassDefinitionContainer(const OperationContext::Container & container);
111                 CachedClassDefinitionContainer(const CIMClass & cimClass);
112                 virtual ~CachedClassDefinitionContainer(void);
113             
114                 CachedClassDefinitionContainer & operator=(const CachedClassDefinitionContainer & container);
115             
116                 virtual String getName(void) const;
117                 virtual OperationContext::Container * clone(void) const;
118                 virtual void destroy(void);
119             
120                 CIMClass getClass(void) const;
121             
122             protected:
123                 CIMClass _cimClass;
124             
125 chip   1.11 };
126             
127 kumpf  1.1  PEGASUS_NAMESPACE_END
128             
129             #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2