MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetDeviceTypeString

Method GetDeviceTypeString

cpp/src/Node.cpp:3824–3837  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get the ZWave+ DeviceType as a String -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3822// Get the ZWave+ DeviceType as a String
3823//-----------------------------------------------------------------------------
3824string Node::GetDeviceTypeString() {
3825
3826 if( !s_deviceClassesLoaded )
3827 {
3828 ReadDeviceClasses();
3829 }
3830 map<uint16,DeviceClass*>::iterator nit = s_deviceTypeClasses.find( m_deviceType );
3831 if (nit != s_deviceTypeClasses.end())
3832 {
3833 DeviceClass* deviceClass = nit->second;
3834 return deviceClass->GetLabel();
3835 }
3836 return "";
3837}
3838//-----------------------------------------------------------------------------
3839// <Node::GetRoleTypeString>
3840// Get the ZWave+ RoleType as a String

Callers 1

Calls 3

findMethod · 0.80
endMethod · 0.45
GetLabelMethod · 0.45

Tested by

no test coverage detected