advgetopt/conf_file.cpp
/** \brief Get a list of sections.
 *
 * This function returns a copy of the list of sections defined in
 * this configuration file. In most cases, you should not need this
 * function since you are expected to know what parameters may be
 * defined. There are times though when it can be very practical.
 * For example, the options_config.cpp makes use of it since each
 * section is a parameter which we do not know the name of until
 * we have access to this array of sections.
 *
 * \note
 * We return a list because in a multithread environment another thread
 * may decide to make changes to the list of parameters which has the
 * side effect of eventually adding a section.
 *
 * \return A copy of the list of sections.
 */
\brief Get a list of sections.
This function returns a copy of the list of sections defined in
this configuration file. In most cases, you should not need this
function since you are expected to know what parameters may be
defined. There are times though when it can be very practical.
For example, the options_config.cpp makes use of it since each
section is a parameter which we do not know the name of until
we have access to this array of sections.

\note
We return a list because in a multithread environment another thread
may decide to make changes to the list of parameters which has the
side effect of eventually adding a section.

\return A copy of the list of sections.
\ brief Get a list of sections . This function returns a copy of the list of sections defined in this configuration file . In most cases you should not need this function since you are expected to know what parameters may be defined . There are times though when it can be very practical . For example the options_config . cpp makes use of it since each section is a parameter which we do not know the name of until we have access to this array of sections . \ note We return a list because in a multithread environment another thread may decide to make changes to the list of parameters which has the side effect of eventually adding a section . \ return A copy of the list of sections .
conf_file::sections_t conf_file::get_sections() const
{
    cppthread::guard lock(get_global_mutex());
    return f_sections;
}
conf_file :: sections_t conf_file :: get_sections ( ) const { cppthread :: guard lock ( get_global_mutex ( ) ) ; return f_sections ; }
\brief Get a list of sections.
\ brief Get a list of sections .