advgetopt/conf_file.cpp
/** \brief Check whether a parameter is defined.
 *
 * This function checks for the existance of a parameter. It is a good
 * idea to first check for the existance of a parameter since the
 * get_parameter() function may otherwise return an empty string and
 * you cannot know whether that empty string means that the parameter
 * was not defined or it was set to the empty string.
 *
 * \param[in] name  The name of the parameter to check.
 *
 * \return true if the parameter is defined, false otherwise.
 *
 * \sa get_parameter()
 * \sa set_parameter()
 */
\brief Check whether a parameter is defined.
This function checks for the existance of a parameter. It is a good
idea to first check for the existance of a parameter since the
get_parameter() function may otherwise return an empty string and
you cannot know whether that empty string means that the parameter
was not defined or it was set to the empty string.

\param[in] name  The name of the parameter to check.

\return true if the parameter is defined, false otherwise.


\ brief Check whether a parameter is defined . This function checks for the existance of a parameter . It is a good idea to first check for the existance of a parameter since the get_parameter () function may otherwise return an empty string and you cannot know whether that empty string means that the parameter was not defined or it was set to the empty string . \ param [ in ] name The name of the parameter to check . \ return true if the parameter is defined false otherwise .
bool conf_file::has_parameter(std::string name) const
{
    std::replace(name.begin(), name.end(), '_', '-');
    cppthread::guard lock(get_global_mutex());
    auto it(f_parameters.find(name));
    return it != f_parameters.end();
}
bool conf_file :: has_parameter ( std :: string name ) const { std :: replace ( name . begin ( ) , name . end ( ) , ' ' , ' ' ) ; cppthread :: guard lock ( get_global_mutex ( ) ) ; auto it ( f_parameters . find ( name ) ) ; return it != f_parameters . end ( ) ; }
\brief Check whether a parameter is defined.
\ brief Check whether a parameter is defined .