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

Method GetOptionType

cpp/src/Options.cpp:344–358  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get the type of value stored in an option. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

342// Get the type of value stored in an option.
343//-----------------------------------------------------------------------------
344Options::OptionType Options::GetOptionType
345(
346 string const& _name
347)
348{
349 Option* option = Find( _name );
350 if( option )
351 {
352 return option->m_type;
353 }
354
355 // Option not found
356 Log::Write( LogLevel_Warning, "Specified option [%s] was not found.", _name.c_str() );
357 return OptionType_Invalid;
358}
359
360//-----------------------------------------------------------------------------
361// <Options::Lock>

Callers

nothing calls this directly

Calls 2

WriteFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected