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

Method setTag

src/App/MetadataPyImp.cpp:751–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749}
750
751void MetadataPy::setTag(Py::List args)
752{
753 PyObject* list = nullptr;
754 if (!PyArg_Parse(args.ptr(), "O!", &PyList_Type, &list)) {
755 throw Py::Exception();
756 }
757
758 getMetadataPtr()->clearTag();
759 Py::List tags(list);
760 for (const auto& tag : tags) {
761 Py::String pyTag(tag);
762 getMetadataPtr()->addTag(pyTag.as_std_string());
763 }
764}
765
766PyObject* MetadataPy::addTag(PyObject* args)
767{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected