|
Nameless Engine
|
#include <IBinaryFieldSerializer.hpp>
Public Member Functions | |
| virtual bool | isFieldTypeSupported (const rfk::Field *pField)=0 |
| virtual std::variant< std::string, Error > | serializeField (const std::filesystem::path &pathToOutputDirectory, const std::string &sFilenameWithoutExtension, Serializable *pFieldOwner, const rfk::Field *pField)=0 |
| virtual std::optional< Error > | deserializeField (const std::filesystem::path &pathToBinaryFile, Serializable *pFieldOwner, const rfk::Field *pField)=0 |
Interface for implementing support for binary serialization of new field types.
|
pure virtual |
Deserializes data from a binary file into the specified field.
| pathToBinaryFile | Path to the binary file to deserialize. |
| pFieldOwner | Field's owner. |
| pField | Field to deserialize TOML value to. |
Implemented in ne::MeshDataBinaryFieldSerializer.
|
pure virtual |
Tests if this serializer supports serialization/deserialization of this field.
| pField | Field to test for serialization/deserialization support. |
true if this serializer can be used to serialize this field, false otherwise. Implemented in ne::MeshDataBinaryFieldSerializer.
|
pure virtual |
Serializes the specified field into a binary file.
| pathToOutputDirectory | Path to the directory where the resulting file will be located. |
| sFilenameWithoutExtension | Name of the resulting file without extension. |
| pFieldOwner | Field's owner. |
| pField | Field to serialize. |
.meshbin. Implemented in ne::MeshDataBinaryFieldSerializer.