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

Method GetNodeLocation

cpp/src/Driver.cpp:5011–5023  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

5009// Returns a copy of the string rather than a const ref for thread safety
5010//-----------------------------------------------------------------------------
5011string Driver::GetNodeLocation
5012(
5013 uint8 const _nodeId
5014)
5015{
5016 LockGuard LG(m_nodeMutex);
5017 if( Node* node = GetNode( _nodeId ) )
5018 {
5019 return node->GetLocation();
5020 }
5021
5022 return "";
5023}
5024
5025//-----------------------------------------------------------------------------
5026// <Driver::GetNodeManufacturerId>

Callers

nothing calls this directly

Calls 1

GetLocationMethod · 0.80

Tested by

no test coverage detected