MLBookProc 1.0
 
Loading...
Searching...
No Matches
ArchiveFileEntry.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 ARCHIVEFILEENTRY_H
18#define ARCHIVEFILEENTRY_H
19
20#include <archive_entry.h>
21#include <filesystem>
22#include <fstream>
23
31{
32public:
37
42
46 std::fstream file;
47
51 std::filesystem::path file_path;
52
56 la_ssize_t buf_sz = 1048576;
57
61 la_ssize_t read_bytes = 0;
62
66 la_ssize_t file_size = 0;
67
71 char *read_buf = nullptr;
72};
73
74#endif // ARCHIVEFILEENTRY_H
std::fstream file
Archive file stream.
Definition ArchiveFileEntry.h:46
char * read_buf
Buffer to be used in file stream.
Definition ArchiveFileEntry.h:71
ArchiveFileEntry()
ArchiveFileEntry constructor.
la_ssize_t buf_sz
Size of buffer to be used in file stream.
Definition ArchiveFileEntry.h:56
la_ssize_t file_size
Archive file size.
Definition ArchiveFileEntry.h:66
std::filesystem::path file_path
Archive file absolute path.
Definition ArchiveFileEntry.h:51
virtual ~ArchiveFileEntry()
ArchiveFileEntry destructor.
la_ssize_t read_bytes
Number of bites already read from archive file.
Definition ArchiveFileEntry.h:61