Allows a class to be serialized.
More...
#include <Serializable.hpp>
|
| | Serializable () noexcept=default |
| | Constructor.
|
| | Serializable (Serializable &&) noexcept=default |
| | Move constructor.
|
| | Serializable (const Serializable &) noexcept=default |
| | Copy constructor.
|
Allows a class to be serialized.
A class wanting to gain serializability must inherit from this class and implement the interface.
Definition at line 20 of file Serializable.hpp.
◆ ~Serializable()
| galaxy::Serializable::~Serializable |
( |
| ) |
|
|
virtual |
◆ Serializable() [1/3]
| galaxy::Serializable::Serializable |
( |
| ) |
|
|
protecteddefaultnoexcept |
◆ Serializable() [2/3]
| galaxy::Serializable::Serializable |
( |
Serializable && | | ) |
|
|
protecteddefaultnoexcept |
◆ Serializable() [3/3]
| galaxy::Serializable::Serializable |
( |
const Serializable & | | ) |
|
|
protecteddefaultnoexcept |
◆ operator=() [1/2]
Move assignment operator.
◆ operator=() [2/2]
Copy assignment operator.
◆ serialize()
| virtual nlohmann::json galaxy::Serializable::serialize |
( |
| ) |
|
|
nodiscardpure virtual |
◆ deserialize()
| virtual void galaxy::Serializable::deserialize |
( |
const nlohmann::json & | json | ) |
|
|
pure virtual |
The documentation for this class was generated from the following files: