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

  1 karl  1.11 //%2006////////////////////////////////////////////////////////////////////////
  2 chip  1.1  //
  3 karl  1.9  // 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.9  // 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.10 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.11 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12            // EMC Corporation; Symantec Corporation; The Open Group.
 13 chip  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.3  // 
 21 chip  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            #include "ProviderName.h"
 35            
 36            #include <Pegasus/Common/CIMValue.h>
 37            
 38            PEGASUS_NAMESPACE_BEGIN
 39            
 40 kumpf 1.12 ProviderName::ProviderName() : _capabilities(0)
 41 chip  1.1  {
 42            }
 43            
 44 schuur 1.7  ProviderName::ProviderName(
 45 kumpf  1.12     const CIMNamespaceName& nameSpace,
 46                 const CIMName& className,
 47 schuur 1.7      const Uint32 capabilities,
 48 kumpf  1.12     const CIMName& method)
 49 schuur 1.7      : _capabilities(capabilities)
 50 chip   1.1  {
 51 schuur 1.7      _nameSpace = nameSpace;
 52                 _className = className;
 53                 _method = method;
 54             }
 55 chip   1.1  
 56 schuur 1.7  ProviderName::ProviderName(
 57 kumpf  1.12     const CIMObjectPath& path,
 58 schuur 1.7      const Uint32 capabilities,
 59 kumpf  1.12     const CIMName& method)
 60 schuur 1.7      : _capabilities(capabilities)
 61             {
 62                 _nameSpace = path.getNameSpace();
 63                 _className = path.getClassName();
 64                 _method = method;
 65 chip   1.1  }
 66             
 67             ProviderName::ProviderName(
 68 kumpf  1.12     const String& logicalName,
 69                 const String& physicalName,
 70                 const String& interfaceName,
 71 schuur 1.6      const Uint32 capabilities,
 72 kumpf  1.12     const CIMName& method)
 73 schuur 1.5      : _capabilities(capabilities)
 74 chip   1.1  {
 75                 _logicalName = logicalName;
 76                 _physicalName = physicalName;
 77 kumpf  1.12     _interfaceName = interfaceName;
 78 schuur 1.6      _method = method;
 79 chip   1.1  }
 80             
 81 kumpf  1.12 ProviderName::~ProviderName()
 82 chip   1.1  {
 83             }
 84             
 85 kumpf  1.12 String ProviderName::getPhysicalName() const
 86 chip   1.1  {
 87 kumpf  1.12     return _physicalName;
 88 chip   1.1  }
 89             
 90 kumpf  1.12 void ProviderName::setPhysicalName(const String& physicalName)
 91 chip   1.1  {
 92                 _physicalName = physicalName;
 93             }
 94             
 95 kumpf  1.12 String ProviderName::getLogicalName() const
 96 chip   1.1  {
 97 kumpf  1.12     return _logicalName;
 98 chip   1.1  }
 99             
100 kumpf  1.12 String ProviderName::getInterfaceName() const
101 chip   1.2  {
102 kumpf  1.12     return _interfaceName;
103 chip   1.2  }
104             
105 kumpf  1.12 String ProviderName::getLocation() const
106 schuur 1.8  {
107 kumpf  1.12     return _location;
108 schuur 1.8  }
109             
110 kumpf  1.12 void ProviderName::setLocation(const String& location)
111 schuur 1.8  {
112 kumpf  1.12     _location = location;
113 schuur 1.8  }
114             
115 kumpf  1.12 Uint32 ProviderName::getCapabilitiesMask() const
116 chip   1.1  {
117 kumpf  1.12     return _capabilities;
118 chip   1.1  }
119             
120 kumpf  1.12 CIMName ProviderName::getMethodName() const
121 schuur 1.6  {
122 kumpf  1.12     return _method;
123 schuur 1.6  }
124             
125 kumpf  1.12 CIMName ProviderName::getClassName() const
126             {
127 schuur 1.7     return _className;
128 chip   1.1  }
129 schuur 1.7  
130 kumpf  1.12 CIMNamespaceName ProviderName::getNameSpace() const
131             {
132 schuur 1.7     return _nameSpace;
133 kumpf  1.12 }
134 chip   1.1  
135             PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2