MCPcopy Create free account
hub / github.com/Kitware/ParaView / Finalize

Method Finalize

Remoting/Application/vtkInitializationHelper.cxx:581–606  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

579
580//----------------------------------------------------------------------------
581void vtkInitializationHelper::Finalize()
582{
583 if (vtkInitializationHelper::SaveUserSettingsFileDuringFinalization)
584 {
585 // Write out settings file(s)
586 std::string userSettingsFilePath = vtkPVStandardPaths::GetUserSettingsFilePath();
587 vtkSMSettings* settings = vtkSMSettings::GetInstance();
588 bool savingSucceeded =
589 settings->SaveSettingsToFile(userSettingsFilePath, vtkSMSettings::GetUserPriority());
590 if (!savingSucceeded)
591 {
592 vtkGenericWarningMacro(<< "Saving settings file to '" << userSettingsFilePath << "' failed");
593 }
594 }
595
596 // pop GLOBAL scope
597 vtkPVStringFormatter::PopScope();
598 // pop ENV scope
599 vtkPVStringFormatter::PopScope();
600
601 vtkSMProxyManager::Finalize();
602 vtkProcessModule::Finalize();
603
604 // Optional: Delete all global objects allocated by libprotobuf.
605 google::protobuf::ShutdownProtobufLibrary();
606}
607
608//----------------------------------------------------------------------------
609void vtkInitializationHelper::StandaloneFinalize()

Callers

nothing calls this directly

Calls 4

GetUserSettingsFilePathFunction · 0.85
ShutdownProtobufLibraryFunction · 0.85
SaveSettingsToFileMethod · 0.80
FinalizeFunction · 0.50

Tested by

no test coverage detected