5#include <pybind11/pybind11.h>
10#include <ChimeraTK/VariantUserTypes.h>
25 UserTypeVariantNoVoid
get(
26 ChimeraTK::DataType dt,
const std::string& path, std::optional<UserTypeVariantNoVoid> defaultValue);
28 template<
typename UserType>
29 using Vector = std::vector<UserType>;
32 UserTypeTemplateVariantNoVoid<Vector>
getArray(ChimeraTK::DataType dt,
const std::string& path,
33 std::optional<UserTypeTemplateVariantNoVoid<Vector>> defaultValue);
35 std::list<std::string>
getModules(
const std::string& path) {
return _reader.get().getModules(path); }
40 std::reference_wrapper<ConfigReader> _reader;
Generic module to read an XML config file and provide the defined values as constant variables.
static void bind(py::module &mod)
UserTypeTemplateVariantNoVoid< Vector > getArray(ChimeraTK::DataType dt, const std::string &path, std::optional< UserTypeTemplateVariantNoVoid< Vector > > defaultValue)
PyConfigReader(ConfigReader &wrappedReader)
std::vector< UserType > Vector
std::list< std::string > getModules(const std::string &path)
UserTypeVariantNoVoid get(ChimeraTK::DataType dt, const std::string &path, std::optional< UserTypeVariantNoVoid > defaultValue)
InvalidityTracer application module.