From 9b3c2d9d25d9c0213ef0af58c285d2713a020c8b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 3 Aug 2010 14:07:56 +0200 Subject: Generated code infrastructure Add prologue/epilogue support, version check, and pre/post inclusion. --- odb/options.cli | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) (limited to 'odb/options.cli') diff --git a/odb/options.cli b/odb/options.cli index ebe65e5..6ac44e1 100644 --- a/odb/options.cli +++ b/odb/options.cli @@ -76,6 +76,120 @@ class options the generated database schema 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 --sql-prologue + { + "", + "Insert at the beginning of the generated database schema 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 --sql-epilogue + { + "", + "Insert at the end of the generated database schema file." + }; + + // Prologue files. + // + std::string --hxx-prologue-file + { + "", + "Insert the content of at the beginning of the generated C++ + header 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 beginning of the generated C++ + source file." + }; + + std::string --sql-prologue-file + { + "", + "Insert the content of at the beginning of the generated + database schema 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 --sql-epilogue-file + { + "", + "Insert the content of at the end of the generated database + schema file." + }; + + // Include options. + // bool --include-with-brackets { "Use angle brackets (<>) instead of quotes (\"\") in the generated -- cgit v1.1