aboutsummaryrefslogtreecommitdiff
path: root/monitor/monitor-options.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-10-14 20:43:20 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-10-14 20:58:33 +0300
commit004062737657986294163672ae67d16348e203f6 (patch)
tree58f1f9aa999a83b706c3096a1f879834f4e6596b /monitor/monitor-options.hxx
parent6163f829355b6ceae21060eb7a33f3107477d899 (diff)
Make changes required for testtest
Diffstat (limited to 'monitor/monitor-options.hxx')
-rw-r--r--monitor/monitor-options.hxx192
1 files changed, 192 insertions, 0 deletions
diff --git a/monitor/monitor-options.hxx b/monitor/monitor-options.hxx
new file mode 100644
index 0000000..aaeefd5
--- /dev/null
+++ b/monitor/monitor-options.hxx
@@ -0,0 +1,192 @@
+// -*- C++ -*-
+//
+// This file was generated by CLI, a command line interface
+// compiler for C++.
+//
+
+#ifndef MONITOR_MONITOR_OPTIONS_HXX
+#define MONITOR_MONITOR_OPTIONS_HXX
+
+// Begin prologue.
+//
+//
+// End prologue.
+
+#include <vector>
+
+#include <string>
+
+#include <cstddef>
+
+#include <cstdint>
+
+#include <mod/module-options.hxx>
+
+namespace brep
+{
+ namespace options
+ {
+ class monitor
+ {
+ public:
+ monitor ();
+
+ monitor (int& argc,
+ char** argv,
+ bool erase = false,
+ ::brep::cli::unknown_mode option = ::brep::cli::unknown_mode::fail,
+ ::brep::cli::unknown_mode argument = ::brep::cli::unknown_mode::stop);
+
+ monitor (int start,
+ int& argc,
+ char** argv,
+ bool erase = false,
+ ::brep::cli::unknown_mode option = ::brep::cli::unknown_mode::fail,
+ ::brep::cli::unknown_mode argument = ::brep::cli::unknown_mode::stop);
+
+ monitor (int& argc,
+ char** argv,
+ int& end,
+ bool erase = false,
+ ::brep::cli::unknown_mode option = ::brep::cli::unknown_mode::fail,
+ ::brep::cli::unknown_mode argument = ::brep::cli::unknown_mode::stop);
+
+ monitor (int start,
+ int& argc,
+ char** argv,
+ int& end,
+ bool erase = false,
+ ::brep::cli::unknown_mode option = ::brep::cli::unknown_mode::fail,
+ ::brep::cli::unknown_mode argument = ::brep::cli::unknown_mode::stop);
+
+ monitor (::brep::cli::scanner&,
+ ::brep::cli::unknown_mode option = ::brep::cli::unknown_mode::fail,
+ ::brep::cli::unknown_mode argument = ::brep::cli::unknown_mode::stop);
+
+ // Option accessors.
+ //
+ const std::size_t&
+ build_timeout () const;
+
+ bool
+ build_timeout_specified () const;
+
+ const std::size_t&
+ report_timeout () const;
+
+ bool
+ report_timeout_specified () const;
+
+ const bool&
+ full_report () const;
+
+ const bool&
+ clean () const;
+
+ const std::string&
+ build_db_user () const;
+
+ bool
+ build_db_user_specified () const;
+
+ const std::string&
+ build_db_password () const;
+
+ bool
+ build_db_password_specified () const;
+
+ const std::string&
+ build_db_name () const;
+
+ bool
+ build_db_name_specified () const;
+
+ const std::string&
+ build_db_host () const;
+
+ bool
+ build_db_host_specified () const;
+
+ const std::uint16_t&
+ build_db_port () const;
+
+ bool
+ build_db_port_specified () const;
+
+ const std::string&
+ pager () const;
+
+ bool
+ pager_specified () const;
+
+ const std::vector<std::string>&
+ pager_option () const;
+
+ bool
+ pager_option_specified () const;
+
+ const bool&
+ help () const;
+
+ const bool&
+ version () const;
+
+ // Print usage information.
+ //
+ static ::brep::cli::usage_para
+ print_usage (::std::ostream&,
+ ::brep::cli::usage_para = ::brep::cli::usage_para::none);
+
+ // Implementation details.
+ //
+ protected:
+ bool
+ _parse (const char*, ::brep::cli::scanner&);
+
+ private:
+ bool
+ _parse (::brep::cli::scanner&,
+ ::brep::cli::unknown_mode option,
+ ::brep::cli::unknown_mode argument);
+
+ public:
+ std::size_t build_timeout_;
+ bool build_timeout_specified_;
+ std::size_t report_timeout_;
+ bool report_timeout_specified_;
+ bool full_report_;
+ bool clean_;
+ std::string build_db_user_;
+ bool build_db_user_specified_;
+ std::string build_db_password_;
+ bool build_db_password_specified_;
+ std::string build_db_name_;
+ bool build_db_name_specified_;
+ std::string build_db_host_;
+ bool build_db_host_specified_;
+ std::uint16_t build_db_port_;
+ bool build_db_port_specified_;
+ std::string pager_;
+ bool pager_specified_;
+ std::vector<std::string> pager_option_;
+ bool pager_option_specified_;
+ bool help_;
+ bool version_;
+ };
+ }
+}
+
+// Print page usage information.
+//
+::brep::cli::usage_para
+print_usage (::std::ostream&,
+ ::brep::cli::usage_para = ::brep::cli::usage_para::none);
+
+#include <monitor/monitor-options.ixx>
+
+// Begin epilogue.
+//
+//
+// End epilogue.
+
+#endif // MONITOR_MONITOR_OPTIONS_HXX