123456789101112131415161718192021222324252627282930313233343536 |
- #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 */
|