aboutsummaryrefslogtreecommitdiff
path: root/src/main/command_line_helper.h
blob: 53a5a5e308cbdddb04e230f5a1ba3b4077349a1c (plain) (blame)
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
//
// Created by thecharlesblake on 10/16/17.
//

#ifndef SOLVITAIRE_COMMAND_LINE_HELPER_H
#define SOLVITAIRE_COMMAND_LINE_HELPER_H

#include <boost/program_options.hpp>

class command_line_helper {
public:
    command_line_helper();
    bool parse(int argc, const char* argv[]);
    void print_help();
    void print_no_input_error();
    void print_no_sol_type_error();
    void print_rand_plus_input_err();
    const std::vector<std::string> get_input_files();
    const std::string get_solitaire_type();
    bool get_random_deal();
    bool get_help();
    bool assess_errors();
private:
    boost::program_options::options_description cmdline_options;
    boost::program_options::options_description main_options;
    boost::program_options::positional_options_description p;

    std::vector<std::string> input_files;
    std::string solitaire_type;
    bool random_deal;
    bool help;
};

#endif //SOLVITAIRE_COMMAND_LINE_HELPER_H