eis/mix_cc/utility/read_config.h

29 lines
657 B
C
Raw Normal View History

/**
* @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