Vector BLF: EnvironmentVariable.h Source File

Vector BLF

Loading...
Searching...
No Matches
EnvironmentVariable.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#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
25 struct VECTOR_BLF_EXPORT EnvironmentVariable final : ObjectHeader {
26 EnvironmentVariable(/*const ObjectType objectType*/);
27
28 void read(AbstractFile & is) override;
29 void write(AbstractFile & os) override;
30 uint32_t calculateObjectSize() const override;
31
38 uint32_t nameLength {};
39
46 uint32_t dataLength {};
47
49 uint64_t reservedEnvironmentVariable {};
50
56 std::string name {};
57
63 std::vector<uint8_t> data {};
64};
65
66}
67}
Vector::BLF::AbstractFile
Definition: AbstractFile.h:19
Vector::BLF::EnvironmentVariable
ENV_INTEGER, ENV_DOUBLE, ENV_STRING, ENV_DATA.
Definition: EnvironmentVariable.h:25
Vector::BLF::ObjectHeader
Object header.
Definition: ObjectHeader.h:22