| 71 | } |
| 72 | |
| 73 | inline void PyDictToVectors(const pybind11::dict& dict, std::vector<std::string>& fnames, |
| 74 | std::vector<FieldData>& fdata) { |
| 75 | fnames.clear(); |
| 76 | fdata.clear(); |
| 77 | for (auto it = dict.begin(); it != dict.end(); ++it) { |
| 78 | fnames.push_back(pybind11::str(it->first)); |
| 79 | fdata.push_back(ObjectToFieldData(it->second.cast<pybind11::object>())); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | inline pybind11::object FieldDataToPyObj(const FieldData& data) { |
| 84 | switch (data.type) { |
no test coverage detected