| 129 | return( (Get().m_supportedCommandClasses[_commandClassId>>5] & (1u<<(_commandClassId&0x1f))) != 0 ); |
| 130 | } |
| 131 | string CommandClasses::GetName |
| 132 | ( |
| 133 | uint8 const _commandClassId |
| 134 | ) |
| 135 | { |
| 136 | for (std::map<string,uint8>::iterator it = Get().m_namesToIDs.begin(); it != Get().m_namesToIDs.end(); it++) { |
| 137 | if (it->second == _commandClassId) |
| 138 | return it->first; |
| 139 | } |
| 140 | return string("Unknown"); |
| 141 | } |
| 142 | //----------------------------------------------------------------------------- |
| 143 | // <CommandClasses::Register> |
| 144 | // Static method to register a command class creator method |
no test coverage detected