MLBookProc 1.0
 
Loading...
Searching...
No Matches
ArchEntry.h
1/*
2 * Copyright (C) 2024-2025 Yury Bobylev <bobilev_yury@mail.ru>
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation, version 3.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program. If not, see <https://www.gnu.org/licenses/>.
15 */
16
17#ifndef ZIPFILEENTRY_H
18#define ZIPFILEENTRY_H
19
20#include <cstdint>
21#include <string>
22
31{
32public:
37
41 ArchEntry(const ArchEntry &other);
42
47
51 ArchEntry &
52 operator=(const ArchEntry &other);
53
57 ArchEntry &
59
63 uint64_t size = 0;
64
68 uint64_t compressed_size = 0;
69
73 int64_t position = -1;
74
78 std::string filename;
79};
80
81#endif // ZIPFILEENTRY_H
int64_t position
Position of entry in archive file (if available, -1 otherwise).
Definition ArchEntry.h:73
uint64_t size
Size of unpacked entry object (if available, 0 otherwise).
Definition ArchEntry.h:63
ArchEntry(const ArchEntry &other)
ArchEntry copy constructor.
ArchEntry(ArchEntry &&other)
ArchEntry move constructor.
ArchEntry & operator=(const ArchEntry &other)
operator =
uint64_t compressed_size
Size of compressed object (if available, 0 otherwise).
Definition ArchEntry.h:68
ArchEntry()
ArchEntry constructor.
std::string filename
Path to file or directory in archive.
Definition ArchEntry.h:78
ArchEntry & operator=(ArchEntry &&other)
operator =