dropshell/source/src/config.hpp
Your Name 462d215d5c
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled
Big refactor
2025-05-23 22:06:37 +12:00

39 lines
859 B
C++

#pragma once
#include <string>
#include <vector>
#define JSON_INLINE_ALL
#include "json.hpp"
namespace dropshell {
class config {
public:
config();
~config();
bool load_config();
bool save_config(bool create_aux_directories);
bool is_config_set() const;
static bool is_agent_installed();
std::vector<std::string> get_template_registry_urls();
std::vector<std::string> get_local_template_paths();
std::vector<std::string> get_local_server_definition_paths();
std::string get_server_create_path();
std::string get_template_create_path();
std::string get_template_upload_url();
std::string get_template_upload_token();
private:
nlohmann::json mConfig;
bool mIsConfigSet;
};
config & gConfig();
} // namespace dropshell