rdbstats  2.0.9
Options.h
1 #ifndef OPTIONS_HPP
2 #define OPTIONS_HPP
3 
4 #include <ostream>
5 #include <string>
6 #include <vector>
7 #include <iterator>
8 
9 #include "RdbStats.h"
10 
11 struct Options {
12 
13  std::vector<std::string> include_exact;
14  std::vector<std::string> include_re;
15  std::vector<std::string> exclude_exact;
16  std::vector<std::string> exclude_re;
17 
18  bool all = false;
19  std::vector<std::string> group;
20  std::string input;
21  Normalize normalize = Normalize::None;
22  std::string output;
23  DefOverrideList override_defn;
24  PercentileList percentiles;
25  bool quartiles = false;
26  std::vector<std::string> rows;
27  bool manual = false;
28  bool version = false;
29 
30  Options( int argc, char* argv[] );
31  int exit_value = 0;
32  bool exit_requested = false;
33 
34  void print( std::ostream &os );
35 };
36 
37 std::ostream& operator << ( std::ostream& os, Options& a );
38 
39 
40 
41 #endif // ! OPTIONS_HPP