util/config.cc
/// Retrieve a bool value from section/param and deposit it in value,
/// returning true.  If the section/path cannot be found then
/// do not change value but return false.  May throw.
/// 
Retrieve a bool value from section/param and deposit it in value,
returning true.  If the section/path cannot be found then
do not change value but return false.  May throw.
Retrieve a bool value from section / param and deposit it in value returning true . If the section / path cannot be found then do not change value but return false . May throw .
bool Config::get_bool(const char *section, const char *param, bool &value)
{
    const Json::Value &val=m_croot[section][param];
    if (val.isNull()) {
        return false;
    }
    value = val.asBool();
    LOG_INFO(Lgr) << "Config " << section << "." << param << "="
                  << (value ? "true" : "false");
    return true;
}
bool Config :: get_bool ( const char * section , const char * param , bool & value ) { const Json :: Value & val = m_croot [ section ] [ param ] ; if ( val . isNull ( ) ) { return false ; } value = val . asBool ( ) ; LOG_INFO ( Lgr ) << " " << section << " " << param << " " << ( value ? " " : " " ) ; return true ; }
Retrieve a bool value from section/param and deposit it in value,
returning true.
Retrieve a bool value from section / param and deposit it in value returning true .