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

Method GetNodeName

cpp/src/Driver.cpp:4992–5004  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get the user-editable name for the node with the specified ID Returns a copy of the string rather than a const ref for thread safety -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4990// Returns a copy of the string rather than a const ref for thread safety
4991//-----------------------------------------------------------------------------
4992string Driver::GetNodeName
4993(
4994 uint8 const _nodeId
4995)
4996{
4997 LockGuard LG(m_nodeMutex);
4998 if( Node* node = GetNode( _nodeId ) )
4999 {
5000 return node->GetNodeName();
5001 }
5002
5003 return "";
5004}
5005
5006//-----------------------------------------------------------------------------
5007// <Driver::GetNodeLocation>

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected