16 #ifndef dealii_base_parameter_acceptor_h 17 #define dealii_base_parameter_acceptor_h 19 #include <deal.II/base/config.h> 21 #include <deal.II/base/exceptions.h> 22 #include <deal.II/base/logstream.h> 23 #include <deal.II/base/parameter_handler.h> 24 #include <deal.II/base/smartpointer.h> 26 #include <boost/signals2/signal.hpp> 30 DEAL_II_NAMESPACE_OPEN
395 const std::string & output_filename =
"",
484 std::vector<std::string>
496 template <
class ParameterType>
499 ParameterType & parameter,
500 const std::string & documentation =
"",
528 static std::vector<SmartPointer<ParameterAcceptor>>
class_list;
536 static const char sep =
'/';
596 template <
class SourceClass>
605 template <
typename... Args>
626 template <
class ParameterType>
629 ParameterType & parameter,
630 const std::string & documentation,
641 template <
class SourceClass>
642 template <
typename... Args>
644 const std::string section_name,
646 : SourceClass(args...)
652 template <
class SourceClass>
656 SourceClass::declare_parameters(prm);
661 template <
class SourceClass>
665 SourceClass::parse_parameters(prm);
668 DEAL_II_NAMESPACE_CLOSE
const unsigned int acceptor_id
virtual void declare_parameters(ParameterHandler &prm) override
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)
virtual void parse_parameters(ParameterHandler &prm) override
ParameterAcceptorProxy(const std::string section_name, Args... args)
ParameterAcceptor(const std::string §ion_name="")
void add_parameter(const std::string &entry, ParameterType ¶meter, const std::string &documentation="", ParameterHandler &prm_=prm, const Patterns::PatternBase &pattern= *Patterns::Tools::Convert< ParameterType >::to_pattern())
boost::signals2::signal< void()> declare_parameters_call_back
static std::vector< SmartPointer< ParameterAcceptor > > class_list
void add_parameter(const std::string &entry, ParameterType ¶meter, const std::string &documentation="", const Patterns::PatternBase &pattern= *Patterns::Tools::Convert< ParameterType >::to_pattern())
virtual ~ParameterAcceptor() override
std::string get_section_name() const
std::vector< std::string > get_section_path() const
virtual void declare_parameters(ParameterHandler &prm)
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