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.cli | 124 +++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 118 insertions(+), 6 deletions(-) (limited to 'cli/options.cli') diff --git a/cli/options.cli b/cli/options.cli index aef408e..ab7be1c 100644 --- a/cli/options.cli +++ b/cli/options.cli @@ -121,28 +121,140 @@ class options "Generate documentation in the HTML format." }; - std::string --man-prologue-file + // Prologues. + // + std::vector --hxx-prologue + { + "", + "Insert at the beginning of the generated C++ header file." + }; + + std::vector --ixx-prologue + { + "", + "Insert at the beginning of the generated C++ inline file." + }; + + std::vector --cxx-prologue + { + "", + "Insert at the beginning of the generated C++ source file." + }; + + std::vector --man-prologue + { + "", + "Insert at the beginning of the generated man page file." + }; + + std::vector --html-prologue + { + "", + "Insert at the beginning of the generated HTML file." + }; + + // Epilogues. + // + std::vector --hxx-epilogue + { + "", + "Insert at the end of the generated C++ header file." + }; + + std::vector --ixx-epilogue + { + "", + "Insert at the end of the generated C++ inline file." + }; + + std::vector --cxx-epilogue + { + "", + "Insert at the end of the generated C++ source file." + }; + + std::vector --man-epilogue + { + "", + "Insert at the end of the generated man page text." + }; + + std::vector --html-epilogue + { + "", + "Insert at the end of the generated HTML text." + }; + + // Prologue files. + // + std::string --hxx-prologue-file { "", - "Insert the content of at the beginning of the man page file." + "Insert the content of at the beginning of the generated C++ + header file." }; - std::string --man-epilogue-file + std::string --ixx-prologue-file + { + "", + "Insert the content of at the beginning of the generated C++ + inline file." + }; + + std::string --cxx-prologue-file { "", - "Insert the content of at the end of the man page file." + "Insert the content of at the beginning of the generated C++ + source file." + }; + + std::string --man-prologue-file + { + "", + "Insert the content of at the beginning of the generated man + page file." }; std::string --html-prologue-file { "", - "Insert the content of at the beginning of the HTML file." + "Insert the content of at the beginning of the generated HTML + file." + }; + + // Epilogue files. + // + std::string --hxx-epilogue-file + { + "", + "Insert the content of at the end of the generated C++ header + file." + }; + + std::string --ixx-epilogue-file + { + "", + "Insert the content of at the end of the generated C++ inline + file." + }; + + std::string --cxx-epilogue-file + { + "", + "Insert the content of at the end of the generated C++ source + file." + }; + + std::string --man-epilogue-file + { + "", + "Insert the content of at the end of the generated man page file." }; std::string --html-epilogue-file { "", - "Insert the content of at the end of the HTML file." + "Insert the content of at the end of the generated HTML file." }; std::vector --class -- cgit v1.1