return this == Model_Session::get()->moduleDocument().get();
}
+// LCOV_EXCL_START
/// Makes all modification and generation naming shapes that have old shapes corresponding to
/// shapes in a root document be equal to this root document
static void updateShapesFromRoot(const TDF_Label theThisAccess, const TDF_Label theRootAccess)
}
}
}
+// LCOV_EXCL_STOP
bool Model_Document::load(const char* theDirName, const char* theFileName, DocumentPtr theThis)
{
}
bool isError = aStatus != PCDM_RS_OK;
if (isError) {
+ // LCOV_EXCL_START
switch (aStatus) {
case PCDM_RS_UnknownDocument:
Events_InfoMessage("Model_Document", "Can not open document").send();
Events_InfoMessage("Model_Document", "Can not open document: unknown error").send();
break;
}
+ // LCOV_EXCL_STOP
}
std::shared_ptr<Model_Session> aSession =
std::dynamic_pointer_cast<Model_Session>(Model_Session::get());
// update the current features status
setCurrentFeature(currentFeature(false), false);
}
-
+// this is used for creation of undo/redo1-list by GUI
+// LCOV_EXCL_START
std::list<std::string> Model_Document::undoList() const
{
std::list<std::string> aResult;
}
return aResult;
}
+// LCOV_EXCL_STOP
void Model_Document::operationId(const std::string& theId)
{
return myObjs->isLater(theLater, theCurrent);
}
+// Object Browser nodes states
+// LCOV_EXCL_START
void Model_Document::storeNodesState(const std::list<bool>& theStates)
{
TDF_Label aLab = generalLabel().FindChild(TAG_NODES_STATE);
}
}
}
+// LCOV_EXCL_STOP
void Model_Document::eraseAllFeatures()
{