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
12namespace q3 {
13
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
virtual void write_to_file(const std::string &path) const =0
Write binary data to a file or directory.
virtual ~BinarySerializable()=default