17 : _cf( cf ), _sectname( sectname ), _found( false ), _flags( flags )
27 throw std::runtime_error(
"Mandatory section type '" +
_sectname +
28 "' not found in configuration file \"" +
_cf.
filename() +
"\"" );
const std::string & filename() const
bool matches(const ConfigElem &elem)
~ConfigSection() noexcept(false)
POL_NORETURN void throw_error(const std::string &errmsg) const
const unsigned CST_UNIQUE
AllowedTypesCont allowed_types_
virtual void display_error(const std::string &msg, bool show_curline=true, const ConfigElemBase *elem=NULL, bool error=true) const POL_OVERRIDE
bool type_is(const char *name) const
const unsigned CST_MANDATORY
ConfigSection(ConfigFile &cf, const std::string §name, unsigned flags=CST_MANDATORY|CST_UNIQUE)