You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#include <boost/property_tree/json_parser.hpp>
|
|
|
|
|
#include <boost/property_tree/xml_parser.hpp>
|
|
|
|
|
#include <fstream>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include "keybindings.h"
|
|
|
|
|
#include "source.h"
|
|
|
|
|
|
|
|
|
|
class MainConfig {
|
|
|
|
|
public:
|
|
|
|
|
MainConfig();
|
|
|
|
|
Source::Config& source_cfg();
|
|
|
|
|
Keybindings::Config& keybindings_cfg();
|
|
|
|
|
void PrintMenu();
|
|
|
|
|
void GenerateSource();
|
|
|
|
|
void GenerateKeybindings();
|
|
|
|
|
private:
|
|
|
|
|
boost::property_tree::ptree cfg_;
|
|
|
|
|
boost::property_tree::ptree key_tree_;
|
|
|
|
|
Source::Config source_cfg_;
|
|
|
|
|
Keybindings::Config keybindings_cfg_;
|
|
|
|
|
};
|