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
16 namespace Vector {
17 namespace 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::source
uint32_t source
source of text
Definition AppText.h:82
Vector::BLF::AppText::write
void write(AbstractFile &os) override
Definition AppText.cpp:29
Vector::BLF::AppText::reservedAppText1
uint32_t reservedAppText1
reserved
Definition AppText.h:89
Vector::BLF::AppText::reservedAppText2
uint32_t reservedAppText2
Definition AppText.h:99
Vector::BLF::AppText::textLength
uint32_t textLength
text length in bytes
Definition AppText.h:96
Vector::BLF::AppText::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition AppText.cpp:44
Vector::BLF::AppText::read
void read(AbstractFile &is) override
Definition AppText.cpp:16
Vector::BLF::AppText::text
std::string text
text in MBCS
Definition AppText.h:106
Vector::BLF::AppText::Source
Source
Definition AppText.h:33
Vector::BLF::AppText::DbChannelInfo
@ DbChannelInfo
Definition AppText.h:38
Vector::BLF::AppText::MetaData
@ MetaData
Definition AppText.h:41
Vector::BLF::AppText::MeasurementComment
@ MeasurementComment
Definition AppText.h:35