Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::ProjectSerializer Class Reference

Handles serialization and deserialization of Project configurations. More...

#include <ProjectSerializer.h>

Public Member Functions

 ProjectSerializer (Ref< Project > project)
 Constructs a ProjectSerializer for the given Project.
bool Serialize (const std::filesystem::path &filepath)
 Serializes the current Project configuration to a JSON file.
bool Deserialize (const std::filesystem::path &filepath)
 Deserializes the Project configuration from a JSON file.

Detailed Description

Handles serialization and deserialization of Project configurations.

This class manages saving and loading the Project's configuration to and from JSON files using the glaze serialization library.

Constructor & Destructor Documentation

◆ ProjectSerializer()

Raven::ProjectSerializer::ProjectSerializer ( Ref< Project > project)
explicit

Constructs a ProjectSerializer for the given Project.

Parameters
projectReference-counted pointer to the Project instance.

Member Function Documentation

◆ Deserialize()

bool Raven::ProjectSerializer::Deserialize ( const std::filesystem::path & filepath)

Deserializes the Project configuration from a JSON file.

Parameters
filepathFilesystem path to the project file to load.
Returns
true if deserialization succeeds, false otherwise.

◆ Serialize()

bool Raven::ProjectSerializer::Serialize ( const std::filesystem::path & filepath)

Serializes the current Project configuration to a JSON file.

Parameters
filepathFilesystem path where the project file will be saved.
Returns
true if serialization succeeds, false otherwise.

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