1 #ifndef WIBBLE_COMMANDLINE_DOC_H
2 #define WIBBLE_COMMANDLINE_DOC_H
10 namespace commandline {
21 DocMaker(
const std::string& app,
const std::string& ver)
31 Help(
const std::string& app,
const std::string& ver)
50 Hook(
const std::string& section,
where placement,
const std::string& text)
51 : section(section), placement(placement), text(text) {}
57 std::vector<Hook> hooks;
58 std::string lastSection;
60 void outputParagraph(std::ostream& out,
const std::string& str);
61 void outputOption(std::ostream& out,
const Option* o);
62 void outputOptions(std::ostream& out,
const Engine& p);
63 void runHooks(std::ostream& out,
const std::string& section,
where where);
64 void startSection(std::ostream& out,
const std::string& name);
65 void endSection(std::ostream& out);
69 Manpage(
const std::string& app,
const std::string& ver,
int section,
const std::string& author)
70 :
DocMaker(app, ver), m_section(section), m_author(author) {}
72 void addHook(
const std::string& section,
where placement,
const std::string& text)
74 hooks.push_back(Hook(section, placement, text));