summaryrefslogtreecommitdiff
path: root/cli/options.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-06-20 11:56:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-06-20 11:56:54 +0200
commitc61f197baddcd2e048a106a2026c72cadc452bcd (patch)
treeeb18be841b6727a1fdaa05d44a96d9935d38b31f /cli/options.hxx
parent07eb1add3c500ca4c53d499340bf5d524e288b39 (diff)
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.
Diffstat (limited to 'cli/options.hxx')
-rw-r--r--cli/options.hxx73
1 files changed, 70 insertions, 3 deletions
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<std::string> args_;
bool skip_;
};
+
+ template <typename X>
+ struct parser;
}
#include <map>
@@ -407,16 +410,64 @@ class options
const bool&
generate_html () const;
+ const std::vector<std::string>&
+ hxx_prologue () const;
+
+ const std::vector<std::string>&
+ ixx_prologue () const;
+
+ const std::vector<std::string>&
+ cxx_prologue () const;
+
+ const std::vector<std::string>&
+ man_prologue () const;
+
+ const std::vector<std::string>&
+ html_prologue () const;
+
+ const std::vector<std::string>&
+ hxx_epilogue () const;
+
+ const std::vector<std::string>&
+ ixx_epilogue () const;
+
+ const std::vector<std::string>&
+ cxx_epilogue () const;
+
+ const std::vector<std::string>&
+ man_epilogue () const;
+
+ const std::vector<std::string>&
+ 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<std::string>&
@@ -500,9 +551,25 @@ class options
bool generate_cxx_;
bool generate_man_;
bool generate_html_;
+ std::vector<std::string> hxx_prologue_;
+ std::vector<std::string> ixx_prologue_;
+ std::vector<std::string> cxx_prologue_;
+ std::vector<std::string> man_prologue_;
+ std::vector<std::string> html_prologue_;
+ std::vector<std::string> hxx_epilogue_;
+ std::vector<std::string> ixx_epilogue_;
+ std::vector<std::string> cxx_epilogue_;
+ std::vector<std::string> man_epilogue_;
+ std::vector<std::string> 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<std::string> class__;
bool stdout__;