create_docu.hpp 608 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __CREATE_DOCU_H__
  2. #define __CREATE_DOCU_H__
  3. #include "tree.hpp"
  4. #include "xmlwriter.hpp"
  5. class DocuCreator
  6. {
  7. public:
  8. const char* ind;
  9. std::ostream& out;
  10. XmlWriter writer;
  11. DocuCreator(std::ostream& _out = std::cout) :
  12. ind(" "),
  13. out(_out),
  14. writer(out)
  15. { }
  16. void create_docu(Namespace* ns);
  17. void create_class_docu(Class* _class);
  18. void create_function_docu(Class* _class, Function* function);
  19. std::string get_type(const Type& type);
  20. private:
  21. DocuCreator(const DocuCreator&);
  22. DocuCreator& operator=(const DocuCreator&);
  23. };
  24. #endif