19 lines
393 B
C++
19 lines
393 B
C++
|
|
#pragma once
|
|
#include <TestProject/DCR/fp.h>
|
|
#include <nlohmann/json.hpp>
|
|
#include <string>
|
|
namespace DCR {
|
|
|
|
using namespace nlohmann;
|
|
|
|
/**
|
|
* @brief Get the config object
|
|
* @param category 配置的类别
|
|
* @param entry 配置对应的类别的入口
|
|
* @return json
|
|
*/
|
|
maybe<json> read_config_maybe(std::string&& category, std::string&& entry);
|
|
|
|
} // namespace DCR
|