----------------------------------------------------------------------------- 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 -----------------------------------------------------------------------------
| 4971 | // Returns a copy of the string rather than a const ref for thread safety |
| 4972 | //----------------------------------------------------------------------------- |
| 4973 | string 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> |