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

Method GetOptionAsString

cpp/src/Options.cpp:323–338  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

321// Get the value of a string option.
322//-----------------------------------------------------------------------------
323bool Options::GetOptionAsString
324(
325 string const& _name,
326 string* o_value
327)
328{
329 Option* option = Find( _name );
330 if( o_value && option && ( OptionType_String == option->m_type ) )
331 {
332 *o_value = option->m_valueString;
333 return true;
334 }
335
336 Log::Write( LogLevel_Warning, "Specified option [%s] was not found.", _name.c_str() );
337 return false;
338}
339
340//-----------------------------------------------------------------------------
341// <Options::GetOptionType>

Callers 15

ReadXMLMethod · 0.80
GetMethod · 0.80
ReadXMLMethod · 0.80
ManagerMethod · 0.80
ShouldSecureCommandClassFunction · 0.80
ReadCacheMethod · 0.80
WriteCacheMethod · 0.80
SaveButtonsMethod · 0.80
ReadButtonsMethod · 0.80
GetNetworkKeyMethod · 0.80
isNetworkKeySetMethod · 0.80
refreshNodeConfigMethod · 0.80

Calls 2

WriteFunction · 0.85
c_strMethod · 0.45

Tested by 6

LoadProductXMLMethod · 0.64
checkConfigFilesMethod · 0.64
updateConfigFileMethod · 0.64
updateMFSConfigFileMethod · 0.64
LoadConfigXMLMethod · 0.64