XII Release 0.1.0
Loading...
Searching...
No Matches
xiiSerializationContext< Derived > Class Template Reference

Copyright (c) Theophilus Eriata. All Rights Reserved. More...

#include <SerializationContext.h>

Public Member Functions

void SetActive (bool bActive)

Detailed Description

template<typename Derived>
class xiiSerializationContext< Derived >

Copyright (c) Theophilus Eriata. All Rights Reserved.

Base class for serialization contexts. A serialization context can be used to add high level logic to serialization, e.g. de-duplicating objects.

Typically a context is created before any serialization happens and can then be accessed anywhere through the GetContext method.

Member Function Documentation

◆ SetActive()

template<typename Derived>
void xiiSerializationContext< Derived >::SetActive ( bool bActive)
inline

Set the context as active which means it can be accessed via GetContext in serialization methods.

It can be useful to manually set a context as active if a serialization process is spread across multiple scopes and other serialization can happen in between.


The documentation for this class was generated from the following file: