29 lines
657 B
C++
29 lines
657 B
C++
/**
|
|
* @file mix_cc/utility/read_config.h
|
|
* @brief 获取配置信息
|
|
* 配置信息的目录由CMakeLists内的CONFIG_FILE_PATH变量决定
|
|
* @author Cat (null.null.null@qq.com)
|
|
* @version 0.1
|
|
* @date 2021-05-07
|
|
*
|
|
* Copyright: Baosight Co. Ltd.
|
|
* DO NOT COPY/USE WITHOUT PERMISSION
|
|
*
|
|
*/
|
|
#pragma once
|
|
#include <string>
|
|
#include "mix_cc/fp.h"
|
|
#include "mix_cc/json.h"
|
|
|
|
namespace mix_cc {
|
|
|
|
/**
|
|
* @brief Get the config object
|
|
* @param category 配置的类别
|
|
* @param entry 配置对应的类别的入口
|
|
* @return json
|
|
*/
|
|
maybe<json> read_config_maybe(std::string&& category, std::string&& entry);
|
|
|
|
} // namespace mix_cc
|