| 263 | } |
| 264 | |
| 265 | bool CompatOptionManager::GetFlagBool |
| 266 | ( |
| 267 | CompatOptionFlags const flag |
| 268 | ) const |
| 269 | { |
| 270 | if (m_CompatVals.count(flag) == 0) |
| 271 | { |
| 272 | Log::Write(LogLevel_Warning, m_owner->GetNodeId(), "GetFlagBool: (%s) - Flag %s Not Enabled!", m_owner->GetCommandClassName().c_str(), GetFlagName(flag).c_str()); |
| 273 | return false; |
| 274 | } |
| 275 | if (m_CompatVals.at(flag).type != COMPAT_FLAG_TYPE_BOOL) |
| 276 | { |
| 277 | Log::Write(LogLevel_Warning, m_owner->GetNodeId(), "GetFlagBool: (%s) - Flag %s Not a Boolean Value!", m_owner->GetCommandClassName().c_str(), GetFlagName(flag).c_str()); |
| 278 | return false; |
| 279 | } |
| 280 | return m_CompatVals.at(flag).valBool; |
| 281 | } |
| 282 | |
| 283 | uint8_t CompatOptionManager::GetFlagByte |
| 284 | ( |