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

Method GetNodeProductName

cpp/src/Driver.cpp:4973–4985  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get the product 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

4971// Returns a copy of the string rather than a const ref for thread safety
4972//-----------------------------------------------------------------------------
4973string Driver::GetNodeProductName
4974(
4975 uint8 const _nodeId
4976)
4977{
4978 LockGuard LG(m_nodeMutex);
4979 if( Node* node = GetNode( _nodeId ) )
4980 {
4981 return node->GetProductName();
4982 }
4983
4984 return "";
4985}
4986
4987//-----------------------------------------------------------------------------
4988// <Driver::GetNodeName>

Callers 1

mainFunction · 0.45

Calls 1

GetProductNameMethod · 0.45

Tested by

no test coverage detected