Vector BLF: AppText.h Source File

Vector BLF

Loading...
Searching...
No Matches
AppText.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 <string>
10
11#include <Vector/BLF/AbstractFile.h>
12#include <Vector/BLF/ObjectHeader.h>
13
14#include <Vector/BLF/vector_blf_export.h>
15
16namespace Vector {
17namespace BLF {
18
25 struct VECTOR_BLF_EXPORT AppText final : ObjectHeader {
26 AppText();
27
28 void read(AbstractFile & is) override;
29 void write(AbstractFile & os) override;
30 uint32_t calculateObjectSize() const override;
31
33 enum Source : uint32_t {
35 MeasurementComment = 0x00000000,
36
38 DbChannelInfo = 0x00000001,
39
41 MetaData = 0x00000002,
42 };
43
82 uint32_t source {};
83
89 uint32_t reservedAppText1 {};
90
96 uint32_t textLength {};
97
99 uint32_t reservedAppText2 {};
100
106 std::string text {};
107};
108
109}
110}
Vector::BLF::AbstractFile
Definition: AbstractFile.h:19
Vector::BLF::AppText
APP_TEXT.
Definition: AppText.h:25
Vector::BLF::AppText::Source
Source
Definition: AppText.h:33
Vector::BLF::ObjectHeader
Object header.
Definition: ObjectHeader.h:22