Plasma Engine  2.0
Loading...
Searching...
No Matches
ToolsSerializationUtils.h
1#pragma once
2
3#include <Foundation/Serialization/AbstractObjectGraph.h>
4#include <ToolsFoundation/Reflection/ReflectedType.h>
5
8class plRTTI;
9
13class PL_TOOLSFOUNDATION_DLL plToolsSerializationUtils
14{
15public:
16 using FilterFunction = plDelegate<bool(const plAbstractProperty*)>;
17
18 static void SerializeTypes(const plSet<const plRTTI*>& types, plAbstractObjectGraph& ref_typesGraph);
19
20 static void CopyProperties(const plDocumentObject* pSource, const plDocumentObjectManager* pSourceManager, void* pTarget, const plRTTI* pTargetType, FilterFunction propertFilter = nullptr);
21};
Definition AbstractObjectGraph.h:115
This is the base interface for all properties in the reflection system. It provides enough informatio...
Definition AbstractProperty.h:150
Definition DocumentObjectBase.h:11
Represents to content of a document. Every document has exactly one root object under which all objec...
Definition DocumentObjectManager.h:116
This class holds information about reflected types. Each instance represents one type that is known t...
Definition RTTI.h:30
Definition Set.h:238
Helper functions for serializing data.
Definition ToolsSerializationUtils.h:14
A generic delegate class which supports static functions and member functions.
Definition Delegate.h:76