Vector BLF

Loading...
Searching...
No Matches
LinSpikeEvent.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 <Vector/BLF/AbstractFile.h>
10#include <Vector/BLF/ObjectHeader.h>
11
12#include <Vector/BLF/vector_blf_export.h>
13
14 namespace Vector {
15 namespace BLF {
16
25 struct VECTOR_BLF_EXPORT LinSpikeEvent final : ObjectHeader {
26 LinSpikeEvent();
27
28 void read(AbstractFile & is) override;
29 void write(AbstractFile & os) override;
30 uint32_t calculateObjectSize() const override;
31
37 uint16_t channel {};
38
40 uint16_t reservedLinSpikeEvent {};
41
47 uint32_t width {};
48};
49
50}
51}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::LinSpikeEvent::width
uint32_t width
the spike's width
Definition LinSpikeEvent.h:47
Vector::BLF::LinSpikeEvent::reservedLinSpikeEvent
uint16_t reservedLinSpikeEvent
Definition LinSpikeEvent.h:40
Vector::BLF::LinSpikeEvent::channel
uint16_t channel
application channel
Definition LinSpikeEvent.h:37
Vector::BLF::LinSpikeEvent::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition LinSpikeEvent.cpp:28
Vector::BLF::LinSpikeEvent::write
void write(AbstractFile &os) override
Definition LinSpikeEvent.cpp:21
Vector::BLF::LinSpikeEvent::read
void read(AbstractFile &is) override
Definition LinSpikeEvent.cpp:14