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
17 namespace Vector {
18 namespace 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::nameLength
uint32_t nameLength
length of variable name in bytes
Definition EnvironmentVariable.h:38
Vector::BLF::EnvironmentVariable::reservedEnvironmentVariable
uint64_t reservedEnvironmentVariable
Definition EnvironmentVariable.h:49
Vector::BLF::EnvironmentVariable::name
std::string name
variable name in MBCS
Definition EnvironmentVariable.h:56
Vector::BLF::EnvironmentVariable::write
void write(AbstractFile &os) override
Definition EnvironmentVariable.cpp:36
Vector::BLF::EnvironmentVariable::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition EnvironmentVariable.cpp:52
Vector::BLF::EnvironmentVariable::read
void read(AbstractFile &is) override
Definition EnvironmentVariable.cpp:22
Vector::BLF::EnvironmentVariable::dataLength
uint32_t dataLength
length of variable data in bytes
Definition EnvironmentVariable.h:46
Vector::BLF::EnvironmentVariable::data
std::vector< uint8_t > data
variable data
Definition EnvironmentVariable.h:63