----------------------------------------------------------------------------- Get the ZWave+ DeviceType as a String -----------------------------------------------------------------------------
| 3822 | // Get the ZWave+ DeviceType as a String |
| 3823 | //----------------------------------------------------------------------------- |
| 3824 | string Node::GetDeviceTypeString() { |
| 3825 | |
| 3826 | if( !s_deviceClassesLoaded ) |
| 3827 | { |
| 3828 | ReadDeviceClasses(); |
| 3829 | } |
| 3830 | map<uint16,DeviceClass*>::iterator nit = s_deviceTypeClasses.find( m_deviceType ); |
| 3831 | if (nit != s_deviceTypeClasses.end()) |
| 3832 | { |
| 3833 | DeviceClass* deviceClass = nit->second; |
| 3834 | return deviceClass->GetLabel(); |
| 3835 | } |
| 3836 | return ""; |
| 3837 | } |
| 3838 | //----------------------------------------------------------------------------- |
| 3839 | // <Node::GetRoleTypeString> |
| 3840 | // Get the ZWave+ RoleType as a String |
no test coverage detected