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