-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathInput.h
More file actions
22 lines (18 loc) · 776 Bytes
/
Input.h
File metadata and controls
22 lines (18 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef INPUT
#define INPUT
#include <map>
#include <vector>
class Input
{
public:
Input(const std::string&);
template<typename T> T get_item(const std::string&, const std::string&, const std::string&);
template<typename T> T get_item(const std::string&, const std::string&, const std::string&, const T);
template<typename T> std::vector<T> get_list(const std::string&, const std::string&, const std::string&);
template<typename T> std::vector<T> get_list(const std::string&, const std::string&, const std::string&, const std::vector<T>);
void print_itemlist();
typedef std::map<std::string, std::map< std::string, std::map<std::string, std::string>>> Itemlist;
private:
Itemlist itemlist;
};
#endif