1
/*###############################################################################
2
# Linux Management Providers (LMP), Physical Asset provider package
3
# Copyright (C) 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com>
5
# This program is being developed under the "OpenDRIM" project.
6
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
7
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
9
# This program is free software; you can redistribute it and/or
10
# modify it under the terms of the GNU General Public License
11
# as published by the Free Software Foundation; version 2
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with this program; if not, write to the Free Software
21
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
#################################################################################
24
#################################################################################
25
# To contributors, please leave your contact information in this section
26
# AND comment your changes in the source code.
28
# Modified by <Author(s)>, <Affiliation>, <Year>
29
###############################################################################*/
31
#ifndef OPENDRIM_PHYSICALASSETCAPABILITIESTOPHYSICALELEMENT_H_
32
#define OPENDRIM_PHYSICALASSETCAPABILITIESTOPHYSICALELEMENT_H_
34
#include <Association.h>
36
// Direct Invocation includes, may have to be adjusted
38
#include "cmpiCIM_Capabilities.h"
39
#include "CIM_CapabilitiesAccess.h"
40
#include "cmpiCIM_ManagedElement.h"
41
#include "CIM_ManagedElementAccess.h"
44
const static char* OpenDRIM_PhysicalAssetCapabilitiesToPhysicalElement_classnames[] = {"OpenDRIM_PhysicalAssetCapabilitiesToPhysicalElement"};
45
static string OpenDRIM_PhysicalAssetCapabilitiesToPhysicalElement_NAMESPACE = _NAMESPACE;
46
const static string Capabilities_role = "Capabilities";
47
const static char* Capabilities_classnames[] = {"CIM_Capabilities"};
48
const static string Capabilities_NAMESPACE = _NAMESPACE;
50
const static string ManagedElement_role = "ManagedElement";
51
const static char* ManagedElement_classnames[] = {"CIM_ManagedElement"};
52
const static string ManagedElement_NAMESPACE = _NAMESPACE;
54
class OpenDRIM_PhysicalAssetCapabilitiesToPhysicalElement {
58
Objectpath ManagedElement;
59
bool ManagedElement_isNULL;
61
Objectpath Capabilities;
62
bool Capabilities_isNULL;
64
vector<unsigned short> Characteristics;
65
bool Characteristics_isNULL;
67
OpenDRIM_PhysicalAssetCapabilitiesToPhysicalElement() {
68
ManagedElement_isNULL = true;
69
Capabilities_isNULL = true;
70
Characteristics_isNULL = true;
73
~OpenDRIM_PhysicalAssetCapabilitiesToPhysicalElement() {}
75
string getKeys() const {
76
return CF_toLowCase(".ManagedElement=\"" + CF_quoteString(ManagedElement.toString()) + "\""".Capabilities=\"" + CF_quoteString(Capabilities.toString()) + "\"");
79
int getManagedElement(Objectpath& value) const {
80
if (ManagedElement_isNULL==true)
82
value = ManagedElement;
86
int setManagedElement(const Objectpath& newValue) {
87
ManagedElement = newValue;
88
ManagedElement.setNamespace(ManagedElement_NAMESPACE);
89
ManagedElement_isNULL = false;
93
int getCapabilities(Objectpath& value) const {
94
if (Capabilities_isNULL==true)
100
int setCapabilities(const Objectpath& newValue) {
101
Capabilities = newValue;
102
Capabilities.setNamespace(Capabilities_NAMESPACE);
103
Capabilities_isNULL = false;
107
int getCharacteristics(vector<unsigned short>& value) const {
108
if (Characteristics_isNULL==true)
110
value = Characteristics;
114
int setCharacteristics(const vector<unsigned short>& newValue) {
115
Characteristics = newValue;
116
Characteristics_isNULL = false;
122
#endif /*OPENDRIM_PHYSICALASSETCAPABILITIESTOPHYSICALELEMENT_H_*/