Plasma Engine  2.0
Loading...
Searching...
No Matches
plSerializationContext< Derived > Class Template Reference

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

#include <SerializationContext.h>

Public Member Functions

void SetActive (bool bActive)
 Set the context as active which means it can be accessed via GetContext in serialization methods.
 

Detailed Description

template<typename Derived>
class plSerializationContext< Derived >

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 plSerializationContext< 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: