mirror of https://github.com/SeanOMik/libki.git
17 lines
255 B
C
17 lines
255 B
C
|
#pragma once
|
||
|
#include <istream>
|
||
|
|
||
|
namespace ki
|
||
|
{
|
||
|
namespace util
|
||
|
{
|
||
|
class Serializable
|
||
|
{
|
||
|
public:
|
||
|
virtual void write_to(std::ostream &ostream) const = 0;
|
||
|
virtual void read_from(std::istream &istream) = 0;
|
||
|
virtual size_t get_size() const = 0;
|
||
|
};
|
||
|
}
|
||
|
}
|