Vector BLF: SingleByteSerialEvent.h Source File

Vector BLF

Loading...
Searching...
No Matches
SingleByteSerialEvent.h
1// SPDX-FileCopyrightText: 2013-2021 Tobias Lorenz <tobias.lorenz@gmx.net>
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#pragma once
6
7#include <Vector/BLF/platform.h>
8
9#include <array>
10#include <vector>
11
12#include <Vector/BLF/AbstractFile.h>
13#include <Vector/BLF/ObjectHeader.h>
14
15#include <Vector/BLF/vector_blf_export.h>
16
17namespace Vector {
18namespace BLF {
19
23 struct VECTOR_BLF_EXPORT SingleByteSerialEvent final {
24 SingleByteSerialEvent() = default;
25 virtual ~SingleByteSerialEvent() noexcept = default;
26 SingleByteSerialEvent(const SingleByteSerialEvent &) = default;
27 SingleByteSerialEvent & operator=(const SingleByteSerialEvent &) = default;
28 SingleByteSerialEvent(SingleByteSerialEvent &&) = default;
29 SingleByteSerialEvent & operator=(SingleByteSerialEvent &&) = default;
30
32 virtual void read(AbstractFile & is);
33
35 virtual void write(AbstractFile & os);
36
38 virtual uint32_t calculateObjectSize() const;
39
41 uint8_t byte {};
42};
43
44}
45}
Vector::BLF::AbstractFile
Definition: AbstractFile.h:19
Vector::BLF::SingleByteSerialEvent
Definition: SingleByteSerialEvent.h:23