More includes and some braces to build with gcc 4.3.0
[supertux.git] / tools / miniswig / create_docu.hpp
1 #ifndef __CREATE_DOCU_H__
2 #define __CREATE_DOCU_H__
3
4 #include "tree.hpp"
5 #include "xmlwriter.hpp"
6
7 class DocuCreator
8 {
9 public:
10     const char* ind;
11     std::ostream& out;
12     XmlWriter writer;
13
14     DocuCreator(std::ostream& _out = std::cout)
15         : out(_out), writer(out)
16     {
17         ind = "  ";
18     }
19
20     void create_docu(Namespace* ns);
21     void create_class_docu(Class* _class);
22     void create_function_docu(Class* _class, Function* function);
23     std::string get_type(const Type& type);
24 };
25
26 #endif