util/config.cc
/// Retrieve a string value from section/param and deposit it in value,
/// returning true.  If the section/path cannot be found then
/// value is unchanged and this function returns false. May throw.
/// 
Retrieve a string value from section/param and deposit it in value,
returning true.  If the section/path cannot be found then
value is unchanged and this function returns false. May throw.
Retrieve a string value from section / param and deposit it in value returning true . If the section / path cannot be found then value is unchanged and this function returns false . May throw .
bool Config::get_string(const char *section, const char *param,
                        std::string &value)
{
    const Json::Value &val=m_croot[section][param];
    if (val.isNull()) {
        return false;
    }
    value = val.asString();
    LOG_INFO(Lgr) << "Config " << section << "." << param << "=" << value;
    return true;
}
bool Config :: get_string ( const char * section , const char * param , std :: string & value ) { const Json :: Value & val = m_croot [ section ] [ param ] ; if ( val . isNull ( ) ) { return false ; } value = val . asString ( ) ; LOG_INFO ( Lgr ) << " " << section << " " << param << " " << value ; return true ; }
Retrieve a string value from section/param and deposit it in value,
returning true.
Retrieve a string value from section / param and deposit it in value returning true .