/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Tools/Libs/ToolsFoundation/Serialization/ToolsSerializationUtils.h
23 строки
1014 B
Jan Krassnigg
Added a few documentation comments
10 июл 2025, 10:23
10 июл 2025, 10:23
892ad83
Код
Авторство
О чём код?
#pragma once #include <Foundation/Serialization/AbstractObjectGraph.h> #include <ToolsFoundation/Reflection/ReflectedType.h> class ezDocumentObjectManager; class ezDocumentObject; class ezRTTI; /// \brief Provides helper functions for serializing document object types and copying properties between objects. /// /// Also check out ezToolsReflectionUtils for related functionality. class EZ_TOOLSFOUNDATION_DLL ezToolsSerializationUtils { public: using FilterFunction = ezDelegate<bool(const ezAbstractProperty*)>; /// \brief Serializes the given set of types into the provided object graph. static void SerializeTypes(const ezSet<const ezRTTI*>& types, ezAbstractObjectGraph& ref_typesGraph); /// \brief Copies properties from a source document object to a target object, optionally filtering properties. static void CopyProperties(const ezDocumentObject* pSource, const ezDocumentObjectManager* pSourceManager, void* pTarget, const ezRTTI* pTargetType, FilterFunction propertFilter = nullptr); };