![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/WorkspaceConversion.h>
Singleton to manage registered workspace conversion functions and apply them to workspace file. More...
Singleton to manage registered workspace conversion functions and apply them to workspace file.
Public Member Functions | |
void | addConversion (WorkspaceConversionFunction conversionFunction) |
Registers the given conversion function, which will be executed every time a workspace is loaded that has a version number less or equal to version. | |
void | convertWorkspace (Properties &properties, int inputVersion, int targetVersion, const Filesystem::Path &workspaceFile) const |
Executes all conversion functions that were registered for a version number in the range of [inputVersion, targetVersion). | |
Static Public Member Functions | |
static WorkspaceConversionRegistry & | instance () |
void convertWorkspace | ( | Properties & | properties, |
int | inputVersion, | ||
int | targetVersion, | ||
const Filesystem::Path & | workspaceFile ) const |
Executes all conversion functions that were registered for a version number in the range of [inputVersion, targetVersion).
Their order is defined by version and order of registration. Provide the absolute workspace file path to allow resolving relative paths within the workspace.