/** * * ConfigLoader.h * An Tao * * Copyright 2018, An Tao. All rights reserved. * https://github.com/an-tao/drogon * Use of this source code is governed by a MIT license * that can be found in the License file. * * Drogon * */ #pragma once #include #include #include namespace drogon { class ConfigLoader : public trantor::NonCopyable { public: explicit ConfigLoader(const std::string &configFile); ~ConfigLoader(); void load(); private: std::string _configFile; Json::Value _configJsonRoot; }; } // namespace drogon