使用boost pfr 遍历结构体
This commit is contained in:
@@ -108,10 +108,7 @@ void read(MLAT_Data *buf, std::uint16_t *len) {
|
||||
|
||||
MLAT_Config::MLAT_Config() {}
|
||||
void MLAT_Config::init(const Psc::JSON *that_json) {
|
||||
enable = that_json->get_bool("enable");
|
||||
merge = that_json->get_bool("merge");
|
||||
library_path = that_json->get_string("library_path");
|
||||
function_name = that_json->get_string("function_name");
|
||||
MLAT_Config_Data::from_base_json(that_json);
|
||||
if (enable) {
|
||||
{
|
||||
auto r = Psc::try_load_library(Psc::get_abs_path(library_path));
|
||||
|
||||
Reference in New Issue
Block a user