The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
reports Class Reference

#include <reports.hpp>

Classes

class  context
 
struct  generator
 

Public Types

typedef config(* generator_function )(reports::context &)
 
typedef std::map< std::string,
boost::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, context &ct, bool only_static=false)
 
const std::set< std::string > & report_list ()
 

Private Attributes

std::set< std::stringall_reports_
 
dynamic_report_generators dynamic_generators_
 

Detailed Description

Definition at line 43 of file reports.hpp.

Member Typedef Documentation

Definition at line 84 of file reports.hpp.

typedef config(* reports::generator_function)(reports::context &)

Definition at line 83 of file reports.hpp.

Member Function Documentation

config reports::generate_report ( const std::string name,
reports::context rc,
bool  only_static = false 
)

Definition at line 1569 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 
)
const std::set< std::string > & reports::report_list ( )

Definition at line 1582 of file reports.cpp.

References all_reports_, dynamic_generators_, and static_generators.

Referenced by game_display::draw_sidebar().

Member Data Documentation

std::set<std::string> reports::all_reports_
private

Definition at line 88 of file reports.hpp.

Referenced by report_list().

dynamic_report_generators reports::dynamic_generators_
private

Definition at line 90 of file reports.hpp.

Referenced by generate_report(), register_generator(), and report_list().


The documentation for this class was generated from the following files: