#include <reports.hpp>
Classes | |
class | context |
struct | generator |
Public Types | |
using | generator_function = std::function< config(const reports::context &)> |
typedef std::map< std::string, std::shared_ptr< reports::generator > > | dynamic_report_generators |
Public Member Functions | |
void | register_generator (const std::string &name, generator *) |
config | generate_report (const std::string &name, const context &ct, bool only_static=false) |
const std::set< std::string > & | report_list () |
Private Attributes | |
std::set< std::string > | all_reports_ |
dynamic_report_generators | dynamic_generators_ |
Definition at line 45 of file reports.hpp.
typedef std::map<std::string, std::shared_ptr<reports::generator> > reports::dynamic_report_generators |
Definition at line 86 of file reports.hpp.
using reports::generator_function = std::function<config(const reports::context&)> |
Definition at line 84 of file reports.hpp.
config reports::generate_report | ( | const std::string & | name, |
const context & | ct, | ||
bool | only_static = false |
||
) |
Definition at line 1828 of file reports.cpp.
References dynamic_generators_, i, and static_generators.
Referenced by game_lua_kernel::impl_theme_item(), and display::refresh_report().
void reports::register_generator | ( | const std::string & | name, |
reports::generator * | g | ||
) |
Definition at line 1822 of file reports.cpp.
References all_reports_, dynamic_generators_, and g.
Referenced by game_lua_kernel::impl_theme_items_get(), and game_lua_kernel::impl_theme_items_set().
const std::set< std::string > & reports::report_list | ( | ) |
Definition at line 1842 of file reports.cpp.
References all_reports_, dynamic_generators_, and static_generators.
Referenced by game_lua_kernel::impl_theme_items_dir(), and game_display::layout().
|
private |
Definition at line 90 of file reports.hpp.
Referenced by register_generator(), and report_list().
|
private |
Definition at line 92 of file reports.hpp.
Referenced by generate_report(), register_generator(), and report_list().