1 karl 1.9 //%2004////////////////////////////////////////////////////////////////////////
|
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 chip 1.1 //
10 // Permission is hereby granted, free of charge, to any person obtaining a copy
11 // of this software and associated documentation files (the "Software"), to
12 // deal in the Software without restriction, including without limitation the
13 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
14 // sell copies of the Software, and to permit persons to whom the Software is
15 // furnished to do so, subject to the following conditions:
|
16 karl 1.3 //
|
17 chip 1.1 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
18 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
19 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
20 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
21 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 //
26 //==============================================================================
27 //
28 // Author: Chip Vincent (cvincent@us.ibm.com)
29 //
|
30 schuur 1.7 // Modified By: Adrian Schuur (schuur@de.ibm.com)
|
31 chip 1.1 //
32 //%/////////////////////////////////////////////////////////////////////////////
33
34 #include "ProviderName.h"
35
36 #include <Pegasus/Common/CIMValue.h>
37
38 PEGASUS_NAMESPACE_BEGIN
39
40 ProviderName::ProviderName(void) : _capabilities(0)
41 {
42 }
43
|
44 schuur 1.7 ProviderName::ProviderName(
45 const CIMNamespaceName & nameSpace,
46 const CIMName & className,
47 const Uint32 capabilities,
48 const CIMName & method)
49 : _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 const CIMObjectPath & path,
58 const Uint32 capabilities,
59 const CIMName & method)
60 : _capabilities(capabilities)
61 {
62 _nameSpace = path.getNameSpace();
63 _className = path.getClassName();
64 _method = method;
|
65 chip 1.1 }
66
67 ProviderName::ProviderName(
68 const String & logicalName,
69 const String & physicalName,
70 const String & interfaceName,
|
71 schuur 1.6 const Uint32 capabilities,
72 const CIMName & method)
|
73 schuur 1.5 : _capabilities(capabilities)
|
74 chip 1.1 {
75 _logicalName = logicalName;
76 _physicalName = physicalName;
|
77 schuur 1.7 _interfaceName = interfaceName;
|
78 schuur 1.6 _method = method;
|
79 chip 1.1 }
80
81 ProviderName::~ProviderName(void)
82 {
83 }
84
85 String ProviderName::getPhysicalName(void) const
86 {
87 return(_physicalName);
88 }
89
90 void ProviderName::setPhysicalName(const String & physicalName)
91 {
92 _physicalName = physicalName;
93 }
94
95 String ProviderName::getLogicalName(void) const
96 {
97 return(_logicalName);
98 }
99
|
100 chip 1.2 String ProviderName::getInterfaceName(void) const
101 {
102 return(_interfaceName);
103 }
104
|
105 schuur 1.8 String ProviderName::getLocation(void) const
106 {
107 return(_location);
108 }
109
110 void ProviderName::setLocation(const String &location)
111 {
112 _location=location;
113 }
114
|
115 chip 1.1 Uint32 ProviderName::getCapabilitiesMask(void) const
116 {
117 return(_capabilities);
118 }
119
|
120 schuur 1.6 CIMName ProviderName::getMethodName(void) const
121 {
122 return(_method);
123 }
124
|
125 schuur 1.7 CIMName ProviderName::getClassName() const {
126 return _className;
|
127 chip 1.1 }
|
128 schuur 1.7
129 CIMNamespaceName ProviderName::getNameSpace() const {
130 return _nameSpace;
131 }
|
132 chip 1.1
133 PEGASUS_NAMESPACE_END
|