MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / setFile

Method setFile

src/App/MetadataPyImp.cpp:840–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840void 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
855PyObject* MetadataPy::addFile(PyObject* args)
856{

Callers 5

replaceProjectFileMethod · 0.45
SaveDocFileMethod · 0.45
getUniqueFileNameMethod · 0.45
setValueMethod · 0.45
PasteMethod · 0.45

Calls 5

clearTagMethod · 0.80
as_std_stringMethod · 0.80
ExceptionClass · 0.70
ptrMethod · 0.45
addFileMethod · 0.45

Tested by

no test coverage detected