2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
// author: Max Kellermann <max.kellermann@gmail.com>
|
2014-07-30 19:10:28 +02:00
|
|
|
|
2019-02-19 12:39:29 +01:00
|
|
|
#ifndef OUTPUT_STREAM_HXX
|
|
|
|
#define OUTPUT_STREAM_HXX
|
2014-07-30 19:10:28 +02:00
|
|
|
|
2020-03-13 00:46:28 +01:00
|
|
|
#include <cstddef>
|
2014-07-30 19:10:28 +02:00
|
|
|
|
|
|
|
class OutputStream {
|
|
|
|
public:
|
|
|
|
OutputStream() = default;
|
|
|
|
OutputStream(const OutputStream &) = delete;
|
|
|
|
|
2015-12-16 10:24:43 +01:00
|
|
|
/**
|
|
|
|
* Throws std::exception on error.
|
|
|
|
*/
|
2021-12-07 11:49:59 +01:00
|
|
|
virtual void Write(const void *data, std::size_t size) = 0;
|
2014-07-30 19:10:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|