Quantum 3xplorer (Q3)
Loading...
Searching...
No Matches
binary_serializable.hpp
Go to the documentation of this file.
1
#pragma once
2
3
/**
4
* Mixin providing binary serialization with file output.
5
*
6
* Classes inheriting this mixin must implement write_to_file()
7
* to handle the actual binary writing.
8
*/
9
10
#include <string>
11
12
namespace
q3
{
13
14
class
BinarySerializable
{
15
public
:
16
virtual
~BinarySerializable
() =
default
;
17
18
/// Write binary data to a file or directory.
19
virtual
void
write_to_file
(
const
std::string& path)
const
= 0;
20
};
21
22
}
// namespace q3
q3::BinarySerializable
Definition
binary_serializable.hpp:14
q3::BinarySerializable::write_to_file
virtual void write_to_file(const std::string &path) const =0
Write binary data to a file or directory.
q3::BinarySerializable::~BinarySerializable
virtual ~BinarySerializable()=default
q3
Definition
q3_core_api.hpp:33
src
io
mixins
binary_serializable.hpp
Generated by
1.9.8