From efa2666ada7fcc7679ee8b6031d71855f46e5c6d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 8 Sep 2022 16:26:08 +0300 Subject: Use ad hoc recipes to compile options.cli file --- odb/options.cxx | 3984 ------------------------------------------------------- 1 file changed, 3984 deletions(-) delete mode 100644 odb/options.cxx (limited to 'odb/options.cxx') diff --git a/odb/options.cxx b/odb/options.cxx deleted file mode 100644 index 93335d2..0000000 --- a/odb/options.cxx +++ /dev/null @@ -1,3984 +0,0 @@ -// -*- C++ -*- -// -// This file was generated by CLI, a command line interface -// compiler for C++. -// - -// Begin prologue. -// -#include -// -// End prologue. - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace cli -{ - // unknown_option - // - unknown_option:: - ~unknown_option () throw () - { - } - - void unknown_option:: - print (::std::ostream& os) const - { - os << "unknown option '" << option ().c_str () << "'"; - } - - const char* unknown_option:: - what () const throw () - { - return "unknown option"; - } - - // unknown_argument - // - unknown_argument:: - ~unknown_argument () throw () - { - } - - void unknown_argument:: - print (::std::ostream& os) const - { - os << "unknown argument '" << argument ().c_str () << "'"; - } - - const char* unknown_argument:: - what () const throw () - { - return "unknown argument"; - } - - // missing_value - // - missing_value:: - ~missing_value () throw () - { - } - - void missing_value:: - print (::std::ostream& os) const - { - os << "missing value for option '" << option ().c_str () << "'"; - } - - const char* missing_value:: - what () const throw () - { - return "missing option value"; - } - - // invalid_value - // - invalid_value:: - ~invalid_value () throw () - { - } - - void invalid_value:: - print (::std::ostream& os) const - { - os << "invalid value '" << value ().c_str () << "' for option '" - << option ().c_str () << "'"; - - if (!message ().empty ()) - os << ": " << message ().c_str (); - } - - const char* invalid_value:: - what () const throw () - { - return "invalid option value"; - } - - // eos_reached - // - void eos_reached:: - print (::std::ostream& os) const - { - os << what (); - } - - const char* eos_reached:: - what () const throw () - { - return "end of argument stream reached"; - } - - // file_io_failure - // - file_io_failure:: - ~file_io_failure () throw () - { - } - - void file_io_failure:: - print (::std::ostream& os) const - { - os << "unable to open file '" << file ().c_str () << "' or read failure"; - } - - const char* file_io_failure:: - what () const throw () - { - return "unable to open file or read failure"; - } - - // unmatched_quote - // - unmatched_quote:: - ~unmatched_quote () throw () - { - } - - void unmatched_quote:: - print (::std::ostream& os) const - { - os << "unmatched quote in argument '" << argument ().c_str () << "'"; - } - - const char* unmatched_quote:: - what () const throw () - { - return "unmatched quote"; - } - - // scanner - // - scanner:: - ~scanner () - { - } - - // argv_scanner - // - bool argv_scanner:: - more () - { - return i_ < argc_; - } - - const char* argv_scanner:: - peek () - { - if (i_ < argc_) - return argv_[i_]; - else - throw eos_reached (); - } - - const char* argv_scanner:: - next () - { - if (i_ < argc_) - { - const char* r (argv_[i_]); - - if (erase_) - { - for (int i (i_ + 1); i < argc_; ++i) - argv_[i - 1] = argv_[i]; - - --argc_; - argv_[argc_] = 0; - } - else - ++i_; - - ++start_position_; - return r; - } - else - throw eos_reached (); - } - - void argv_scanner:: - skip () - { - if (i_ < argc_) - { - ++i_; - ++start_position_; - } - else - throw eos_reached (); - } - - std::size_t argv_scanner:: - position () - { - return start_position_; - } - - // argv_file_scanner - // - int argv_file_scanner::zero_argc_ = 0; - std::string argv_file_scanner::empty_string_; - - bool argv_file_scanner:: - more () - { - if (!args_.empty ()) - return true; - - while (base::more ()) - { - // See if the next argument is the file option. - // - const char* a (base::peek ()); - const option_info* oi = 0; - const char* ov = 0; - - if (!skip_) - { - if ((oi = find (a)) != 0) - { - base::next (); - - if (!base::more ()) - throw missing_value (a); - - ov = base::next (); - } - else if (std::strncmp (a, "-", 1) == 0) - { - if ((ov = std::strchr (a, '=')) != 0) - { - std::string o (a, 0, ov - a); - if ((oi = find (o.c_str ())) != 0) - { - base::next (); - ++ov; - } - } - } - } - - if (oi != 0) - { - if (oi->search_func != 0) - { - std::string f (oi->search_func (ov, oi->arg)); - - if (!f.empty ()) - load (f); - } - else - load (ov); - - if (!args_.empty ()) - return true; - } - else - { - if (!skip_) - skip_ = (std::strcmp (a, "--") == 0); - - return true; - } - } - - return false; - } - - const char* argv_file_scanner:: - peek () - { - if (!more ()) - throw eos_reached (); - - return args_.empty () ? base::peek () : args_.front ().value.c_str (); - } - - const std::string& argv_file_scanner:: - peek_file () - { - if (!more ()) - throw eos_reached (); - - return args_.empty () ? empty_string_ : *args_.front ().file; - } - - std::size_t argv_file_scanner:: - peek_line () - { - if (!more ()) - throw eos_reached (); - - return args_.empty () ? 0 : args_.front ().line; - } - - const char* argv_file_scanner:: - next () - { - if (!more ()) - throw eos_reached (); - - if (args_.empty ()) - return base::next (); - else - { - hold_[i_ == 0 ? ++i_ : --i_].swap (args_.front ().value); - args_.pop_front (); - ++start_position_; - return hold_[i_].c_str (); - } - } - - void argv_file_scanner:: - skip () - { - if (!more ()) - throw eos_reached (); - - if (args_.empty ()) - return base::skip (); - else - { - args_.pop_front (); - ++start_position_; - } - } - - const argv_file_scanner::option_info* argv_file_scanner:: - find (const char* a) const - { - for (std::size_t i (0); i < options_count_; ++i) - if (std::strcmp (a, options_[i].option) == 0) - return &options_[i]; - - return 0; - } - - std::size_t argv_file_scanner:: - position () - { - return start_position_; - } - - void argv_file_scanner:: - load (const std::string& file) - { - using namespace std; - - ifstream is (file.c_str ()); - - if (!is.is_open ()) - throw file_io_failure (file); - - files_.push_back (file); - - arg a; - a.file = &*files_.rbegin (); - - for (a.line = 1; !is.eof (); ++a.line) - { - string line; - getline (is, line); - - if (is.fail () && !is.eof ()) - throw file_io_failure (file); - - string::size_type n (line.size ()); - - // Trim the line from leading and trailing whitespaces. - // - if (n != 0) - { - const char* f (line.c_str ()); - const char* l (f + n); - - const char* of (f); - while (f < l && (*f == ' ' || *f == '\t' || *f == '\r')) - ++f; - - --l; - - const char* ol (l); - while (l > f && (*l == ' ' || *l == '\t' || *l == '\r')) - --l; - - if (f != of || l != ol) - line = f <= l ? string (f, l - f + 1) : string (); - } - - // Ignore empty lines, those that start with #. - // - if (line.empty () || line[0] == '#') - continue; - - string::size_type p (string::npos); - if (line.compare (0, 1, "-") == 0) - { - p = line.find (' '); - - string::size_type q (line.find ('=')); - if (q != string::npos && q < p) - p = q; - } - - string s1; - if (p != string::npos) - { - s1.assign (line, 0, p); - - // Skip leading whitespaces in the argument. - // - if (line[p] == '=') - ++p; - else - { - n = line.size (); - for (++p; p < n; ++p) - { - char c (line[p]); - if (c != ' ' && c != '\t' && c != '\r') - break; - } - } - } - else if (!skip_) - skip_ = (line == "--"); - - string s2 (line, p != string::npos ? p : 0); - - // If the string (which is an option value or argument) is - // wrapped in quotes, remove them. - // - n = s2.size (); - char cf (s2[0]), cl (s2[n - 1]); - - if (cf == '"' || cf == '\'' || cl == '"' || cl == '\'') - { - if (n == 1 || cf != cl) - throw unmatched_quote (s2); - - s2 = string (s2, 1, n - 2); - } - - if (!s1.empty ()) - { - // See if this is another file option. - // - const option_info* oi; - if (!skip_ && (oi = find (s1.c_str ()))) - { - if (s2.empty ()) - throw missing_value (oi->option); - - if (oi->search_func != 0) - { - string f (oi->search_func (s2.c_str (), oi->arg)); - if (!f.empty ()) - load (f); - } - else - { - // If the path of the file being parsed is not simple and the - // path of the file that needs to be loaded is relative, then - // complete the latter using the former as a base. - // -#ifndef _WIN32 - string::size_type p (file.find_last_of ('/')); - bool c (p != string::npos && s2[0] != '/'); -#else - string::size_type p (file.find_last_of ("/\\")); - bool c (p != string::npos && s2[1] != ':'); -#endif - if (c) - s2.insert (0, file, 0, p + 1); - - load (s2); - } - - continue; - } - - a.value = s1; - args_.push_back (a); - } - - a.value = s2; - args_.push_back (a); - } - } - - void options:: - push_back (const option& o) - { - container_type::size_type n (size ()); - container_type::push_back (o); - map_[o.name ()] = n; - - for (option_names::const_iterator i (o.aliases ().begin ()); - i != o.aliases ().end (); ++i) - map_[*i] = n; - } - - template - struct parser - { - static void - parse (X& x, bool& xs, scanner& s) - { - using namespace std; - - const char* o (s.next ()); - if (s.more ()) - { - string v (s.next ()); - istringstream is (v); - if (!(is >> x && is.peek () == istringstream::traits_type::eof ())) - throw invalid_value (o, v); - } - else - throw missing_value (o); - - xs = true; - } - }; - - template <> - struct parser - { - static void - parse (bool& x, bool& xs, scanner& s) - { - const char* o (s.next ()); - - if (s.more ()) - { - const char* v (s.next ()); - - if (std::strcmp (v, "1") == 0 || - std::strcmp (v, "true") == 0 || - std::strcmp (v, "TRUE") == 0 || - std::strcmp (v, "True") == 0) - x = true; - else if (std::strcmp (v, "0") == 0 || - std::strcmp (v, "false") == 0 || - std::strcmp (v, "FALSE") == 0 || - std::strcmp (v, "False") == 0) - x = false; - else - throw invalid_value (o, v); - } - else - throw missing_value (o); - - xs = true; - } - }; - - template <> - struct parser - { - static void - parse (std::string& x, bool& xs, scanner& s) - { - const char* o (s.next ()); - - if (s.more ()) - x = s.next (); - else - throw missing_value (o); - - xs = true; - } - }; - - template - struct parser > - { - static void - parse (std::pair& x, bool& xs, scanner& s) - { - x.second = s.position (); - parser::parse (x.first, xs, s); - } - }; - - template - struct parser > - { - static void - parse (std::vector& c, bool& xs, scanner& s) - { - X x; - bool dummy; - parser::parse (x, dummy, s); - c.push_back (x); - xs = true; - } - }; - - template - struct parser > - { - static void - parse (std::set& c, bool& xs, scanner& s) - { - X x; - bool dummy; - parser::parse (x, dummy, s); - c.insert (x); - xs = true; - } - }; - - template - struct parser > - { - static void - parse (std::map& m, bool& xs, scanner& s) - { - const char* o (s.next ()); - - if (s.more ()) - { - std::size_t pos (s.position ()); - std::string ov (s.next ()); - std::string::size_type p = ov.find ('='); - - K k = K (); - V v = V (); - std::string kstr (ov, 0, p); - std::string vstr (ov, (p != std::string::npos ? p + 1 : ov.size ())); - - int ac (2); - char* av[] = - { - const_cast (o), - 0 - }; - - bool dummy; - if (!kstr.empty ()) - { - av[1] = const_cast (kstr.c_str ()); - argv_scanner s (0, ac, av, false, pos); - parser::parse (k, dummy, s); - } - - if (!vstr.empty ()) - { - av[1] = const_cast (vstr.c_str ()); - argv_scanner s (0, ac, av, false, pos); - parser::parse (v, dummy, s); - } - - m[k] = v; - } - else - throw missing_value (o); - - xs = true; - } - }; - - template - void - thunk (X& x, scanner& s) - { - parser::parse (x.*M, s); - } - - template - void - thunk (X& x, scanner& s) - { - s.next (); - x.*M = true; - } - - template - void - thunk (X& x, scanner& s) - { - parser::parse (x.*M, x.*S, s); - } -} - -#include - -// options -// - -options:: -options () -: build2_metadata_ (), - build2_metadata_specified_ (false), - help_ (), - version_ (), - I_ (), - I_specified_ (false), - D_ (), - D_specified_ (false), - U_ (), - U_specified_ (false), - database_ (), - database_specified_ (false), - multi_database_ (::multi_database::disabled), - multi_database_specified_ (false), - default_database_ (), - default_database_specified_ (false), - generate_query_ (), - generate_prepared_ (), - omit_unprepared_ (), - generate_session_ (), - generate_schema_ (), - generate_schema_only_ (), - suppress_migration_ (), - suppress_schema_version_ (), - schema_version_table_ (), - schema_version_table_specified_ (false), - schema_format_ (), - schema_format_specified_ (false), - omit_drop_ (), - omit_create_ (), - schema_name_ (), - schema_name_specified_ (false), - fkeys_deferrable_mode_ (), - fkeys_deferrable_mode_specified_ (false), - default_pointer_ ("*"), - default_pointer_specified_ (false), - session_type_ ("odb::session"), - session_type_specified_ (false), - profile_ (), - profile_specified_ (false), - at_once_ (), - schema_ (), - schema_specified_ (false), - export_symbol_ (), - export_symbol_specified_ (false), - extern_symbol_ (), - extern_symbol_specified_ (false), - std_ (cxx_version::cxx98), - std_specified_ (false), - warn_hard_add_ (), - warn_hard_delete_ (), - warn_hard_ (), - output_dir_ (), - output_dir_specified_ (false), - input_name_ (), - input_name_specified_ (false), - changelog_ (), - changelog_specified_ (false), - changelog_in_ (), - changelog_in_specified_ (false), - changelog_out_ (), - changelog_out_specified_ (false), - changelog_dir_ (), - changelog_dir_specified_ (false), - init_changelog_ (), - odb_file_suffix_ (), - odb_file_suffix_specified_ (false), - sql_file_suffix_ (), - sql_file_suffix_specified_ (false), - schema_file_suffix_ (), - schema_file_suffix_specified_ (false), - changelog_file_suffix_ (), - changelog_file_suffix_specified_ (false), - hxx_suffix_ (".hxx"), - hxx_suffix_specified_ (false), - ixx_suffix_ (".ixx"), - ixx_suffix_specified_ (false), - cxx_suffix_ (".cxx"), - cxx_suffix_specified_ (false), - sql_suffix_ (".sql"), - sql_suffix_specified_ (false), - changelog_suffix_ (".xml"), - changelog_suffix_specified_ (false), - hxx_prologue_ (), - hxx_prologue_specified_ (false), - ixx_prologue_ (), - ixx_prologue_specified_ (false), - cxx_prologue_ (), - cxx_prologue_specified_ (false), - schema_prologue_ (), - schema_prologue_specified_ (false), - sql_prologue_ (), - sql_prologue_specified_ (false), - migration_prologue_ (), - migration_prologue_specified_ (false), - sql_interlude_ (), - sql_interlude_specified_ (false), - hxx_epilogue_ (), - hxx_epilogue_specified_ (false), - ixx_epilogue_ (), - ixx_epilogue_specified_ (false), - cxx_epilogue_ (), - cxx_epilogue_specified_ (false), - schema_epilogue_ (), - schema_epilogue_specified_ (false), - sql_epilogue_ (), - sql_epilogue_specified_ (false), - migration_epilogue_ (), - migration_epilogue_specified_ (false), - hxx_prologue_file_ (), - hxx_prologue_file_specified_ (false), - ixx_prologue_file_ (), - ixx_prologue_file_specified_ (false), - cxx_prologue_file_ (), - cxx_prologue_file_specified_ (false), - schema_prologue_file_ (), - schema_prologue_file_specified_ (false), - sql_prologue_file_ (), - sql_prologue_file_specified_ (false), - migration_prologue_file_ (), - migration_prologue_file_specified_ (false), - sql_interlude_file_ (), - sql_interlude_file_specified_ (false), - hxx_epilogue_file_ (), - hxx_epilogue_file_specified_ (false), - ixx_epilogue_file_ (), - ixx_epilogue_file_specified_ (false), - cxx_epilogue_file_ (), - cxx_epilogue_file_specified_ (false), - schema_epilogue_file_ (), - schema_epilogue_file_specified_ (false), - sql_epilogue_file_ (), - sql_epilogue_file_specified_ (false), - migration_epilogue_file_ (), - migration_epilogue_file_specified_ (false), - odb_prologue_ (), - odb_prologue_specified_ (false), - odb_prologue_file_ (), - odb_prologue_file_specified_ (false), - odb_epilogue_ (), - odb_epilogue_specified_ (false), - odb_epilogue_file_ (), - odb_epilogue_file_specified_ (false), - table_prefix_ (), - table_prefix_specified_ (false), - index_suffix_ (), - index_suffix_specified_ (false), - fkey_suffix_ (), - fkey_suffix_specified_ (false), - sequence_suffix_ (), - sequence_suffix_specified_ (false), - sql_name_case_ (), - sql_name_case_specified_ (false), - table_regex_ (), - table_regex_specified_ (false), - column_regex_ (), - column_regex_specified_ (false), - index_regex_ (), - index_regex_specified_ (false), - fkey_regex_ (), - fkey_regex_specified_ (false), - sequence_regex_ (), - sequence_regex_specified_ (false), - statement_regex_ (), - statement_regex_specified_ (false), - sql_name_regex_ (), - sql_name_regex_specified_ (false), - sql_name_regex_trace_ (), - accessor_regex_ (), - accessor_regex_specified_ (false), - accessor_regex_trace_ (), - modifier_regex_ (), - modifier_regex_specified_ (false), - modifier_regex_trace_ (), - include_with_brackets_ (), - include_prefix_ (), - include_prefix_specified_ (false), - include_regex_ (), - include_regex_specified_ (false), - include_regex_trace_ (), - guard_prefix_ (), - guard_prefix_specified_ (false), - show_sloc_ (), - sloc_limit_ (), - sloc_limit_specified_ (false), - options_file_ (), - options_file_specified_ (false), - x_ (), - x_specified_ (false), - v_ (), - trace_ (), - mysql_engine_ ("InnoDB"), - mysql_engine_specified_ (false), - sqlite_override_null_ (), - sqlite_lax_auto_id_ (), - pgsql_server_version_ (7, 4), - pgsql_server_version_specified_ (false), - oracle_client_version_ (10, 1), - oracle_client_version_specified_ (false), - oracle_warn_truncation_ (), - mssql_server_version_ (10, 0), - mssql_server_version_specified_ (false), - mssql_short_limit_ (1024), - mssql_short_limit_specified_ (false) -{ -} - -options:: -options (int& argc, - char** argv, - bool erase, - ::cli::unknown_mode opt, - ::cli::unknown_mode arg) -: build2_metadata_ (), - build2_metadata_specified_ (false), - help_ (), - version_ (), - I_ (), - I_specified_ (false), - D_ (), - D_specified_ (false), - U_ (), - U_specified_ (false), - database_ (), - database_specified_ (false), - multi_database_ (::multi_database::disabled), - multi_database_specified_ (false), - default_database_ (), - default_database_specified_ (false), - generate_query_ (), - generate_prepared_ (), - omit_unprepared_ (), - generate_session_ (), - generate_schema_ (), - generate_schema_only_ (), - suppress_migration_ (), - suppress_schema_version_ (), - schema_version_table_ (), - schema_version_table_specified_ (false), - schema_format_ (), - schema_format_specified_ (false), - omit_drop_ (), - omit_create_ (), - schema_name_ (), - schema_name_specified_ (false), - fkeys_deferrable_mode_ (), - fkeys_deferrable_mode_specified_ (false), - default_pointer_ ("*"), - default_pointer_specified_ (false), - session_type_ ("odb::session"), - session_type_specified_ (false), - profile_ (), - profile_specified_ (false), - at_once_ (), - schema_ (), - schema_specified_ (false), - export_symbol_ (), - export_symbol_specified_ (false), - extern_symbol_ (), - extern_symbol_specified_ (false), - std_ (cxx_version::cxx98), - std_specified_ (false), - warn_hard_add_ (), - warn_hard_delete_ (), - warn_hard_ (), - output_dir_ (), - output_dir_specified_ (false), - input_name_ (), - input_name_specified_ (false), - changelog_ (), - changelog_specified_ (false), - changelog_in_ (), - changelog_in_specified_ (false), - changelog_out_ (), - changelog_out_specified_ (false), - changelog_dir_ (), - changelog_dir_specified_ (false), - init_changelog_ (), - odb_file_suffix_ (), - odb_file_suffix_specified_ (false), - sql_file_suffix_ (), - sql_file_suffix_specified_ (false), - schema_file_suffix_ (), - schema_file_suffix_specified_ (false), - changelog_file_suffix_ (), - changelog_file_suffix_specified_ (false), - hxx_suffix_ (".hxx"), - hxx_suffix_specified_ (false), - ixx_suffix_ (".ixx"), - ixx_suffix_specified_ (false), - cxx_suffix_ (".cxx"), - cxx_suffix_specified_ (false), - sql_suffix_ (".sql"), - sql_suffix_specified_ (false), - changelog_suffix_ (".xml"), - changelog_suffix_specified_ (false), - hxx_prologue_ (), - hxx_prologue_specified_ (false), - ixx_prologue_ (), - ixx_prologue_specified_ (false), - cxx_prologue_ (), - cxx_prologue_specified_ (false), - schema_prologue_ (), - schema_prologue_specified_ (false), - sql_prologue_ (), - sql_prologue_specified_ (false), - migration_prologue_ (), - migration_prologue_specified_ (false), - sql_interlude_ (), - sql_interlude_specified_ (false), - hxx_epilogue_ (), - hxx_epilogue_specified_ (false), - ixx_epilogue_ (), - ixx_epilogue_specified_ (false), - cxx_epilogue_ (), - cxx_epilogue_specified_ (false), - schema_epilogue_ (), - schema_epilogue_specified_ (false), - sql_epilogue_ (), - sql_epilogue_specified_ (false), - migration_epilogue_ (), - migration_epilogue_specified_ (false), - hxx_prologue_file_ (), - hxx_prologue_file_specified_ (false), - ixx_prologue_file_ (), - ixx_prologue_file_specified_ (false), - cxx_prologue_file_ (), - cxx_prologue_file_specified_ (false), - schema_prologue_file_ (), - schema_prologue_file_specified_ (false), - sql_prologue_file_ (), - sql_prologue_file_specified_ (false), - migration_prologue_file_ (), - migration_prologue_file_specified_ (false), - sql_interlude_file_ (), - sql_interlude_file_specified_ (false), - hxx_epilogue_file_ (), - hxx_epilogue_file_specified_ (false), - ixx_epilogue_file_ (), - ixx_epilogue_file_specified_ (false), - cxx_epilogue_file_ (), - cxx_epilogue_file_specified_ (false), - schema_epilogue_file_ (), - schema_epilogue_file_specified_ (false), - sql_epilogue_file_ (), - sql_epilogue_file_specified_ (false), - migration_epilogue_file_ (), - migration_epilogue_file_specified_ (false), - odb_prologue_ (), - odb_prologue_specified_ (false), - odb_prologue_file_ (), - odb_prologue_file_specified_ (false), - odb_epilogue_ (), - odb_epilogue_specified_ (false), - odb_epilogue_file_ (), - odb_epilogue_file_specified_ (false), - table_prefix_ (), - table_prefix_specified_ (false), - index_suffix_ (), - index_suffix_specified_ (false), - fkey_suffix_ (), - fkey_suffix_specified_ (false), - sequence_suffix_ (), - sequence_suffix_specified_ (false), - sql_name_case_ (), - sql_name_case_specified_ (false), - table_regex_ (), - table_regex_specified_ (false), - column_regex_ (), - column_regex_specified_ (false), - index_regex_ (), - index_regex_specified_ (false), - fkey_regex_ (), - fkey_regex_specified_ (false), - sequence_regex_ (), - sequence_regex_specified_ (false), - statement_regex_ (), - statement_regex_specified_ (false), - sql_name_regex_ (), - sql_name_regex_specified_ (false), - sql_name_regex_trace_ (), - accessor_regex_ (), - accessor_regex_specified_ (false), - accessor_regex_trace_ (), - modifier_regex_ (), - modifier_regex_specified_ (false), - modifier_regex_trace_ (), - include_with_brackets_ (), - include_prefix_ (), - include_prefix_specified_ (false), - include_regex_ (), - include_regex_specified_ (false), - include_regex_trace_ (), - guard_prefix_ (), - guard_prefix_specified_ (false), - show_sloc_ (), - sloc_limit_ (), - sloc_limit_specified_ (false), - options_file_ (), - options_file_specified_ (false), - x_ (), - x_specified_ (false), - v_ (), - trace_ (), - mysql_engine_ ("InnoDB"), - mysql_engine_specified_ (false), - sqlite_override_null_ (), - sqlite_lax_auto_id_ (), - pgsql_server_version_ (7, 4), - pgsql_server_version_specified_ (false), - oracle_client_version_ (10, 1), - oracle_client_version_specified_ (false), - oracle_warn_truncation_ (), - mssql_server_version_ (10, 0), - mssql_server_version_specified_ (false), - mssql_short_limit_ (1024), - mssql_short_limit_specified_ (false) -{ - ::cli::argv_scanner s (argc, argv, erase); - _parse (s, opt, arg); -} - -options:: -options (int start, - int& argc, - char** argv, - bool erase, - ::cli::unknown_mode opt, - ::cli::unknown_mode arg) -: build2_metadata_ (), - build2_metadata_specified_ (false), - help_ (), - version_ (), - I_ (), - I_specified_ (false), - D_ (), - D_specified_ (false), - U_ (), - U_specified_ (false), - database_ (), - database_specified_ (false), - multi_database_ (::multi_database::disabled), - multi_database_specified_ (false), - default_database_ (), - default_database_specified_ (false), - generate_query_ (), - generate_prepared_ (), - omit_unprepared_ (), - generate_session_ (), - generate_schema_ (), - generate_schema_only_ (), - suppress_migration_ (), - suppress_schema_version_ (), - schema_version_table_ (), - schema_version_table_specified_ (false), - schema_format_ (), - schema_format_specified_ (false), - omit_drop_ (), - omit_create_ (), - schema_name_ (), - schema_name_specified_ (false), - fkeys_deferrable_mode_ (), - fkeys_deferrable_mode_specified_ (false), - default_pointer_ ("*"), - default_pointer_specified_ (false), - session_type_ ("odb::session"), - session_type_specified_ (false), - profile_ (), - profile_specified_ (false), - at_once_ (), - schema_ (), - schema_specified_ (false), - export_symbol_ (), - export_symbol_specified_ (false), - extern_symbol_ (), - extern_symbol_specified_ (false), - std_ (cxx_version::cxx98), - std_specified_ (false), - warn_hard_add_ (), - warn_hard_delete_ (), - warn_hard_ (), - output_dir_ (), - output_dir_specified_ (false), - input_name_ (), - input_name_specified_ (false), - changelog_ (), - changelog_specified_ (false), - changelog_in_ (), - changelog_in_specified_ (false), - changelog_out_ (), - changelog_out_specified_ (false), - changelog_dir_ (), - changelog_dir_specified_ (false), - init_changelog_ (), - odb_file_suffix_ (), - odb_file_suffix_specified_ (false), - sql_file_suffix_ (), - sql_file_suffix_specified_ (false), - schema_file_suffix_ (), - schema_file_suffix_specified_ (false), - changelog_file_suffix_ (), - changelog_file_suffix_specified_ (false), - hxx_suffix_ (".hxx"), - hxx_suffix_specified_ (false), - ixx_suffix_ (".ixx"), - ixx_suffix_specified_ (false), - cxx_suffix_ (".cxx"), - cxx_suffix_specified_ (false), - sql_suffix_ (".sql"), - sql_suffix_specified_ (false), - changelog_suffix_ (".xml"), - changelog_suffix_specified_ (false), - hxx_prologue_ (), - hxx_prologue_specified_ (false), - ixx_prologue_ (), - ixx_prologue_specified_ (false), - cxx_prologue_ (), - cxx_prologue_specified_ (false), - schema_prologue_ (), - schema_prologue_specified_ (false), - sql_prologue_ (), - sql_prologue_specified_ (false), - migration_prologue_ (), - migration_prologue_specified_ (false), - sql_interlude_ (), - sql_interlude_specified_ (false), - hxx_epilogue_ (), - hxx_epilogue_specified_ (false), - ixx_epilogue_ (), - ixx_epilogue_specified_ (false), - cxx_epilogue_ (), - cxx_epilogue_specified_ (false), - schema_epilogue_ (), - schema_epilogue_specified_ (false), - sql_epilogue_ (), - sql_epilogue_specified_ (false), - migration_epilogue_ (), - migration_epilogue_specified_ (false), - hxx_prologue_file_ (), - hxx_prologue_file_specified_ (false), - ixx_prologue_file_ (), - ixx_prologue_file_specified_ (false), - cxx_prologue_file_ (), - cxx_prologue_file_specified_ (false), - schema_prologue_file_ (), - schema_prologue_file_specified_ (false), - sql_prologue_file_ (), - sql_prologue_file_specified_ (false), - migration_prologue_file_ (), - migration_prologue_file_specified_ (false), - sql_interlude_file_ (), - sql_interlude_file_specified_ (false), - hxx_epilogue_file_ (), - hxx_epilogue_file_specified_ (false), - ixx_epilogue_file_ (), - ixx_epilogue_file_specified_ (false), - cxx_epilogue_file_ (), - cxx_epilogue_file_specified_ (false), - schema_epilogue_file_ (), - schema_epilogue_file_specified_ (false), - sql_epilogue_file_ (), - sql_epilogue_file_specified_ (false), - migration_epilogue_file_ (), - migration_epilogue_file_specified_ (false), - odb_prologue_ (), - odb_prologue_specified_ (false), - odb_prologue_file_ (), - odb_prologue_file_specified_ (false), - odb_epilogue_ (), - odb_epilogue_specified_ (false), - odb_epilogue_file_ (), - odb_epilogue_file_specified_ (false), - table_prefix_ (), - table_prefix_specified_ (false), - index_suffix_ (), - index_suffix_specified_ (false), - fkey_suffix_ (), - fkey_suffix_specified_ (false), - sequence_suffix_ (), - sequence_suffix_specified_ (false), - sql_name_case_ (), - sql_name_case_specified_ (false), - table_regex_ (), - table_regex_specified_ (false), - column_regex_ (), - column_regex_specified_ (false), - index_regex_ (), - index_regex_specified_ (false), - fkey_regex_ (), - fkey_regex_specified_ (false), - sequence_regex_ (), - sequence_regex_specified_ (false), - statement_regex_ (), - statement_regex_specified_ (false), - sql_name_regex_ (), - sql_name_regex_specified_ (false), - sql_name_regex_trace_ (), - accessor_regex_ (), - accessor_regex_specified_ (false), - accessor_regex_trace_ (), - modifier_regex_ (), - modifier_regex_specified_ (false), - modifier_regex_trace_ (), - include_with_brackets_ (), - include_prefix_ (), - include_prefix_specified_ (false), - include_regex_ (), - include_regex_specified_ (false), - include_regex_trace_ (), - guard_prefix_ (), - guard_prefix_specified_ (false), - show_sloc_ (), - sloc_limit_ (), - sloc_limit_specified_ (false), - options_file_ (), - options_file_specified_ (false), - x_ (), - x_specified_ (false), - v_ (), - trace_ (), - mysql_engine_ ("InnoDB"), - mysql_engine_specified_ (false), - sqlite_override_null_ (), - sqlite_lax_auto_id_ (), - pgsql_server_version_ (7, 4), - pgsql_server_version_specified_ (false), - oracle_client_version_ (10, 1), - oracle_client_version_specified_ (false), - oracle_warn_truncation_ (), - mssql_server_version_ (10, 0), - mssql_server_version_specified_ (false), - mssql_short_limit_ (1024), - mssql_short_limit_specified_ (false) -{ - ::cli::argv_scanner s (start, argc, argv, erase); - _parse (s, opt, arg); -} - -options:: -options (int& argc, - char** argv, - int& end, - bool erase, - ::cli::unknown_mode opt, - ::cli::unknown_mode arg) -: build2_metadata_ (), - build2_metadata_specified_ (false), - help_ (), - version_ (), - I_ (), - I_specified_ (false), - D_ (), - D_specified_ (false), - U_ (), - U_specified_ (false), - database_ (), - database_specified_ (false), - multi_database_ (::multi_database::disabled), - multi_database_specified_ (false), - default_database_ (), - default_database_specified_ (false), - generate_query_ (), - generate_prepared_ (), - omit_unprepared_ (), - generate_session_ (), - generate_schema_ (), - generate_schema_only_ (), - suppress_migration_ (), - suppress_schema_version_ (), - schema_version_table_ (), - schema_version_table_specified_ (false), - schema_format_ (), - schema_format_specified_ (false), - omit_drop_ (), - omit_create_ (), - schema_name_ (), - schema_name_specified_ (false), - fkeys_deferrable_mode_ (), - fkeys_deferrable_mode_specified_ (false), - default_pointer_ ("*"), - default_pointer_specified_ (false), - session_type_ ("odb::session"), - session_type_specified_ (false), - profile_ (), - profile_specified_ (false), - at_once_ (), - schema_ (), - schema_specified_ (false), - export_symbol_ (), - export_symbol_specified_ (false), - extern_symbol_ (), - extern_symbol_specified_ (false), - std_ (cxx_version::cxx98), - std_specified_ (false), - warn_hard_add_ (), - warn_hard_delete_ (), - warn_hard_ (), - output_dir_ (), - output_dir_specified_ (false), - input_name_ (), - input_name_specified_ (false), - changelog_ (), - changelog_specified_ (false), - changelog_in_ (), - changelog_in_specified_ (false), - changelog_out_ (), - changelog_out_specified_ (false), - changelog_dir_ (), - changelog_dir_specified_ (false), - init_changelog_ (), - odb_file_suffix_ (), - odb_file_suffix_specified_ (false), - sql_file_suffix_ (), - sql_file_suffix_specified_ (false), - schema_file_suffix_ (), - schema_file_suffix_specified_ (false), - changelog_file_suffix_ (), - changelog_file_suffix_specified_ (false), - hxx_suffix_ (".hxx"), - hxx_suffix_specified_ (false), - ixx_suffix_ (".ixx"), - ixx_suffix_specified_ (false), - cxx_suffix_ (".cxx"), - cxx_suffix_specified_ (false), - sql_suffix_ (".sql"), - sql_suffix_specified_ (false), - changelog_suffix_ (".xml"), - changelog_suffix_specified_ (false), - hxx_prologue_ (), - hxx_prologue_specified_ (false), - ixx_prologue_ (), - ixx_prologue_specified_ (false), - cxx_prologue_ (), - cxx_prologue_specified_ (false), - schema_prologue_ (), - schema_prologue_specified_ (false), - sql_prologue_ (), - sql_prologue_specified_ (false), - migration_prologue_ (), - migration_prologue_specified_ (false), - sql_interlude_ (), - sql_interlude_specified_ (false), - hxx_epilogue_ (), - hxx_epilogue_specified_ (false), - ixx_epilogue_ (), - ixx_epilogue_specified_ (false), - cxx_epilogue_ (), - cxx_epilogue_specified_ (false), - schema_epilogue_ (), - schema_epilogue_specified_ (false), - sql_epilogue_ (), - sql_epilogue_specified_ (false), - migration_epilogue_ (), - migration_epilogue_specified_ (false), - hxx_prologue_file_ (), - hxx_prologue_file_specified_ (false), - ixx_prologue_file_ (), - ixx_prologue_file_specified_ (false), - cxx_prologue_file_ (), - cxx_prologue_file_specified_ (false), - schema_prologue_file_ (), - schema_prologue_file_specified_ (false), - sql_prologue_file_ (), - sql_prologue_file_specified_ (false), - migration_prologue_file_ (), - migration_prologue_file_specified_ (false), - sql_interlude_file_ (), - sql_interlude_file_specified_ (false), - hxx_epilogue_file_ (), - hxx_epilogue_file_specified_ (false), - ixx_epilogue_file_ (), - ixx_epilogue_file_specified_ (false), - cxx_epilogue_file_ (), - cxx_epilogue_file_specified_ (false), - schema_epilogue_file_ (), - schema_epilogue_file_specified_ (false), - sql_epilogue_file_ (), - sql_epilogue_file_specified_ (false), - migration_epilogue_file_ (), - migration_epilogue_file_specified_ (false), - odb_prologue_ (), - odb_prologue_specified_ (false), - odb_prologue_file_ (), - odb_prologue_file_specified_ (false), - odb_epilogue_ (), - odb_epilogue_specified_ (false), - odb_epilogue_file_ (), - odb_epilogue_file_specified_ (false), - table_prefix_ (), - table_prefix_specified_ (false), - index_suffix_ (), - index_suffix_specified_ (false), - fkey_suffix_ (), - fkey_suffix_specified_ (false), - sequence_suffix_ (), - sequence_suffix_specified_ (false), - sql_name_case_ (), - sql_name_case_specified_ (false), - table_regex_ (), - table_regex_specified_ (false), - column_regex_ (), - column_regex_specified_ (false), - index_regex_ (), - index_regex_specified_ (false), - fkey_regex_ (), - fkey_regex_specified_ (false), - sequence_regex_ (), - sequence_regex_specified_ (false), - statement_regex_ (), - statement_regex_specified_ (false), - sql_name_regex_ (), - sql_name_regex_specified_ (false), - sql_name_regex_trace_ (), - accessor_regex_ (), - accessor_regex_specified_ (false), - accessor_regex_trace_ (), - modifier_regex_ (), - modifier_regex_specified_ (false), - modifier_regex_trace_ (), - include_with_brackets_ (), - include_prefix_ (), - include_prefix_specified_ (false), - include_regex_ (), - include_regex_specified_ (false), - include_regex_trace_ (), - guard_prefix_ (), - guard_prefix_specified_ (false), - show_sloc_ (), - sloc_limit_ (), - sloc_limit_specified_ (false), - options_file_ (), - options_file_specified_ (false), - x_ (), - x_specified_ (false), - v_ (), - trace_ (), - mysql_engine_ ("InnoDB"), - mysql_engine_specified_ (false), - sqlite_override_null_ (), - sqlite_lax_auto_id_ (), - pgsql_server_version_ (7, 4), - pgsql_server_version_specified_ (false), - oracle_client_version_ (10, 1), - oracle_client_version_specified_ (false), - oracle_warn_truncation_ (), - mssql_server_version_ (10, 0), - mssql_server_version_specified_ (false), - mssql_short_limit_ (1024), - mssql_short_limit_specified_ (false) -{ - ::cli::argv_scanner s (argc, argv, erase); - _parse (s, opt, arg); - end = s.end (); -} - -options:: -options (int start, - int& argc, - char** argv, - int& end, - bool erase, - ::cli::unknown_mode opt, - ::cli::unknown_mode arg) -: build2_metadata_ (), - build2_metadata_specified_ (false), - help_ (), - version_ (), - I_ (), - I_specified_ (false), - D_ (), - D_specified_ (false), - U_ (), - U_specified_ (false), - database_ (), - database_specified_ (false), - multi_database_ (::multi_database::disabled), - multi_database_specified_ (false), - default_database_ (), - default_database_specified_ (false), - generate_query_ (), - generate_prepared_ (), - omit_unprepared_ (), - generate_session_ (), - generate_schema_ (), - generate_schema_only_ (), - suppress_migration_ (), - suppress_schema_version_ (), - schema_version_table_ (), - schema_version_table_specified_ (false), - schema_format_ (), - schema_format_specified_ (false), - omit_drop_ (), - omit_create_ (), - schema_name_ (), - schema_name_specified_ (false), - fkeys_deferrable_mode_ (), - fkeys_deferrable_mode_specified_ (false), - default_pointer_ ("*"), - default_pointer_specified_ (false), - session_type_ ("odb::session"), - session_type_specified_ (false), - profile_ (), - profile_specified_ (false), - at_once_ (), - schema_ (), - schema_specified_ (false), - export_symbol_ (), - export_symbol_specified_ (false), - extern_symbol_ (), - extern_symbol_specified_ (false), - std_ (cxx_version::cxx98), - std_specified_ (false), - warn_hard_add_ (), - warn_hard_delete_ (), - warn_hard_ (), - output_dir_ (), - output_dir_specified_ (false), - input_name_ (), - input_name_specified_ (false), - changelog_ (), - changelog_specified_ (false), - changelog_in_ (), - changelog_in_specified_ (false), - changelog_out_ (), - changelog_out_specified_ (false), - changelog_dir_ (), - changelog_dir_specified_ (false), - init_changelog_ (), - odb_file_suffix_ (), - odb_file_suffix_specified_ (false), - sql_file_suffix_ (), - sql_file_suffix_specified_ (false), - schema_file_suffix_ (), - schema_file_suffix_specified_ (false), - changelog_file_suffix_ (), - changelog_file_suffix_specified_ (false), - hxx_suffix_ (".hxx"), - hxx_suffix_specified_ (false), - ixx_suffix_ (".ixx"), - ixx_suffix_specified_ (false), - cxx_suffix_ (".cxx"), - cxx_suffix_specified_ (false), - sql_suffix_ (".sql"), - sql_suffix_specified_ (false), - changelog_suffix_ (".xml"), - changelog_suffix_specified_ (false), - hxx_prologue_ (), - hxx_prologue_specified_ (false), - ixx_prologue_ (), - ixx_prologue_specified_ (false), - cxx_prologue_ (), - cxx_prologue_specified_ (false), - schema_prologue_ (), - schema_prologue_specified_ (false), - sql_prologue_ (), - sql_prologue_specified_ (false), - migration_prologue_ (), - migration_prologue_specified_ (false), - sql_interlude_ (), - sql_interlude_specified_ (false), - hxx_epilogue_ (), - hxx_epilogue_specified_ (false), - ixx_epilogue_ (), - ixx_epilogue_specified_ (false), - cxx_epilogue_ (), - cxx_epilogue_specified_ (false), - schema_epilogue_ (), - schema_epilogue_specified_ (false), - sql_epilogue_ (), - sql_epilogue_specified_ (false), - migration_epilogue_ (), - migration_epilogue_specified_ (false), - hxx_prologue_file_ (), - hxx_prologue_file_specified_ (false), - ixx_prologue_file_ (), - ixx_prologue_file_specified_ (false), - cxx_prologue_file_ (), - cxx_prologue_file_specified_ (false), - schema_prologue_file_ (), - schema_prologue_file_specified_ (false), - sql_prologue_file_ (), - sql_prologue_file_specified_ (false), - migration_prologue_file_ (), - migration_prologue_file_specified_ (false), - sql_interlude_file_ (), - sql_interlude_file_specified_ (false), - hxx_epilogue_file_ (), - hxx_epilogue_file_specified_ (false), - ixx_epilogue_file_ (), - ixx_epilogue_file_specified_ (false), - cxx_epilogue_file_ (), - cxx_epilogue_file_specified_ (false), - schema_epilogue_file_ (), - schema_epilogue_file_specified_ (false), - sql_epilogue_file_ (), - sql_epilogue_file_specified_ (false), - migration_epilogue_file_ (), - migration_epilogue_file_specified_ (false), - odb_prologue_ (), - odb_prologue_specified_ (false), - odb_prologue_file_ (), - odb_prologue_file_specified_ (false), - odb_epilogue_ (), - odb_epilogue_specified_ (false), - odb_epilogue_file_ (), - odb_epilogue_file_specified_ (false), - table_prefix_ (), - table_prefix_specified_ (false), - index_suffix_ (), - index_suffix_specified_ (false), - fkey_suffix_ (), - fkey_suffix_specified_ (false), - sequence_suffix_ (), - sequence_suffix_specified_ (false), - sql_name_case_ (), - sql_name_case_specified_ (false), - table_regex_ (), - table_regex_specified_ (false), - column_regex_ (), - column_regex_specified_ (false), - index_regex_ (), - index_regex_specified_ (false), - fkey_regex_ (), - fkey_regex_specified_ (false), - sequence_regex_ (), - sequence_regex_specified_ (false), - statement_regex_ (), - statement_regex_specified_ (false), - sql_name_regex_ (), - sql_name_regex_specified_ (false), - sql_name_regex_trace_ (), - accessor_regex_ (), - accessor_regex_specified_ (false), - accessor_regex_trace_ (), - modifier_regex_ (), - modifier_regex_specified_ (false), - modifier_regex_trace_ (), - include_with_brackets_ (), - include_prefix_ (), - include_prefix_specified_ (false), - include_regex_ (), - include_regex_specified_ (false), - include_regex_trace_ (), - guard_prefix_ (), - guard_prefix_specified_ (false), - show_sloc_ (), - sloc_limit_ (), - sloc_limit_specified_ (false), - options_file_ (), - options_file_specified_ (false), - x_ (), - x_specified_ (false), - v_ (), - trace_ (), - mysql_engine_ ("InnoDB"), - mysql_engine_specified_ (false), - sqlite_override_null_ (), - sqlite_lax_auto_id_ (), - pgsql_server_version_ (7, 4), - pgsql_server_version_specified_ (false), - oracle_client_version_ (10, 1), - oracle_client_version_specified_ (false), - oracle_warn_truncation_ (), - mssql_server_version_ (10, 0), - mssql_server_version_specified_ (false), - mssql_short_limit_ (1024), - mssql_short_limit_specified_ (false) -{ - ::cli::argv_scanner s (start, argc, argv, erase); - _parse (s, opt, arg); - end = s.end (); -} - -options:: -options (::cli::scanner& s, - ::cli::unknown_mode opt, - ::cli::unknown_mode arg) -: build2_metadata_ (), - build2_metadata_specified_ (false), - help_ (), - version_ (), - I_ (), - I_specified_ (false), - D_ (), - D_specified_ (false), - U_ (), - U_specified_ (false), - database_ (), - database_specified_ (false), - multi_database_ (::multi_database::disabled), - multi_database_specified_ (false), - default_database_ (), - default_database_specified_ (false), - generate_query_ (), - generate_prepared_ (), - omit_unprepared_ (), - generate_session_ (), - generate_schema_ (), - generate_schema_only_ (), - suppress_migration_ (), - suppress_schema_version_ (), - schema_version_table_ (), - schema_version_table_specified_ (false), - schema_format_ (), - schema_format_specified_ (false), - omit_drop_ (), - omit_create_ (), - schema_name_ (), - schema_name_specified_ (false), - fkeys_deferrable_mode_ (), - fkeys_deferrable_mode_specified_ (false), - default_pointer_ ("*"), - default_pointer_specified_ (false), - session_type_ ("odb::session"), - session_type_specified_ (false), - profile_ (), - profile_specified_ (false), - at_once_ (), - schema_ (), - schema_specified_ (false), - export_symbol_ (), - export_symbol_specified_ (false), - extern_symbol_ (), - extern_symbol_specified_ (false), - std_ (cxx_version::cxx98), - std_specified_ (false), - warn_hard_add_ (), - warn_hard_delete_ (), - warn_hard_ (), - output_dir_ (), - output_dir_specified_ (false), - input_name_ (), - input_name_specified_ (false), - changelog_ (), - changelog_specified_ (false), - changelog_in_ (), - changelog_in_specified_ (false), - changelog_out_ (), - changelog_out_specified_ (false), - changelog_dir_ (), - changelog_dir_specified_ (false), - init_changelog_ (), - odb_file_suffix_ (), - odb_file_suffix_specified_ (false), - sql_file_suffix_ (), - sql_file_suffix_specified_ (false), - schema_file_suffix_ (), - schema_file_suffix_specified_ (false), - changelog_file_suffix_ (), - changelog_file_suffix_specified_ (false), - hxx_suffix_ (".hxx"), - hxx_suffix_specified_ (false), - ixx_suffix_ (".ixx"), - ixx_suffix_specified_ (false), - cxx_suffix_ (".cxx"), - cxx_suffix_specified_ (false), - sql_suffix_ (".sql"), - sql_suffix_specified_ (false), - changelog_suffix_ (".xml"), - changelog_suffix_specified_ (false), - hxx_prologue_ (), - hxx_prologue_specified_ (false), - ixx_prologue_ (), - ixx_prologue_specified_ (false), - cxx_prologue_ (), - cxx_prologue_specified_ (false), - schema_prologue_ (), - schema_prologue_specified_ (false), - sql_prologue_ (), - sql_prologue_specified_ (false), - migration_prologue_ (), - migration_prologue_specified_ (false), - sql_interlude_ (), - sql_interlude_specified_ (false), - hxx_epilogue_ (), - hxx_epilogue_specified_ (false), - ixx_epilogue_ (), - ixx_epilogue_specified_ (false), - cxx_epilogue_ (), - cxx_epilogue_specified_ (false), - schema_epilogue_ (), - schema_epilogue_specified_ (false), - sql_epilogue_ (), - sql_epilogue_specified_ (false), - migration_epilogue_ (), - migration_epilogue_specified_ (false), - hxx_prologue_file_ (), - hxx_prologue_file_specified_ (false), - ixx_prologue_file_ (), - ixx_prologue_file_specified_ (false), - cxx_prologue_file_ (), - cxx_prologue_file_specified_ (false), - schema_prologue_file_ (), - schema_prologue_file_specified_ (false), - sql_prologue_file_ (), - sql_prologue_file_specified_ (false), - migration_prologue_file_ (), - migration_prologue_file_specified_ (false), - sql_interlude_file_ (), - sql_interlude_file_specified_ (false), - hxx_epilogue_file_ (), - hxx_epilogue_file_specified_ (false), - ixx_epilogue_file_ (), - ixx_epilogue_file_specified_ (false), - cxx_epilogue_file_ (), - cxx_epilogue_file_specified_ (false), - schema_epilogue_file_ (), - schema_epilogue_file_specified_ (false), - sql_epilogue_file_ (), - sql_epilogue_file_specified_ (false), - migration_epilogue_file_ (), - migration_epilogue_file_specified_ (false), - odb_prologue_ (), - odb_prologue_specified_ (false), - odb_prologue_file_ (), - odb_prologue_file_specified_ (false), - odb_epilogue_ (), - odb_epilogue_specified_ (false), - odb_epilogue_file_ (), - odb_epilogue_file_specified_ (false), - table_prefix_ (), - table_prefix_specified_ (false), - index_suffix_ (), - index_suffix_specified_ (false), - fkey_suffix_ (), - fkey_suffix_specified_ (false), - sequence_suffix_ (), - sequence_suffix_specified_ (false), - sql_name_case_ (), - sql_name_case_specified_ (false), - table_regex_ (), - table_regex_specified_ (false), - column_regex_ (), - column_regex_specified_ (false), - index_regex_ (), - index_regex_specified_ (false), - fkey_regex_ (), - fkey_regex_specified_ (false), - sequence_regex_ (), - sequence_regex_specified_ (false), - statement_regex_ (), - statement_regex_specified_ (false), - sql_name_regex_ (), - sql_name_regex_specified_ (false), - sql_name_regex_trace_ (), - accessor_regex_ (), - accessor_regex_specified_ (false), - accessor_regex_trace_ (), - modifier_regex_ (), - modifier_regex_specified_ (false), - modifier_regex_trace_ (), - include_with_brackets_ (), - include_prefix_ (), - include_prefix_specified_ (false), - include_regex_ (), - include_regex_specified_ (false), - include_regex_trace_ (), - guard_prefix_ (), - guard_prefix_specified_ (false), - show_sloc_ (), - sloc_limit_ (), - sloc_limit_specified_ (false), - options_file_ (), - options_file_specified_ (false), - x_ (), - x_specified_ (false), - v_ (), - trace_ (), - mysql_engine_ ("InnoDB"), - mysql_engine_specified_ (false), - sqlite_override_null_ (), - sqlite_lax_auto_id_ (), - pgsql_server_version_ (7, 4), - pgsql_server_version_specified_ (false), - oracle_client_version_ (10, 1), - oracle_client_version_specified_ (false), - oracle_warn_truncation_ (), - mssql_server_version_ (10, 0), - mssql_server_version_specified_ (false), - mssql_short_limit_ (1024), - mssql_short_limit_specified_ (false) -{ - _parse (s, opt, arg); -} - -::cli::usage_para options:: -print_usage (::std::ostream& os, ::cli::usage_para p) -{ - CLI_POTENTIALLY_UNUSED (os); - - if (p == ::cli::usage_para::text) - os << ::std::endl; - - os << "--help Print usage information and exit." << ::std::endl; - - os << "--version Print version and exit." << ::std::endl; - - os << "-I Add to the beginning of the list of" << ::std::endl - << " directories to be searched for included header" << ::std::endl - << " files." << ::std::endl; - - os << "-D [=] Define macro with definition ." << ::std::endl; - - os << "-U Cancel any previous definitions of macro ," << ::std::endl - << " either built-in or provided with the -D option." << ::std::endl; - - os << "--database|-d Generate code for the database." << ::std::endl; - - os << "--multi-database|-m Enable multi-database support and specify its" << ::std::endl - << " type." << ::std::endl; - - os << "--default-database When static multi-database support is used," << ::std::endl - << " specify the database that should be made the" << ::std::endl - << " default." << ::std::endl; - - os << "--generate-query|-q Generate query support code." << ::std::endl; - - os << "--generate-prepared Generate prepared query execution support code." << ::std::endl; - - os << "--omit-unprepared Omit un-prepared (once-off) query execution" << ::std::endl - << " support code." << ::std::endl; - - os << "--generate-session|-e Generate session support code." << ::std::endl; - - os << "--generate-schema|-s Generate the database schema." << ::std::endl; - - os << "--generate-schema-only Generate only the database schema." << ::std::endl; - - os << "--suppress-migration Suppress the generation of database schema" << ::std::endl - << " migration statements." << ::std::endl; - - os << "--suppress-schema-version Suppress the generation of schema version table." << ::std::endl; - - os << "--schema-version-table Specify the alternative schema version table name" << ::std::endl - << " instead of the default schema_version." << ::std::endl; - - os << "--schema-format Generate the database schema in the specified" << ::std::endl - << " format." << ::std::endl; - - os << "--omit-drop Omit DROP statements from the generated database" << ::std::endl - << " schema." << ::std::endl; - - os << "--omit-create Omit CREATE statements from the generated" << ::std::endl - << " database schema." << ::std::endl; - - os << "--schema-name Use as the database schema name." << ::std::endl; - - os << "--fkeys-deferrable-mode Use constraint checking mode in foreign keys" << ::std::endl - << " generated for object relationships." << ::std::endl; - - os << "--default-pointer Use as the default pointer for persistent" << ::std::endl - << " objects and views." << ::std::endl; - - os << "--session-type Use as the alternative session type" << ::std::endl - << " instead of the default odb::session." << ::std::endl; - - os << "--profile|-p Specify a profile that should be used during" << ::std::endl - << " compilation." << ::std::endl; - - os << "--at-once Generate code for all the input files as well as" << ::std::endl - << " for all the files that they include at once." << ::std::endl; - - os << "--schema Specify a database schema (database namespace)" << ::std::endl - << " that should be assigned to the persistent classes" << ::std::endl - << " in the file being compiled." << ::std::endl; - - os << "--export-symbol Insert in places where DLL export/import" << ::std::endl - << " control statements" << ::std::endl - << " (__declspec(dllexport/dllimport)) are necessary." << ::std::endl; - - os << "--extern-symbol If is defined, insert it in places where" << ::std::endl - << " a template instantiation must be declared extern." << ::std::endl; - - os << "--std Specify the C++ standard that should be used" << ::std::endl - << " during compilation." << ::std::endl; - - os << "--warn-hard-add Warn about hard-added data members." << ::std::endl; - - os << "--warn-hard-delete Warn about hard-deleted data members and" << ::std::endl - << " persistent classes." << ::std::endl; - - os << "--warn-hard Warn about both hard-added and hard-deleted data" << ::std::endl - << " members and persistent classes." << ::std::endl; - - os << "--output-dir|-o Write the generated files to instead of the" << ::std::endl - << " current directory." << ::std::endl; - - os << "--input-name Use instead of the input file to derive" << ::std::endl - << " the names of the generated files." << ::std::endl; - - os << "--changelog Read/write changelog from/to instead of" << ::std::endl - << " the default changelog file." << ::std::endl; - - os << "--changelog-in Read changelog from instead of the default" << ::std::endl - << " changelog file." << ::std::endl; - - os << "--changelog-out Write changelog to instead of the default" << ::std::endl - << " changelog file." << ::std::endl; - - os << "--changelog-dir Use instead of the input file directory as" << ::std::endl - << " the changelog file directory." << ::std::endl; - - os << "--init-changelog Force re-initialization of the changelog even if" << ::std::endl - << " one exists (all the existing change history will" << ::std::endl - << " be lost)." << ::std::endl; - - os << "--odb-file-suffix Use to construct the names of the" << ::std::endl - << " generated C++ files." << ::std::endl; - - os << "--sql-file-suffix Use to construct the name of the" << ::std::endl - << " generated schema SQL file." << ::std::endl; - - os << "--schema-file-suffix Use to construct the name of the" << ::std::endl - << " generated schema C++ source file." << ::std::endl; - - os << "--changelog-file-suffix Use to construct the name of the changelog" << ::std::endl - << " file." << ::std::endl; - - os << "--hxx-suffix Use instead of the default .hxx to" << ::std::endl - << " construct the name of the generated C++ header" << ::std::endl - << " file." << ::std::endl; - - os << "--ixx-suffix Use instead of the default .ixx to" << ::std::endl - << " construct the name of the generated C++ inline" << ::std::endl - << " file." << ::std::endl; - - os << "--cxx-suffix Use instead of the default .cxx to" << ::std::endl - << " construct the name of the generated C++ source" << ::std::endl - << " file." << ::std::endl; - - os << "--sql-suffix Use instead of the default .sql to" << ::std::endl - << " construct the name of the generated database" << ::std::endl - << " schema file." << ::std::endl; - - os << "--changelog-suffix Use instead of the default .xml to" << ::std::endl - << " construct the name of the changelog file." << ::std::endl; - - os << "--hxx-prologue Insert at the beginning of the generated" << ::std::endl - << " C++ header file." << ::std::endl; - - os << "--ixx-prologue Insert at the beginning of the generated" << ::std::endl - << " C++ inline file." << ::std::endl; - - os << "--cxx-prologue Insert at the beginning of the generated" << ::std::endl - << " C++ source file." << ::std::endl; - - os << "--schema-prologue Insert at the beginning of the generated" << ::std::endl - << " schema C++ source file." << ::std::endl; - - os << "--sql-prologue Insert at the beginning of the generated" << ::std::endl - << " database schema file." << ::std::endl; - - os << "--migration-prologue Insert at the beginning of the generated" << ::std::endl - << " database migration file." << ::std::endl; - - os << "--sql-interlude Insert after all the DROP and before any" << ::std::endl - << " CREATE statements in the generated database" << ::std::endl - << " schema file." << ::std::endl; - - os << "--hxx-epilogue Insert at the end of the generated C++" << ::std::endl - << " header file." << ::std::endl; - - os << "--ixx-epilogue Insert at the end of the generated C++" << ::std::endl - << " inline file." << ::std::endl; - - os << "--cxx-epilogue Insert at the end of the generated C++" << ::std::endl - << " source file." << ::std::endl; - - os << "--schema-epilogue Insert at the end of the generated schema" << ::std::endl - << " C++ source file." << ::std::endl; - - os << "--sql-epilogue Insert at the end of the generated" << ::std::endl - << " database schema file." << ::std::endl; - - os << "--migration-epilogue Insert at the end of the generated" << ::std::endl - << " database migration file." << ::std::endl; - - os << "--hxx-prologue-file Insert the content of at the beginning of" << ::std::endl - << " the generated C++ header file." << ::std::endl; - - os << "--ixx-prologue-file Insert the content of at the beginning of" << ::std::endl - << " the generated C++ inline file." << ::std::endl; - - os << "--cxx-prologue-file Insert the content of at the beginning of" << ::std::endl - << " the generated C++ source file." << ::std::endl; - - os << "--schema-prologue-file Insert the content of at the beginning of" << ::std::endl - << " the generated schema C++ source file." << ::std::endl; - - os << "--sql-prologue-file Insert the content of at the beginning of" << ::std::endl - << " the generated database schema file." << ::std::endl; - - os << "--migration-prologue-file Insert the content of file at the beginning" << ::std::endl - << " of the generated database migration file." << ::std::endl; - - os << "--sql-interlude-file Insert the content of after all the DROP" << ::std::endl - << " and before any CREATE statements in the generated" << ::std::endl - << " database schema file." << ::std::endl; - - os << "--hxx-epilogue-file Insert the content of at the end of the" << ::std::endl - << " generated C++ header file." << ::std::endl; - - os << "--ixx-epilogue-file Insert the content of at the end of the" << ::std::endl - << " generated C++ inline file." << ::std::endl; - - os << "--cxx-epilogue-file Insert the content of at the end of the" << ::std::endl - << " generated C++ source file." << ::std::endl; - - os << "--schema-epilogue-file Insert the content of at the end of the" << ::std::endl - << " generated schema C++ source file." << ::std::endl; - - os << "--sql-epilogue-file Insert the content of at the end of the" << ::std::endl - << " generated database schema file." << ::std::endl; - - os << "--migration-epilogue-file Insert the content of file at the end of the" << ::std::endl - << " generated database migration file." << ::std::endl; - - os << "--odb-prologue Compile before the input header file." << ::std::endl; - - os << "--odb-prologue-file Compile contents before the input header" << ::std::endl - << " file." << ::std::endl; - - os << "--odb-epilogue Compile after the input header file." << ::std::endl; - - os << "--odb-epilogue-file Compile contents after the input header" << ::std::endl - << " file." << ::std::endl; - - os << "--table-prefix Add to table names and, for databases" << ::std::endl - << " that have global index and/or foreign key names," << ::std::endl - << " to those names as well." << ::std::endl; - - os << "--index-suffix Use instead of the default _i to" << ::std::endl - << " construct index names." << ::std::endl; - - os << "--fkey-suffix Use instead of the default _fk to" << ::std::endl - << " construct foreign key names." << ::std::endl; - - os << "--sequence-suffix Use instead of the default _seq to" << ::std::endl - << " construct sequence names." << ::std::endl; - - os << "--sql-name-case Convert all automatically-derived SQL names to" << ::std::endl - << " upper or lower case." << ::std::endl; - - os << "--table-regex Add to the list of regular expressions" << ::std::endl - << " that is used to transform automatically-derived" << ::std::endl - << " table names." << ::std::endl; - - os << "--column-regex Add to the list of regular expressions" << ::std::endl - << " that is used to transform automatically-derived" << ::std::endl - << " column names." << ::std::endl; - - os << "--index-regex Add to the list of regular expressions" << ::std::endl - << " that is used to transform automatically-derived" << ::std::endl - << " index names." << ::std::endl; - - os << "--fkey-regex Add to the list of regular expressions" << ::std::endl - << " that is used to transform automatically-derived" << ::std::endl - << " foreign key names." << ::std::endl; - - os << "--sequence-regex Add to the list of regular expressions" << ::std::endl - << " that is used to transform automatically-derived" << ::std::endl - << " sequence names." << ::std::endl; - - os << "--statement-regex Add to the list of regular expressions" << ::std::endl - << " that is used to transform automatically-derived" << ::std::endl - << " prepared statement names." << ::std::endl; - - os << "--sql-name-regex Add to the list of regular expressions" << ::std::endl - << " that is used to transform all" << ::std::endl - << " automatically-derived SQL names." << ::std::endl; - - os << "--sql-name-regex-trace Trace the process of applying regular expressions" << ::std::endl - << " specified with the SQL name --*-regex options." << ::std::endl; - - os << "--accessor-regex Add to the list of regular expressions" << ::std::endl - << " used to transform data member names to function" << ::std::endl - << " names when searching for a suitable accessor" << ::std::endl - << " function." << ::std::endl; - - os << "--accessor-regex-trace Trace the process of applying regular expressions" << ::std::endl - << " specified with the --accessor-regex option." << ::std::endl; - - os << "--modifier-regex Add to the list of regular expressions" << ::std::endl - << " used to transform data member names to function" << ::std::endl - << " names when searching for a suitable modifier" << ::std::endl - << " function." << ::std::endl; - - os << "--modifier-regex-trace Trace the process of applying regular expressions" << ::std::endl - << " specified with the --modifier-regex option." << ::std::endl; - - os << "--include-with-brackets Use angle brackets (<>) instead of quotes (\"\") in" << ::std::endl - << " the generated #include directives." << ::std::endl; - - os << "--include-prefix Add to the generated #include directive" << ::std::endl - << " paths." << ::std::endl; - - os << "--include-regex Add to the list of regular expressions" << ::std::endl - << " used to transform generated #include directive" << ::std::endl - << " paths." << ::std::endl; - - os << "--include-regex-trace Trace the process of applying regular expressions" << ::std::endl - << " specified with the --include-regex option." << ::std::endl; - - os << "--guard-prefix Add to the generated header inclusion" << ::std::endl - << " guards." << ::std::endl; - - os << "--show-sloc Print the number of generated physical source" << ::std::endl - << " lines of code (SLOC)." << ::std::endl; - - os << "--sloc-limit Check that the number of generated physical" << ::std::endl - << " source lines of code (SLOC) does not exceed" << ::std::endl - << " ." << ::std::endl; - - os << "--options-file Read additional options from ." << ::std::endl; - - os << "-x