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