mirror of https://gitlab.com/cppit/jucipp
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.
23 lines
635 B
23 lines
635 B
#ifndef JUCI_CONFIG_H_ |
|
#define JUCI_CONFIG_H_ |
|
#include <boost/property_tree/json_parser.hpp> |
|
#include "menu.h" |
|
|
|
class MainConfig { |
|
public: |
|
MainConfig(); |
|
void find_or_create_config_files(); |
|
void retrieve_config(); |
|
bool check_config_file(const boost::property_tree::ptree &default_cfg, std::string parent_path=""); |
|
void update_config_file(); |
|
void PrintMenu(); |
|
void GenerateSource(); |
|
void GenerateDirectoryFilter(); |
|
const boost::filesystem::path& juci_home_path() { return home; } const; |
|
|
|
private: |
|
std::vector<std::string> init_home_path(); |
|
boost::property_tree::ptree cfg; |
|
boost::filesystem::path home; |
|
}; |
|
#endif
|
|
|