Add docs for entities
This commit is contained in:
parent
5c1f937793
commit
4bbb286981
7 changed files with 359 additions and 2 deletions
|
|
@ -3,10 +3,23 @@
|
|||
|
||||
#include <QDataStream>
|
||||
|
||||
|
||||
/**
|
||||
* @brief Interface for any serializable object
|
||||
*
|
||||
*/
|
||||
class ISerializable {
|
||||
public:
|
||||
/**
|
||||
* @brief Write-obect-to-disk function
|
||||
*
|
||||
* @param output output stream
|
||||
*/
|
||||
virtual void serialize(QDataStream &output) = 0;
|
||||
/**
|
||||
* @brief Read-object-from-disk function
|
||||
*
|
||||
* @param input input stream
|
||||
*/
|
||||
virtual void deserialize(QDataStream &input) = 0;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue