#ifndef GLOBALINFO_H #define GLOBALINFO_H #include "nlohmann/json.hpp" #define nJson nlohmann::json /*********************** 全局配置 ************************/ #define GConfig GlobalConfig::getInstance() class GlobalConfig { GlobalConfig() {} GlobalConfig(const GlobalConfig&) = delete; GlobalConfig& operator=(const GlobalConfig&) = delete; public: ~GlobalConfig(); GlobalConfig& getInstance() { static GlobalConfig gConfig; return gConfig; } }; #endif /* GLOBALINFO_H */