(file) Return to ProviderName.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ProviderManager2

  1 karl  1.3 //%2003////////////////////////////////////////////////////////////////////////
  2 chip  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 chip  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 karl  1.3 // 
 15 chip  1.1 // 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 schuur 1.7 // Modified By: Adrian Schuur (schuur@de.ibm.com)
 29 chip   1.1 //
 30            //%/////////////////////////////////////////////////////////////////////////////
 31            
 32            #include "ProviderName.h"
 33            
 34            #include <Pegasus/Common/CIMValue.h>
 35            
 36            PEGASUS_NAMESPACE_BEGIN
 37            
 38            ProviderName::ProviderName(void) : _capabilities(0)
 39            {
 40            }
 41            
 42 schuur 1.7 ProviderName::ProviderName(
 43                const CIMNamespaceName & nameSpace,
 44                const CIMName & className,
 45                const Uint32 capabilities,
 46                const CIMName & method)
 47                : _capabilities(capabilities)
 48 chip   1.1 {
 49 schuur 1.7     _nameSpace = nameSpace;
 50                _className = className;
 51                _method = method;
 52            }
 53 chip   1.1 
 54 schuur 1.7 ProviderName::ProviderName(
 55                const CIMObjectPath & path,
 56                const Uint32 capabilities,
 57                const CIMName & method)
 58                : _capabilities(capabilities)
 59            {
 60                _nameSpace = path.getNameSpace();
 61                _className = path.getClassName();
 62                _method = method;
 63 chip   1.1 }
 64            
 65            ProviderName::ProviderName(
 66                const String & logicalName,
 67                const String & physicalName,
 68                const String & interfaceName,
 69 schuur 1.6     const Uint32 capabilities,
 70                const CIMName & method)
 71 schuur 1.5     : _capabilities(capabilities)
 72 chip   1.1 {
 73                _logicalName = logicalName;
 74                _physicalName = physicalName;
 75 schuur 1.7     _interfaceName = interfaceName;    
 76 schuur 1.6     _method = method;
 77 chip   1.1 }
 78            
 79            ProviderName::~ProviderName(void)
 80            {
 81            }
 82            
 83            String ProviderName::getPhysicalName(void) const
 84            {
 85                return(_physicalName);
 86            }
 87            
 88            void ProviderName::setPhysicalName(const String & physicalName)
 89            {
 90                _physicalName = physicalName;
 91            }
 92            
 93            String ProviderName::getLogicalName(void) const
 94            {
 95                return(_logicalName);
 96            }
 97            
 98 chip   1.2 String ProviderName::getInterfaceName(void) const
 99            {
100                return(_interfaceName);
101            }
102            
103 schuur 1.8 String ProviderName::getLocation(void) const
104            {
105                return(_location);
106            }
107            
108            void ProviderName::setLocation(const String &location)
109            {
110                _location=location;
111            }
112            
113 chip   1.1 Uint32 ProviderName::getCapabilitiesMask(void) const
114            {
115                return(_capabilities);
116            }
117            
118 schuur 1.6 CIMName ProviderName::getMethodName(void) const
119            {
120                return(_method);
121            }
122            
123 schuur 1.7 CIMName ProviderName::getClassName() const {
124               return _className;
125 chip   1.1 }
126 schuur 1.7 
127            CIMNamespaceName ProviderName::getNameSpace() const {
128               return _nameSpace;
129            }   
130 chip   1.1 
131            PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2