16 #ifndef dealii_base_parameter_acceptor_h 17 #define dealii_base_parameter_acceptor_h 19 #include <deal.II/base/config.h> 20 #include <deal.II/base/parameter_handler.h> 21 #include <deal.II/base/smartpointer.h> 22 #include <deal.II/base/logstream.h> 23 #include <deal.II/base/exceptions.h> 24 #include <boost/signals2/signal.hpp> 27 DEAL_II_NAMESPACE_OPEN
387 static void initialize(
const std::string &filename=
"",
388 const std::string &output_filename=
"",
401 static void initialize(std::istream &input_stream,
480 template <
class ParameterType>
482 ParameterType ¶meter,
483 const std::string &documentation = std::string(),
509 static std::vector<SmartPointer<ParameterAcceptor> >
class_list;
517 static const char sep =
'/';
577 template<
class SourceClass>
586 template<
typename... Args>
605 template<
class ParameterType>
607 ParameterType ¶meter,
608 const std::string &documentation,
619 template<
class SourceClass>
620 template<
typename... Args>
623 SourceClass(args...),
630 template<
class SourceClass>
633 SourceClass::declare_parameters(prm);
638 template<
class SourceClass>
641 SourceClass::parse_parameters(prm);
644 DEAL_II_NAMESPACE_CLOSE
const unsigned int acceptor_id
static void initialize(const std::string &filename="", const std::string &output_filename="", const ParameterHandler::OutputStyle output_style_for_prm_format=ParameterHandler::ShortText, ParameterHandler &prm=ParameterAcceptor::prm)
void enter_my_subsection(ParameterHandler &prm)
static void declare_all_parameters(ParameterHandler &prm=ParameterAcceptor::prm)
virtual void parse_parameters(ParameterHandler &prm)
void add_parameter(const std::string &entry, ParameterType ¶meter, const std::string &documentation=std::string(), ParameterHandler &prm_=prm, const Patterns::PatternBase &pattern= *Patterns::Tools::Convert< ParameterType >::to_pattern())
ParameterAcceptorProxy(const std::string section_name, Args... args)
ParameterAcceptor(const std::string §ion_name="")
virtual void declare_parameters(ParameterHandler &prm)
virtual void parse_parameters(ParameterHandler &prm)
boost::signals2::signal< void()> declare_parameters_call_back
static std::vector< SmartPointer< ParameterAcceptor > > class_list
std::string get_section_name() const
std::vector< std::string > get_section_path() const
virtual void declare_parameters(ParameterHandler &prm)
virtual ~ParameterAcceptor()
void add_parameter(const std::string &entry, ParameterType ¶meter, const std::string &documentation=std::string(), const Patterns::PatternBase &pattern= *Patterns::Tools::Convert< ParameterType >::to_pattern())
static ParameterHandler prm
static void parse_all_parameters(ParameterHandler &prm=ParameterAcceptor::prm)
const std::string section_name
void leave_my_subsection(ParameterHandler &prm)
boost::signals2::signal< void()> parse_parameters_call_back