This version of fourdst (v0.9.14) brings in the version libconfig which includes reflection based config filed (v2.0.2). This is a breaking change as any code which used versions of libconfig < v2.0.0 will no longer function when linked against this version of fourdst
18 lines
593 B
C++
18 lines
593 B
C++
#include "bindings.h"
|
|
|
|
#include <pybind11/pybind11.h>
|
|
#include "fourdst/config/config.h"
|
|
|
|
void register_config_enums(const pybind11::module_& m) {
|
|
using namespace fourdst::config;
|
|
pybind11::enum_<ConfigState>(m, "ConfigState")
|
|
.value("DEFAULT", ConfigState::DEFAULT)
|
|
.value("LOADED_FROM_FILE", ConfigState::LOADED_FROM_FILE)
|
|
.export_values();
|
|
|
|
pybind11::enum_<RootNameLoadPolicy>(m, "RootNameLoadPolicy")
|
|
.value("FROM_FILE", RootNameLoadPolicy::FROM_FILE)
|
|
.value("KEEP_CURRENT", RootNameLoadPolicy::KEEP_CURRENT)
|
|
.export_values();
|
|
}
|