diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-03 14:07:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-03 14:07:56 +0200 |
commit | 9b3c2d9d25d9c0213ef0af58c285d2713a020c8b (patch) | |
tree | c270cbe2f4e80d21dd2191a26d1b93aeb4375773 /odb/options.cli | |
parent | 6aab653d6975b92c11eef1b56f025c11e6d8e612 (diff) |
Generated code infrastructure
Add prologue/epilogue support, version check, and pre/post inclusion.
Diffstat (limited to 'odb/options.cli')
-rw-r--r-- | odb/options.cli | 114 |
1 files changed, 114 insertions, 0 deletions
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<std::string> --hxx-prologue + { + "<text>", + "Insert <text> at the beginning of the generated C++ header file." + }; + + std::vector<std::string> --ixx-prologue + { + "<text>", + "Insert <text> at the beginning of the generated C++ inline file." + }; + + std::vector<std::string> --cxx-prologue + { + "<text>", + "Insert <text> at the beginning of the generated C++ source file." + }; + + std::vector<std::string> --sql-prologue + { + "<text>", + "Insert <text> at the beginning of the generated database schema file." + }; + + // Epilogues. + // + std::vector<std::string> --hxx-epilogue + { + "<text>", + "Insert <text> at the end of the generated C++ header file." + }; + + std::vector<std::string> --ixx-epilogue + { + "<text>", + "Insert <text> at the end of the generated C++ inline file." + }; + + std::vector<std::string> --cxx-epilogue + { + "<text>", + "Insert <text> at the end of the generated C++ source file." + }; + + std::vector<std::string> --sql-epilogue + { + "<text>", + "Insert <text> at the end of the generated database schema file." + }; + + // Prologue files. + // + std::string --hxx-prologue-file + { + "<file>", + "Insert the content of <file> at the beginning of the generated C++ + header file." + }; + + std::string --ixx-prologue-file + { + "<file>", + "Insert the content of <file> at the beginning of the generated C++ + inline file." + }; + + std::string --cxx-prologue-file + { + "<file>", + "Insert the content of <file> at the beginning of the generated C++ + source file." + }; + + std::string --sql-prologue-file + { + "<file>", + "Insert the content of <file> at the beginning of the generated + database schema file." + }; + + // Epilogue files. + // + std::string --hxx-epilogue-file + { + "<file>", + "Insert the content of <file> at the end of the generated C++ header + file." + }; + + std::string --ixx-epilogue-file + { + "<file>", + "Insert the content of <file> at the end of the generated C++ inline + file." + }; + + std::string --cxx-epilogue-file + { + "<file>", + "Insert the content of <file> at the end of the generated C++ source + file." + }; + + std::string --sql-epilogue-file + { + "<file>", + "Insert the content of <file> at the end of the generated database + schema file." + }; + + // Include options. + // bool --include-with-brackets { "Use angle brackets (<>) instead of quotes (\"\") in the generated |