From c61f197baddcd2e048a106a2026c72cadc452bcd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 20 Jun 2012 11:56:54 +0200 Subject: Add ability to specify prologues/epilogues for generated C++ files Also add options to specify text prologues/epilogues in addition to files for generated man and html files. --- cli/options.hxx | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 70 insertions(+), 3 deletions(-) (limited to 'cli/options.hxx') diff --git a/cli/options.hxx b/cli/options.hxx index c513e03..d3a9c5c 100644 --- a/cli/options.hxx +++ b/cli/options.hxx @@ -303,6 +303,9 @@ namespace cli std::deque args_; bool skip_; }; + + template + struct parser; } #include @@ -407,16 +410,64 @@ class options const bool& generate_html () const; + const std::vector& + hxx_prologue () const; + + const std::vector& + ixx_prologue () const; + + const std::vector& + cxx_prologue () const; + + const std::vector& + man_prologue () const; + + const std::vector& + html_prologue () const; + + const std::vector& + hxx_epilogue () const; + + const std::vector& + ixx_epilogue () const; + + const std::vector& + cxx_epilogue () const; + + const std::vector& + man_epilogue () const; + + const std::vector& + html_epilogue () const; + const std::string& - man_prologue_file () const; + hxx_prologue_file () const; const std::string& - man_epilogue_file () const; + ixx_prologue_file () const; + + const std::string& + cxx_prologue_file () const; + + const std::string& + man_prologue_file () const; const std::string& html_prologue_file () const; const std::string& + hxx_epilogue_file () const; + + const std::string& + ixx_epilogue_file () const; + + const std::string& + cxx_epilogue_file () const; + + const std::string& + man_epilogue_file () const; + + const std::string& html_epilogue_file () const; const std::vector& @@ -500,9 +551,25 @@ class options bool generate_cxx_; bool generate_man_; bool generate_html_; + std::vector hxx_prologue_; + std::vector ixx_prologue_; + std::vector cxx_prologue_; + std::vector man_prologue_; + std::vector html_prologue_; + std::vector hxx_epilogue_; + std::vector ixx_epilogue_; + std::vector cxx_epilogue_; + std::vector man_epilogue_; + std::vector html_epilogue_; + std::string hxx_prologue_file_; + std::string ixx_prologue_file_; + std::string cxx_prologue_file_; std::string man_prologue_file_; - std::string man_epilogue_file_; std::string html_prologue_file_; + std::string hxx_epilogue_file_; + std::string ixx_epilogue_file_; + std::string cxx_epilogue_file_; + std::string man_epilogue_file_; std::string html_epilogue_file_; std::vector class__; bool stdout__; -- cgit v1.1