![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/WorkspaceConversion.h>
Structure to describe a conversion of workspace files between different versions. More...
Structure to describe a conversion of workspace files between different versions.
Public Attributes | |
std::string | name |
String describing the intent of the conversion. | |
int | version |
Minimum workspace version when the conversion is to be applied. | |
std::function< bool(Properties &p, const Filesystem::Path &workspaceFile)> | function |
Conversion function applied to a workspace file if its version is less or equal to version. | |
std::string name |
String describing the intent of the conversion.
Will be used for log output to provide better traceability of workspace conversions.
int version |
Minimum workspace version when the conversion is to be applied.
The conversion will be applied if source_version <= version < target_version. The current workspace version is defined by Workspace::WORKSPACE_VERSION
std::function<bool(Properties& p, const Filesystem::Path& workspaceFile)> function |
Conversion function applied to a workspace file if its version is less or equal to version.
The function may alter the Properties directly. The return value indicates whether any changes took place. The provided absolute workspace file path may be used to resolve relative paths in the workspace.