| 838 | } |
| 839 | |
| 840 | void MetadataPy::setFile(Py::List args) |
| 841 | { |
| 842 | PyObject* list = nullptr; |
| 843 | if (!PyArg_Parse(args.ptr(), "O!", &PyList_Type, &list)) { |
| 844 | throw Py::Exception(); |
| 845 | } |
| 846 | |
| 847 | getMetadataPtr()->clearTag(); |
| 848 | Py::List files(list); |
| 849 | for (const auto& file : files) { |
| 850 | Py::String pyFile(file); |
| 851 | getMetadataPtr()->addFile(pyFile.as_std_string()); |
| 852 | } |
| 853 | } |
| 854 | |
| 855 | PyObject* MetadataPy::addFile(PyObject* args) |
| 856 | { |
no test coverage detected