aboutsummaryrefslogtreecommitdiff
path: root/monitor/pregenerated/monitor/monitor-options.hxx
blob: ac0e89e8427d815a60955d23659f7cf8538d9977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
// -*- 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&
      soft_rebuild_timeout () const;

      bool
      soft_rebuild_timeout_specified () const;

      const std::size_t&
      hard_rebuild_timeout () const;

      bool
      hard_rebuild_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 soft_rebuild_timeout_;
      bool soft_rebuild_timeout_specified_;
      std::size_t hard_rebuild_timeout_;
      bool hard_rebuild_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