----------------------------------------------------------------------------- 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 -----------------------------------------------------------------------------
| 4990 | // Returns a copy of the string rather than a const ref for thread safety |
| 4991 | //----------------------------------------------------------------------------- |
| 4992 | string 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> |