fix indention
This commit is contained in:
parent
adc5eca399
commit
368a4ab284
1 changed files with 33 additions and 32 deletions
|
@ -40,12 +40,13 @@ namespace events {
|
|||
class mouse_handler;
|
||||
}
|
||||
|
||||
class reports {
|
||||
public:
|
||||
|
||||
class context
|
||||
class reports
|
||||
{
|
||||
public:
|
||||
|
||||
class context
|
||||
{
|
||||
public:
|
||||
context(const display_context & dc, display & disp, const tod_manager & tod, boost::shared_ptr<wb::manager> wb, boost::optional<events::mouse_handler &> mhb) : dc_(dc), disp_(disp), tod_(tod), wb_(wb), mhb_(mhb) {}
|
||||
|
||||
const std::vector<team> & teams() { return dc_.teams(); }
|
||||
|
@ -58,35 +59,35 @@ public:
|
|||
boost::shared_ptr<wb::manager> wb() { return wb_; }
|
||||
boost::optional<events::mouse_handler&> mhb() { return mhb_; }
|
||||
|
||||
private:
|
||||
private:
|
||||
const display_context & dc_;
|
||||
display & disp_;
|
||||
const tod_manager & tod_;
|
||||
boost::shared_ptr<wb::manager> wb_;
|
||||
boost::optional<events::mouse_handler&> mhb_;
|
||||
};
|
||||
};
|
||||
|
||||
struct generator
|
||||
{
|
||||
struct generator
|
||||
{
|
||||
virtual config generate(context & ct) = 0;
|
||||
virtual ~generator() {}
|
||||
};
|
||||
};
|
||||
|
||||
void register_generator(const std::string &name, generator *);
|
||||
void register_generator(const std::string &name, generator *);
|
||||
|
||||
config generate_report(const std::string &name, context & ct, bool only_static = false);
|
||||
config generate_report(const std::string &name, context & ct, bool only_static = false);
|
||||
|
||||
const std::set<std::string> &report_list();
|
||||
const std::set<std::string> &report_list();
|
||||
|
||||
|
||||
typedef config (*generator_function)(reports::context & );
|
||||
typedef std::map<std::string, boost::shared_ptr<reports::generator> > dynamic_report_generators;
|
||||
typedef config (*generator_function)(reports::context & );
|
||||
typedef std::map<std::string, boost::shared_ptr<reports::generator> > dynamic_report_generators;
|
||||
|
||||
private:
|
||||
|
||||
std::set<std::string> all_reports_;
|
||||
std::set<std::string> all_reports_;
|
||||
|
||||
dynamic_report_generators dynamic_generators_;
|
||||
dynamic_report_generators dynamic_generators_;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue