Changeset 1165
- Timestamp:
- 11/20/08 15:24:33 (2 months ago)
- Files:
-
- Linux_Management_Providers/Base_Server/trunk (modified) (1 prop)
- Linux_Management_Providers/Base_Server/trunk/Common (modified) (1 prop)
- Linux_Management_Providers/Base_Server/trunk/Common/Base_Server_Common.cpp (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/Common/Base_Server_Common.h (modified) (3 diffs)
- Linux_Management_Providers/Base_Server/trunk/Common/Makefile.am (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/Makefile.am (modified) (3 diffs)
- Linux_Management_Providers/Base_Server/trunk/NEWS (modified) (1 diff)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystem (modified) (1 prop)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystem/Makefile.am (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystem/OpenDRIM_ComputerSystem.h (modified) (6 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystem/OpenDRIM_ComputerSystemAccess.cpp (modified) (8 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystem/OpenDRIM_ComputerSystemAccess.h (modified) (4 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystem/OpenDRIM_ComputerSystemProvider.cpp (modified) (11 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystem/cmpiOpenDRIM_ComputerSystem.cpp (modified) (6 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystem/cmpiOpenDRIM_ComputerSystem.h (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemCapabilities (modified) (1 prop)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemCapabilities/Makefile.am (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemCapabilities/OpenDRIM_ComputerSystemCapabilities.h (modified) (5 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemCapabilities/OpenDRIM_ComputerSystemCapabilitiesAccess.cpp (modified) (8 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemCapabilities/OpenDRIM_ComputerSystemCapabilitiesAccess.h (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemCapabilities/OpenDRIM_ComputerSystemCapabilitiesProvider.cpp (modified) (5 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemCapabilities/cmpiOpenDRIM_ComputerSystemCapabilities.cpp (modified) (3 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemCapabilities/cmpiOpenDRIM_ComputerSystemCapabilities.h (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemComputerSystemCapabilities (modified) (1 prop)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemComputerSystemCapabilities/Makefile.am (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemComputerSystemCapabilities/OpenDRIM_ComputerSystemComputerSystemCapabilities.h (modified) (4 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemComputerSystemCapabilities/OpenDRIM_ComputerSystemComputerSystemCapabilitiesAccess.cpp (modified) (12 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemComputerSystemCapabilities/OpenDRIM_ComputerSystemComputerSystemCapabilitiesAccess.h (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemComputerSystemCapabilities/OpenDRIM_ComputerSystemComputerSystemCapabilitiesProvider.cpp (modified) (3 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemComputerSystemCapabilities/assocOpenDRIM_ComputerSystemComputerSystemCapabilities.cpp (modified) (8 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemComputerSystemCapabilities/cmpiOpenDRIM_ComputerSystemComputerSystemCapabilities.cpp (modified) (3 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemConformsToProfile (modified) (1 prop)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemConformsToProfile/Makefile.am (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemConformsToProfile/OpenDRIM_ComputerSystemConformsToProfile.h (modified) (4 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemConformsToProfile/OpenDRIM_ComputerSystemConformsToProfileAccess.cpp (modified) (10 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemConformsToProfile/OpenDRIM_ComputerSystemConformsToProfileAccess.h (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemConformsToProfile/OpenDRIM_ComputerSystemConformsToProfileProvider.cpp (modified) (3 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemConformsToProfile/assocOpenDRIM_ComputerSystemConformsToProfile.cpp (modified) (8 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystemConformsToProfile/cmpiOpenDRIM_ComputerSystemConformsToProfile.cpp (modified) (3 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_RegisteredBaseServerProfile (modified) (1 prop)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_RegisteredBaseServerProfile/Makefile.am (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_RegisteredBaseServerProfile/OpenDRIM_RegisteredBaseServerProfile.h (modified) (6 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_RegisteredBaseServerProfile/OpenDRIM_RegisteredBaseServerProfileAccess.cpp (modified) (7 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_RegisteredBaseServerProfile/OpenDRIM_RegisteredBaseServerProfileAccess.h (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_RegisteredBaseServerProfile/OpenDRIM_RegisteredBaseServerProfileProvider.cpp (modified) (3 diffs)
- Linux_Management_Providers/Base_Server/trunk/OpenDRIM_RegisteredBaseServerProfile/cmpiOpenDRIM_RegisteredBaseServerProfile.cpp (modified) (6 diffs)
- Linux_Management_Providers/Base_Server/trunk/README (modified) (1 diff)
- Linux_Management_Providers/Base_Server/trunk/VERSION (modified) (1 diff)
- Linux_Management_Providers/Base_Server/trunk/acinclude.m4 (modified) (3 diffs)
- Linux_Management_Providers/Base_Server/trunk/configure.ac (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/mof/OpenDRIM_ComputerSystem.mof (modified) (1 diff)
- Linux_Management_Providers/Base_Server/trunk/mof/OpenDRIM_ComputerSystemCapabilities.mof (modified) (1 diff)
- Linux_Management_Providers/Base_Server/trunk/mof/OpenDRIM_ComputerSystemComputerSystemCapabilities.mof (modified) (1 diff)
- Linux_Management_Providers/Base_Server/trunk/packaging (added)
- Linux_Management_Providers/Base_Server/trunk/packaging/opendrim-lmp-baseserver.spec (added)
- Linux_Management_Providers/Base_Server/trunk/registration/Base_Server-remove.sh (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/registration/Base_Server.sh (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/registration/OpenDRIM_ComputerSystem-remove.sh (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/registration/OpenDRIM_ComputerSystem.sh (modified) (5 diffs)
- Linux_Management_Providers/Base_Server/trunk/registration/OpenDRIM_ComputerSystemCapabilities-remove.sh (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/registration/OpenDRIM_ComputerSystemCapabilities.sh (modified) (5 diffs)
- Linux_Management_Providers/Base_Server/trunk/registration/OpenDRIM_ComputerSystemComputerSystemCapabilities-remove.sh (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/registration/OpenDRIM_ComputerSystemComputerSystemCapabilities.sh (modified) (4 diffs)
- Linux_Management_Providers/Base_Server/trunk/registration/OpenDRIM_ComputerSystemConformsToProfile-remove.sh (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/registration/OpenDRIM_ComputerSystemConformsToProfile.sh (modified) (4 diffs)
- Linux_Management_Providers/Base_Server/trunk/registration/OpenDRIM_RegisteredBaseServerProfile-remove.sh (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/registration/OpenDRIM_RegisteredBaseServerProfile.sh (modified) (4 diffs)
- Linux_Management_Providers/Base_Server/trunk/test (modified) (1 prop)
- Linux_Management_Providers/Base_Server/trunk/test/Makefile.am (modified) (3 diffs)
- Linux_Management_Providers/Base_Server/trunk/test/testOpenDRIM_ComputerSystem.cpp (modified) (3 diffs)
- Linux_Management_Providers/Base_Server/trunk/test/testOpenDRIM_ComputerSystemCapabilities.cpp (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/test/testOpenDRIM_ComputerSystemComputerSystemCapabilities.cpp (modified) (3 diffs)
- Linux_Management_Providers/Base_Server/trunk/test/testOpenDRIM_ComputerSystemConformsToProfile.cpp (modified) (2 diffs)
- Linux_Management_Providers/Base_Server/trunk/test/testOpenDRIM_RegisteredBaseServerProfile.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Linux_Management_Providers/Base_Server/trunk
- Property svn:ignore changed from
autom4te.cache
aclocal.m4
config.h.in
configure
to
autom4te.cache
aclocal.m4
config.h.in
configure
config.h
config.guess
config.status
config.sub
depcomp
install-sh
libtool
ltmain.sh
Makefile
Makefile.in
missing
stamp-h1
.project
.cproject
- Property svn:ignore changed from
Linux_Management_Providers/Base_Server/trunk/Common
- Property svn:ignore set to
Makefile
Makefile.in
- Property svn:ignore set to
Linux_Management_Providers/Base_Server/trunk/Common/Base_Server_Common.cpp
r370 r1165 2 2 # Linux Management Providers (LMP), Base_Server provider package 3 3 # Copyright (C) 2007 Ilsoo Byun, ETRI <widepis@etri.re.kr ,widepis@empal.com> 4 # 4 # 5 5 # This program is being developed under the "OpenDRIM" project. 6 6 # The "OpenDRIM" project web page: www.opendrim.org 7 7 # The "OpenDRIM" project mailing list: opendrim@googlegroups.com 8 # 8 # 9 9 # This program is free software; you can redistribute it and/or 10 10 # modify it under the terms of the GNU General Public License 11 11 # as published by the Free Software Foundation; version 2 12 12 # of the License. 13 # 13 # 14 14 # This program is distributed in the hope that it will be useful, 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 17 # GNU General Public License for more details. 18 # 18 # 19 19 # You should have received a copy of the GNU General Public License 20 20 # along with this program; if not, write to the Free Software … … 25 25 # To contributors, please leave your contact information in this section 26 26 # AND comment your changes in the source code. 27 # 28 # Modified by <Author(s)>, <Affiliation>, <Year>27 # 28 # Modified by 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com> 29 29 ###############################################################################*/ 30 30 31 31 #include "Base_Server_Common.h" 32 33 int CF_getComputerSystemOtherIdentifyingInfo(string& otherIdentifyingInfo,string& errorMessage) 34 { 35 system_information system_info; 36 vector<string> dmi_strings; 37 UUID uuidTest; 38 string serial_number; 39 40 // The otherIdentifyingInfo is set to the system serial number as advised in the CIM Documentation 41 CF_assert(SMBIOS_getSystemInformation(system_info,dmi_strings,errorMessage)); 42 43 memset(&uuidTest,0xFF,sizeof(UUID)); 44 45 serial_number=CF_trimText(dmi_strings[system_info.serial_number]); 46 47 if(!serial_number.empty()) 48 otherIdentifyingInfo=serial_number; 49 else 50 otherIdentifyingInfo="computer-system-physical-package"; 51 52 return OK; 53 } 54 Linux_Management_Providers/Base_Server/trunk/Common/Base_Server_Common.h
r370 r1165 2 2 # Linux Management Providers (LMP), Base_Server provider package 3 3 # Copyright (C) 2007 Ilsoo Byun, ETRI <widepis@etri.re.kr ,widepis@empal.com> 4 # 4 # 5 5 # This program is being developed under the "OpenDRIM" project. 6 6 # The "OpenDRIM" project web page: www.opendrim.org 7 7 # The "OpenDRIM" project mailing list: opendrim@googlegroups.com 8 # 8 # 9 9 # This program is free software; you can redistribute it and/or 10 10 # modify it under the terms of the GNU General Public License 11 11 # as published by the Free Software Foundation; version 2 12 12 # of the License. 13 # 13 # 14 14 # This program is distributed in the hope that it will be useful, 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 17 # GNU General Public License for more details. 18 # 18 # 19 19 # You should have received a copy of the GNU General Public License 20 20 # along with this program; if not, write to the Free Software … … 25 25 # To contributors, please leave your contact information in this section 26 26 # AND comment your changes in the source code. 27 # 28 # Modified by <Author(s)>, <Affiliation>, <Year>27 # 28 # Modified by 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com> 29 29 ###############################################################################*/ 30 30 … … 33 33 34 34 #include <Common.h> 35 #include <SMBIOS.h> 36 37 // Define EnabledState Constants 38 #define ES_UNKNOWN 0 39 #define ES_ENABLE 2 40 #define ES_DISABLE 3 41 #define ES_NOT_APPLICABLE 5 42 #define ES_ENABLED_OFFLINE 6 43 44 // Define RequestedState Constants 45 #define RS_UNKNOWN 0 46 #define RS_NO_CHANGE 5 47 #define RS_NOT_APPLICABLE 12 48 49 // Define Dedicated Constants 50 #define D_UNKNOWN 1 51 #define D_OTHER 2 52 53 // Define HealthState Constants 54 #define HS_UNKNOWN 0 55 #define HS_OK 5 56 57 // Define OperationalStatus Constants 58 #define OS_UNKNOW 0 59 #define OS_OK 2 60 #define OS_IN_SERVICE 11 61 62 int CF_getComputerSystemOtherIdentifyingInfo(string& otherIdentifyingInfo,string& errorMessage); 35 63 36 64 #endif /*BASE_SERVER_COMMON_H_*/ Linux_Management_Providers/Base_Server/trunk/Common/Makefile.am
r766 r1165 26 26 # AND comment your changes in the source code. 27 27 # 28 # Modified by <Author(s)>, <Affiliation>, <Year>28 # Modified by 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com> 29 29 ################################################################################ 30 30 … … 35 35 libcmpiBase_Server_Common_la_SOURCES = Base_Server_Common.cpp 36 36 37 libcmpiBase_Server_Common_la_LDFLAGS = -avoid-version -Wl,--rpath -Wl,$(COMMONLIBDIR) 38 37 39 libcmpiBase_Server_Common_la_LIBADD = -lOpenDRIMCommon 38 libcmpiBase_Server_Common_la_LDFLAGS = -avoid-version -Wl,--rpath -Wl,$(COMMONLIBDIR)39 40 40 41 noinst_HEADERS = Base_Server_Common.h Linux_Management_Providers/Base_Server/trunk/Makefile.am
r766 r1165 26 26 # AND comment your changes in the source code. 27 27 # 28 # Modified by <Author(s)>, <Affiliation>, <Year>28 # Modified by 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com> 29 29 ################################################################################ 30 30 31 31 VENDOR = OpenDRIM 32 32 33 VERSION = 1.0.0 33 VERSION = $(shell cat ./VERSION) 34 35 APP_NAME = opendrim-lmp-baseserver 36 37 RPM_PACKAGE_DIR = packaging 38 39 PLATFORM = $(shell rpm --eval %_target_cpu) 40 41 WORKING_DIR = $(shell pwd) 34 42 35 43 SUBDIRS = Common OpenDRIM_ComputerSystem OpenDRIM_RegisteredBaseServerProfile OpenDRIM_ComputerSystemCapabilities OpenDRIM_ComputerSystemComputerSystemCapabilities OpenDRIM_ComputerSystemConformsToProfile test … … 44 52 make -C OpenDRIM_ComputerSystem install-strip 45 53 make -C OpenDRIM_RegisteredBaseServerProfile install-strip 46 make -C OpenDRIM_ComputerSystemCapabilities install-strip47 54 make -C OpenDRIM_ComputerSystemComputerSystemCapabilities install-strip 48 55 make -C OpenDRIM_ComputerSystemConformsToProfile install-strip 56 make -C OpenDRIM_ComputerSystemCapabilities install-strip 49 57 50 58 postinstall: … … 69 77 make -C test test-OpenDRIM_ComputerSystemCapabilities 70 78 79 pkg-src: 80 rm -rf packaging/$(APP_NAME)-$(VERSION) 81 rm -rf .tmp 82 mkdir .tmp 83 cp -r ./* .tmp/ 84 rm -rf ./tmp/packaging/ 85 mv .tmp packaging/$(APP_NAME)-$(VERSION) 86 tar --directory packaging -zcf packaging/$(APP_NAME)-$(VERSION).tar.gz $(APP_NAME)-$(VERSION) 87 rm -rf packaging/$(APP_NAME)-$(VERSION) 88 89 pkg-rpm: pkg-src 90 mkdir -p $(RPM_PACKAGE_DIR)/rpm/RPMS/$(PLATFORM) 91 mkdir -p $(RPM_PACKAGE_DIR)/rpm/SRPMS 92 mkdir -p $(RPM_PACKAGE_DIR)/rpm/BUILD 93 mkdir -p $(RPM_PACKAGE_DIR)/rpm/SOURCES 94 mkdir -p $(RPM_PACKAGE_DIR)/rpm/tmp 95 - rm -r $(RPM_PACKAGE_DIR)/rpm/BUILD/$(APP_NAME)-root 96 - rm -r $(RPM_PACKAGE_DIR)/rpm/RPMS/$(APP_NAME)-* 97 - rm -r $(RPM_PACKAGE_DIR)/rpm/SRPMS/$(APP_NAME)-* 98 - rm -r $(RPM_PACKAGE_DIR)/rpm/SOURCES/$(APP_NAME)-* 99 mv packaging/$(APP_NAME)-$(VERSION).tar.gz $(RPM_PACKAGE_DIR)/rpm/SOURCES/ 100 rpmbuild --define="_topdir $(WORKING_DIR)/$(RPM_PACKAGE_DIR)/rpm" --define="version $(VERSION)" -ba $(RPM_PACKAGE_DIR)/$(APP_NAME).spec 101 Linux_Management_Providers/Base_Server/trunk/NEWS
r370 r1165 1 Initial Release 1.0.0 1 Changes in 1.0.1 2 ========================= 3 4 Provider conformed to DMTF Base Server Profile 1.0.1 5 + Code update and fixes added 6 + RPM spec file added 7 + make pkg-src and pkg-rpm commands added 8 9 Changes in 1.0.0 2 10 ========================= 3 11 4 12 // TODO 5 13 6 Changes in Major.Minor.Revision 14 Initial Release 0.5.0 7 15 ========================= 8 16 Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystem
- Property svn:ignore set to
Makefile
Makefile.in
- Property svn:ignore set to
Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystem/Makefile.am
r766 r1165 26 26 # AND comment your changes in the source code. 27 27 # 28 # Modified by <Author(s)>, <Affiliation>, <Year>28 # Modified by 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com> 29 29 ################################################################################ 30 30 … … 35 35 libcmpiBase_Server_OpenDRIM_ComputerSystemProvider_la_SOURCES = OpenDRIM_ComputerSystemAccess.cpp OpenDRIM_ComputerSystemProvider.cpp cmpiOpenDRIM_ComputerSystem.cpp 36 36 37 libcmpiBase_Server_OpenDRIM_ComputerSystemProvider_la_LIBADD = -lOpenDRIMCommon../Common/libcmpiBase_Server_Common.la37 libcmpiBase_Server_OpenDRIM_ComputerSystemProvider_la_LIBADD = ../Common/libcmpiBase_Server_Common.la 38 38 39 39 libcmpiBase_Server_OpenDRIM_ComputerSystemProvider_la_LDFLAGS = -avoid-version -Wl,--rpath -Wl,$(COMMONLIBDIR) Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystem/OpenDRIM_ComputerSystem.h
r766 r1165 26 26 # AND comment your changes in the source code. 27 27 # 28 # Modified by <Author(s)>, <Affiliation>, <Year>28 # Modified by 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com> 29 29 ###############################################################################*/ 30 30 … … 41 41 public: 42 42 43 string Caption; 44 bool Caption_isNULL; 45 46 string Description; 47 bool Description_isNULL; 48 49 string ElementName; 50 bool ElementName_isNULL; 51 52 string InstallDate; 53 bool InstallDate_isNULL; 54 55 vector<unsigned short> OperationalStatus; 56 bool OperationalStatus_isNULL; 57 58 vector<string> StatusDescriptions; 59 bool StatusDescriptions_isNULL; 60 61 string Status; 62 bool Status_isNULL; 63 64 unsigned short HealthState; 65 bool HealthState_isNULL; 66 67 unsigned short PrimaryStatus; 68 bool PrimaryStatus_isNULL; 69 70 unsigned short DetailedStatus; 71 bool DetailedStatus_isNULL; 72 73 unsigned short OperatingStatus; 74 bool OperatingStatus_isNULL; 75 76 unsigned short CommunicationStatus; 77 bool CommunicationStatus_isNULL; 78 79 unsigned short EnabledState; 80 bool EnabledState_isNULL; 81 82 string OtherEnabledState; 83 bool OtherEnabledState_isNULL; 84 85 unsigned short RequestedState; 86 bool RequestedState_isNULL; 87 88 unsigned short EnabledDefault; 89 bool EnabledDefault_isNULL; 90 91 string TimeOfLastStateChange; 92 bool TimeOfLastStateChange_isNULL; 93 94 vector<unsigned short> AvailableRequestedStates; 95 bool AvailableRequestedStates_isNULL; 96 97 unsigned short TransitioningToState; 98 bool TransitioningToState_isNULL; 99 43 100 string CreationClassName; 44 101 bool CreationClassName_isNULL; … … 47 104 bool Name_isNULL; 48 105 49 string ElementName; 50 bool ElementName_isNULL; 106 string PrimaryOwnerName; 107 bool PrimaryOwnerName_isNULL; 108 109 string PrimaryOwnerContact; 110 bool PrimaryOwnerContact_isNULL; 111 112 vector<string> Roles; 113 bool Roles_isNULL; 114 115 vector<string> OtherIdentifyingInfo; 116 bool OtherIdentifyingInfo_isNULL; 117 118 vector<string> IdentifyingDescriptions; 119 bool IdentifyingDescriptions_isNULL; 51 120 52 121 string NameFormat; … … 59 128 bool OtherDedicatedDescriptions_isNULL; 60 129 130 unsigned short ResetCapability; 131 bool ResetCapability_isNULL; 132 133 vector<unsigned short> PowerManagementCapabilities; 134 bool PowerManagementCapabilities_isNULL; 135 61 136 OpenDRIM_ComputerSystem() { 137 Caption_isNULL = true; 138 Description_isNULL = true; 139 ElementName_isNULL = true; 140 InstallDate_isNULL = true; 141 OperationalStatus_isNULL = true; 142 StatusDescriptions_isNULL = true; 143 Status_isNULL = true; 144 HealthState_isNULL = true; 145 PrimaryStatus_isNULL = true; 146 DetailedStatus_isNULL = true; 147 OperatingStatus_isNULL = true; 148 CommunicationStatus_isNULL = true; 149 EnabledState_isNULL = true; 150 OtherEnabledState_isNULL = true; 151 RequestedState_isNULL = true; 152 EnabledDefault_isNULL = true; 153 TimeOfLastStateChange_isNULL = true; 154 AvailableRequestedStates_isNULL = true; 155 TransitioningToState_isNULL = true; 62 156 CreationClassName_isNULL = true; 63 157 Name_isNULL = true; 64 ElementName_isNULL = true; 158 PrimaryOwnerName_isNULL = true; 159 PrimaryOwnerContact_isNULL = true; 160 Roles_isNULL = true; 161 OtherIdentifyingInfo_isNULL = true; 162 IdentifyingDescriptions_isNULL = true; 65 163 NameFormat_isNULL = true; 66 164 Dedicated_isNULL = true; 67 165 OtherDedicatedDescriptions_isNULL = true; 166 ResetCapability_isNULL = true; 167 PowerManagementCapabilities_isNULL = true; 68 168 } 69 169 70 170 ~OpenDRIM_ComputerSystem() {} 171 172 string getKeys() const { 173 return CF_toLowCase(".CreationClassName=\"" + CF_quoteString(CreationClassName) + "\""".Name=\"" + CF_quoteString(Name) + "\""); 174 } 175 176 int getCaption(string& value) const { 177 if (Caption_isNULL==true) 178 return NOT_FOUND; 179 value = Caption; 180 return OK; 181 } 182 183 int setCaption(const string& newValue) { 184 Caption = newValue; 185 Caption_isNULL = false; 186 return OK; 187 } 188 189 int getDescription(string& value) const { 190 if (Description_isNULL==true) 191 return NOT_FOUND; 192 value = Description; 193 return OK; 194 } 195 196 int setDescription(const string& newValue) { 197 Description = newValue; 198 Description_isNULL = false; 199 return OK; 200 } 201 202 int getElementName(string& value) const { 203 if (ElementName_isNULL==true) 204 return NOT_FOUND; 205 value = ElementName; 206 return OK; 207 } 208 209 int setElementName(const string& newValue) { 210 ElementName = newValue; 211 ElementName_isNULL = false; 212 return OK; 213 } 214 215 int getInstallDate(string& value) const { 216 if (InstallDate_isNULL==true) 217 return NOT_FOUND; 218 value = InstallDate; 219 return OK; 220 } 221 222 int setInstallDate(const string& newValue) { 223 InstallDate = newValue; 224 InstallDate_isNULL = false; 225 return OK; 226 } 227 228 int getOperationalStatus(vector<unsigned short>& value) const { 229 if (OperationalStatus_isNULL==true) 230 return NOT_FOUND; 231 value = OperationalStatus; 232 return OK; 233 } 234 235 int setOperationalStatus(const vector<unsigned short>& newValue) { 236 OperationalStatus = newValue; 237 OperationalStatus_isNULL = false; 238 return OK; 239 } 240 241 int getStatusDescriptions(vector<string>& value) const { 242 if (StatusDescriptions_isNULL==true) 243 return NOT_FOUND; 244 value = StatusDescriptions; 245 return OK; 246 } 247 248 int setStatusDescriptions(const vector<string>& newValue) { 249 StatusDescriptions = newValue; 250 StatusDescriptions_isNULL = false; 251 return OK; 252 } 253 254 int getStatus(string& value) const { 255 if (Status_isNULL==true) 256 return NOT_FOUND; 257 value = Status; 258 return OK; 259 } 260 261 int setStatus(const string& newValue) { 262 Status = newValue; 263 Status_isNULL = false; 264 return OK; 265 } 266 267 int getHealthState(unsigned short& value) const { 268 if (HealthState_isNULL==true) 269 return NOT_FOUND; 270 value = HealthState; 271 return OK; 272 } 273 274 int setHealthState(const unsigned short& newValue) { 275 HealthState = newValue; 276 HealthState_isNULL = false; 277 return OK; 278 } 279 280 int getPrimaryStatus(unsigned short& value) const { 281 if (PrimaryStatus_isNULL==true) 282 return NOT_FOUND; 283 value = PrimaryStatus; 284 return OK; 285 } 286 287 int setPrimaryStatus(const unsigned short& newValue) { 288 PrimaryStatus = newValue; 289 PrimaryStatus_isNULL = false; 290 return OK; 291 } 292 293 int getDetailedStatus(unsigned short& value) const { 294 if (DetailedStatus_isNULL==true) 295 return NOT_FOUND; 296 value = DetailedStatus; 297 return OK; 298 } 299 300 int setDetailedStatus(const unsigned short& newValue) { 301 DetailedStatus = newValue; 302 DetailedStatus_isNULL = false; 303 return OK; 304 } 305 306 int getOperatingStatus(unsigned short& value) const { 307 if (OperatingStatus_isNULL==true) 308 return NOT_FOUND; 309 value = OperatingStatus; 310 return OK; 311 } 312 313 int setOperatingStatus(const unsigned short& newValue) { 314 OperatingStatus = newValue; 315 OperatingStatus_isNULL = false; 316 return OK; 317 } 318 319 int getCommunicationStatus(unsigned short& value) const { 320 if (CommunicationStatus_isNULL==true) 321 return NOT_FOUND; 322 value = CommunicationStatus; 323 return OK; 324 } 325 326 int setCommunicationStatus(const unsigned short& newValue) { 327 CommunicationStatus = newValue; 328 CommunicationStatus_isNULL = false; 329 return OK; 330 } 331 332 int getEnabledState(unsigned short& value) const { 333 if (EnabledState_isNULL==true) 334 return NOT_FOUND; 335 value = EnabledState; 336 return OK; 337 } 338 339 int setEnabledState(const unsigned short& newValue) { 340 EnabledState = newValue; 341 EnabledState_isNULL = false; 342 return OK; 343 } 344 345 int getOtherEnabledState(string& value) const { 346 if (OtherEnabledState_isNULL==true) 347 return NOT_FOUND; 348 value = OtherEnabledState; 349 return OK; 350 } 351 352 int setOtherEnabledState(const string& newValue) { 353 OtherEnabledState = newValue; 354 OtherEnabledState_isNULL = false; 355 return OK; 356 } 357 358 int getRequestedState(unsigned short& value) const { 359 if (RequestedState_isNULL==true) 360 return NOT_FOUND; 361 value = RequestedState; 362 return OK; 363 } 364 365 int setRequestedState(const unsigned short& newValue) { 366 RequestedState = newValue; 367 RequestedState_isNULL = false; 368 return OK; 369 } 370 371 int getEnabledDefault(unsigned short& value) const { 372 if (EnabledDefault_isNULL==true) 373 return NOT_FOUND; 374 value = EnabledDefault; 375 return OK; 376 } 377 378 int setEnabledDefault(const unsigned short& newValue) { 379 EnabledDefault = newValue; 380 EnabledDefault_isNULL = false; 381 return OK; 382 } 383 384 int getTimeOfLastStateChange(string& value) const { 385 if (TimeOfLastStateChange_isNULL==true) 386 return NOT_FOUND; 387 value = TimeOfLastStateChange; 388 return OK; 389 } 390 391 int setTimeOfLastStateChange(const string& newValue) { 392 TimeOfLastStateChange = newValue; 393 TimeOfLastStateChange_isNULL = false; 394 return OK; 395 } 396 397 int getAvailableRequestedStates(vector<unsigned short>& value) const { 398 if (AvailableRequestedStates_isNULL==true) 399 return NOT_FOUND; 400 value = AvailableRequestedStates; 401 return OK; 402 } 403 404 int setAvailableRequestedStates(const vector<unsigned short>& newValue) { 405 AvailableRequestedStates = newValue; 406 AvailableRequestedStates_isNULL = false; 407 return OK; 408 } 409 410 int getTransitioningToState(unsigned short& value) const { 411 if (TransitioningToState_isNULL==true) 412 return NOT_FOUND; 413 value = TransitioningToState; 414 return OK; 415 } 416 417 int setTransitioningToState(const unsigned short& newValue) { 418 TransitioningToState = newValue; 419 TransitioningToState_isNULL = false; 420 return OK; 421 } 71 422 72 423 int getCreationClassName(string& value) const { … … 96 447 } 97 448 98 int getElementName(string& value) const { 99 if (ElementName_isNULL==true) 100 return NOT_FOUND; 101 value = ElementName; 102 return OK; 103 } 104 105 int setElementName(const string& newValue) { 106 ElementName = newValue; 107 ElementName_isNULL = false; 449 int getPrimaryOwnerName(string& value) const { 450 if (PrimaryOwnerName_isNULL==true) 451 return NOT_FOUND; 452 value = PrimaryOwnerName; 453 return OK; 454 } 455 456 int setPrimaryOwnerName(const string& newValue) { 457 PrimaryOwnerName = newValue; 458 PrimaryOwnerName_isNULL = false; 459 return OK; 460 } 461 462 int getPrimaryOwnerContact(string& value) const { 463 if (PrimaryOwnerContact_isNULL==true) 464 return NOT_FOUND; 465 value = PrimaryOwnerContact; 466 return OK; 467 } 468 469 int setPrimaryOwnerContact(const string& newValue) { 470 PrimaryOwnerContact = newValue; 471 PrimaryOwnerContact_isNULL = false; 472 return OK; 473 } 474 475 int getRoles(vector<string>& value) const { 476 if (Roles_isNULL==true) 477 return NOT_FOUND; 478 value = Roles; 479 return OK; 480
