00001 /* $Id: reports.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */ 00002 /* 00003 Copyright (C) 2003 - 2012 by David White <dave@whitevine.net> 00004 Part of the Battle for Wesnoth Project http://www.wesnoth.org/ 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY. 00012 00013 See the COPYING file for more details. 00014 */ 00015 00016 #ifndef REPORTS_HPP_INCLUDED 00017 #define REPORTS_HPP_INCLUDED 00018 00019 #include "map_location.hpp" 00020 00021 //this module is responsible for outputting textual reports of 00022 //various game and unit statistics 00023 namespace reports { 00024 00025 struct generator 00026 { 00027 virtual config generate() = 0; 00028 virtual ~generator() {} 00029 }; 00030 00031 void reset_generators(); 00032 void register_generator(const std::string &name, generator *); 00033 00034 config generate_report(const std::string &name, bool only_static = false); 00035 00036 const std::set<std::string> &report_list(); 00037 } 00038 00039 #endif
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:08 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |