ImFusion SDK 4.3
WorkspaceConversionRegistry Class Reference

#include <ImFusion/GUI/WorkspaceConversion.h>

Singleton to manage registered workspace conversion functions and apply them to workspace file. More...

Detailed Description

Singleton to manage registered workspace conversion functions and apply them to workspace file.

See also
Workspace

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 WorkspaceConversionRegistryinstance ()
 

Member Function Documentation

◆ convertWorkspace()

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.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close