Spike
Loading...
Searching...
No Matches
IO.h
Go to the documentation of this file.
1
5#ifndef SPIKE_IO_H
6#define SPIKE_IO_H
7
8#include <iostream>
9#include <string>
10
11namespace Spike {
12
17class IO {
18 private:
19 std::string input_file;
20 std::string output_file;
21 std::string ending;
22 void (*help)();
23
24 public:
31 IO(void (*help)(), const std::string &ending)
32 : ending(ending), help(help){};
33
40 void parse_args(int argc, char *argv[]);
41
47 const std::string &get_input_file() const { return input_file; };
48
54 const std::string &get_output_file() const { return output_file; };
55};
56
57} // namespace Spike
58
59#endif // SPIKE_IO_H
Implements an input-output interface. Reads the command line for an input file and defines according ...
Definition IO.h:17
const std::string & get_output_file() const
Get the path to output file.
Definition IO.h:54
const std::string & get_input_file() const
Get the path to input file.
Definition IO.h:47
void parse_args(int argc, char *argv[])
Parses command line arguments.
Definition IO.cpp:11
IO(void(*help)(), const std::string &ending)
Construct a new IO object.
Definition IO.h:31