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

Method GetNodeTypeString

cpp/src/Node.cpp:3859–3871  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3857// Get the ZWave+ NodeType as a String
3858//-----------------------------------------------------------------------------
3859string Node::GetNodeTypeString() {
3860 if( !s_deviceClassesLoaded )
3861 {
3862 ReadDeviceClasses();
3863 }
3864 map<uint8,DeviceClass*>::iterator nit = s_nodeTypes.find( m_nodeType );
3865 if (nit != s_nodeTypes.end())
3866 {
3867 DeviceClass* deviceClass = nit->second;
3868 return deviceClass->GetLabel();
3869 }
3870 return "";
3871}
3872
3873//-----------------------------------------------------------------------------
3874// <Node::GetRoleTypeString>

Callers 1

GetNodePlusTypeStringMethod · 0.80

Calls 3

findMethod · 0.80
endMethod · 0.45
GetLabelMethod · 0.45

Tested by

no test coverage detected