83{
84
85 py::class_<ConfigObject>(m, "_ConfigObject")
86 .def(py::init<>())
87 .def(py::init<const ConfigObject&>())
88 .def("class_name",
90 .def("contained_in",
92 .def("full_name",
94 .def("get_obj",
96 .def("get_objs",
98 .def("get_string",
100 .def("get_bool",
102 .def("get_s8",
104 .def("get_u8",
106 .def("get_s16",
108 .def("get_u16",
110 .def("get_s32",
112 .def("get_u32",
114 .def("get_s64",
116 .def("get_u64",
118 .def("get_float",
120 .def("get_double",
122 .def("get_string_vec",
124 .def("get_bool_vec",
126 .def("get_s8_vec",
128 .def("get_u8_vec",
130 .def("get_s16_vec",
132 .def("get_u16_vec",
134 .def("get_s32_vec",
136 .def("get_u32_vec",
138 .def("get_s64_vec",
140 .def("get_u64_vec",
142 .def("get_float_vec",
144 .def("get_double_vec",
146 .def("rename",
148 .def("set_obj",
149 &
ConfigObject::set_obj,
"Set relationship single-value", py::arg(
"name"), py::arg(
"o"), py::arg(
"skip_non_null_check") =
false)
150 .def("set_objs",
151 &
ConfigObject::set_objs,
"Set relationship multi-value.", py::arg(
"name"), py::arg(
"o"), py::arg(
"skip_non_null_check") =
false)
152 .def("set_class",
153 py::overload_cast<const std::string&, const std::string&>(&
ConfigObject::set_class),
"Set the class name", py::arg(
"name"), py::arg(
"value"))
154 .def("set_date",
155 py::overload_cast<const std::string&, const std::string&>(&
ConfigObject::set_date),
"Set the date", py::arg(
"name"), py::arg(
"value"))
156 .def("set_enum",
157 py::overload_cast<const std::string&, const std::string&>(&
ConfigObject::set_enum),
"Set the enum", py::arg(
"name"), py::arg(
"value"))
158 .def("set_string",
160 .def("set_time",
161 py::overload_cast<const std::string&, const std::string&>(&
ConfigObject::set_time),
"Set the time", py::arg(
"name"), py::arg(
"value"))
162 .def("set_bool",
164 .def("set_s8",
166 .def("set_u8",
168 .def("set_s16",
170 .def("set_u16",
172 .def("set_s32",
174 .def("set_u32",
176 .def("set_s64",
178 .def("set_u64",
180 .def("set_float",
182 .def("set_double",
184 .def("set_bool_vec",
186 .def("set_s8_vec",
188 .def("set_u8_vec",
190 .def("set_s16_vec",
192 .def("set_u16_vec",
194 .def("set_s32_vec",
196 .def("set_u32_vec",
198 .def("set_s64_vec",
200 .def("set_u64_vec",
202 .def("set_float_vec",
204 .def("set_double_vec",
206 .def("set_class_vec",
208 .def("set_date_vec",
210 .def("set_enum_vec",
212 .def("set_string_vec",
214 .def("set_time_vec",
216 .def("UID",
218 ;
219
220}
void set_time(const std::string &name, const std::string &value)
Set attribute time value.
void set_by_val(const std::string &name, T value)
Set attribute value.
ConfigObject * get_obj_pybind(const std::string &attrname)
T get_value_pybind(const std::string &attrname)
void set_date(const std::string &name, const std::string &value)
Set attribute date value.
void set_objs(const std::string &name, const std::vector< const ConfigObject * > &o, bool skip_non_null_check=false)
Set relationship multi-value.
const std::string & UID() const noexcept
Return object identity.
void set_class(const std::string &name, const std::string &value)
Set attribute class value.
void set_list_pybind(const std::string &attrname, std::vector< T > l)
void set_enum(const std::string &name, const std::string &value)
Set attribute enumeration value.
const std::string full_name() const noexcept
Return full object name.
void set_obj(const std::string &name, const ConfigObject *o, bool skip_non_null_check=false)
Set relationship single-value.
void rename(const std::string &new_id)
Rename object.
std::vector< T > get_list_pybind(const std::string &attrname)
const std::string & class_name() const noexcept
Return object's class name.
const std::string contained_in() const
Return the name of the database file this object belongs to.