XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGraphPatchContext Class Reference

#include <GraphVersioning.h>

Public Member Functions

void PatchBaseClass (xiiStringView sType, xiiUInt32 uiTypeVersion, bool bForcePatch=false)
void RenameClass (xiiStringView sTypeName)
 Renames current class type.
void RenameClass (xiiStringView sTypeName, xiiUInt32 uiVersion)
 Renames current class type.
void ChangeBaseClass (xiiArrayPtr< xiiVersionKey > baseClasses)
 Changes the base class hierarchy to the given one.

Friends

class xiiGraphVersioning

Detailed Description

Handles the patching of a node. Is passed into the patch classes to provide utility functions and track the node's patching progress.

Member Function Documentation

◆ PatchBaseClass()

void xiiGraphPatchContext::PatchBaseClass ( xiiStringView sType,
xiiUInt32 uiTypeVersion,
bool bForcePatch = false )

Ensures that the base class named szType is at version uiTypeVersion. If bForcePatch is set, the current version of the base class is reset back to force the execution of this patch if necessary. This is mainly necessary for backwards compatibility with patches that were written before the type information of all base classes was written to the doc.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Serialization/GraphVersioning.h
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Serialization/Implementation/GraphVersioning.cpp