MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetOptionAsBool

Method GetOptionAsBool

cpp/src/Options.cpp:281–296  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get the value of a boolean option. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

279// Get the value of a boolean option.
280//-----------------------------------------------------------------------------
281bool Options::GetOptionAsBool
282(
283 string const& _name,
284 bool* o_value
285)
286{
287 Option* option = Find( _name );
288 if( o_value && option && ( OptionType_Bool == option->m_type ) )
289 {
290 *o_value = option->m_valueBool;
291 return true;
292 }
293
294 Log::Write( LogLevel_Warning, "Specified option [%s] was not found.", _name.c_str() );
295 return false;
296}
297
298//-----------------------------------------------------------------------------
299// <Options::GetOptionAsInt>

Callers 13

OnGroupChangedMethod · 0.80
ManagerMethod · 0.80
GetValueLabelMethod · 0.80
DriverMethod · 0.80
~DriverMethod · 0.80
processConfigRevisionMethod · 0.80
AutoAssociateMethod · 0.80
WakeUpMethod · 0.80
UserCodeMethod · 0.80
HandleMsgMethod · 0.80

Calls 2

WriteFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected