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.5.6.1 // 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.5.6.1 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.5.6.1 _nameSpace = nameSpace;
50 _className = className;
51 _method = method;
52 }
|
53 chip 1.1
|
54 schuur 1.5.6.1 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.5.6.1 const Uint32 capabilities,
70 const CIMName & method)
|
71 schuur 1.5 : _capabilities(capabilities)
|
72 chip 1.1 {
73 _logicalName = logicalName;
74 _physicalName = physicalName;
75 _interfaceName = interfaceName;
|
76 schuur 1.5.6.1 _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 chip 1.1 Uint32 ProviderName::getCapabilitiesMask(void) const
104 {
105 return(_capabilities);
106 }
107
|
108 schuur 1.5.6.1 CIMName ProviderName::getMethodName(void) const
|
109 chip 1.1 {
|
110 schuur 1.5.6.1 return(_method);
111 }
112
113 CIMName ProviderName::getClassName() const {
114 return _className;
115 }
116
117 CIMNamespaceName ProviderName::getNameSpace() const {
118 return _nameSpace;
|
119 chip 1.1 }
120
121 PEGASUS_NAMESPACE_END
|