Added some build rules for miniswig and the wrapper file
[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         ind("  "),
16         out(_out), 
17         writer(out)
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 private:
26     DocuCreator(const DocuCreator&);
27     DocuCreator& operator=(const DocuCreator&);
28 };
29
30 #endif