MTMS main
Modern Turing Machine Simulator
Loading...
Searching...
No Matches
program.hpp
Go to the documentation of this file.
1
10#include <cstdlib>
11#include <string>
12
13namespace Program
14{
15struct Options
16{
17 bool batch_exec = false;
18 bool show_help = false;
19 int err_code = EXIT_SUCCESS;
20 std::string err_msg;
21 std::string config_file;
22 std::string output_file;
23 std::string input;
24};
25
26void print_usage();
27void print_help();
28void parse_args(int argc, char* argv[], Program::Options &options);
29}; // namespace Program
void parse_args(int argc, char *argv[], Program::Options &options)
Definition program.cpp:42
void print_help()
Definition program.cpp:25
void print_usage()
Definition program.cpp:17
std::string config_file
Definition program.hpp:21
std::string input
Definition program.hpp:23
std::string output_file
Definition program.hpp:22
std::string err_msg
Definition program.hpp:20