MLBookProc 2.1
Loading...
Searching...
No Matches
LibArchiveFileData.h
1/*
2 * Copyright (C) 2026 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#ifndef LIBARCHIVEFILEDATA_H
17#define LIBARCHIVEFILEDATA_H
18
19#include <filesystem>
20#include <istream>
21#include <memory>
22
28class LibArchiveFileData
29{
30public:
31 LibArchiveFileData();
32
33 virtual ~LibArchiveFileData();
34
40 std::shared_ptr<std::iostream> f;
41
47 size_t file_size;
48
52 std::ios_base::openmode open_mode;
53
58 std::filesystem::path path;
59
63 std::string source_buffer;
64
70 char *buffer;
71
78
86};
87
88#endif // LIBARCHIVEFILEDATA_H
std::shared_ptr< std::iostream > f
Definition LibArchiveFileData.h:40
char * buffer
Definition LibArchiveFileData.h:70
size_t file_size
Definition LibArchiveFileData.h:47
std::string source_buffer
Definition LibArchiveFileData.h:63
size_t buffer_size
Definition LibArchiveFileData.h:77
std::filesystem::path path
Definition LibArchiveFileData.h:58
size_t start_offset
Definition LibArchiveFileData.h:85
std::ios_base::openmode open_mode
Definition LibArchiveFileData.h:52