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

Method setDocumentObjectName

src/App/ObjectIdentifier.cpp:1327–1342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1325}
1326
1327void ObjectIdentifier::setDocumentObjectName(ObjectIdentifier::String&& name,
1328 bool force,
1329 ObjectIdentifier::String&& subname,
1330 bool checkImport)
1331{
1332 if (checkImport) {
1333 name.checkImport(owner);
1334 subname.checkImport(owner, nullptr, &name);
1335 }
1336
1337 documentObjectName = std::move(name);
1338 documentObjectNameSet = force;
1339 subObjectName = std::move(subname);
1340
1341 _cache.clear();
1342}
1343
1344void ObjectIdentifier::setDocumentObjectName(const App::DocumentObject* obj,
1345 bool force,

Callers 5

yyparseFunction · 0.80
relativeToMethod · 0.80
setBoundToByNameMethod · 0.80
prepareMethod · 0.80

Calls 10

setDocumentNameFunction · 0.85
checkImportMethod · 0.80
isRealStringMethod · 0.80
StringClass · 0.70
moveFunction · 0.50
clearMethod · 0.45
isAttachedToDocumentMethod · 0.45
getDocumentMethod · 0.45
getNameMethod · 0.45
getNameInDocumentMethod · 0.45

Tested by

no test coverage detected