bit7z 4.0.0
A C++ library for interfacing with the 7-zip shared libs.
Loading...
Searching...
No Matches
bitarchivewriter.hpp
1/*
2 * bit7z - A C++ static library to interface with the 7-zip shared libraries.
3 * Copyright (c) 2014-2023 Riccardo Ostani - All Rights Reserved.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
8 */
9
10#ifndef BITARCHIVEWRITER_HPP
11#define BITARCHIVEWRITER_HPP
12
13#include "bitoutputarchive.hpp"
14
15namespace bit7z {
16
21 public:
29
39 const tstring& inArchive,
41 const tstring& password = {} );
42
52 const std::vector< byte_t >& inArchive,
54 const tstring& password = {} );
55
65 std::istream& inArchive,
67 const tstring& password = {} );
68};
69
70} // namespace bit7z
71
72#endif //BITARCHIVEWRITER_HPP
The Bit7zLibrary class allows accessing the basic functionalities provided by the 7z DLLs.
Definition bit7zlibrary.hpp:56
Abstract class representing a generic archive creator.
Definition bitabstractarchivecreator.hpp:44
auto format() const noexcept -> const BitInFormat &override
auto password() const -> tstring
The BitArchiveWriter class allows creating new archives or updating old ones with new items.
Definition bitarchivewriter.hpp:20
BitArchiveWriter(const Bit7zLibrary &lib, const std::vector< byte_t > &inArchive, const BitInOutFormat &format, const tstring &password={})
Constructs a BitArchiveWriter object, reading the archive in the given buffer.
BitArchiveWriter(const Bit7zLibrary &lib, std::istream &inArchive, const BitInOutFormat &format, const tstring &password={})
Constructs a BitArchiveWriter object, reading the archive from the given standard input stream.
BitArchiveWriter(const Bit7zLibrary &lib, const BitInOutFormat &format)
Constructs an empty BitArchiveWriter object that can write archives of the specified format.
BitArchiveWriter(const Bit7zLibrary &lib, const tstring &inArchive, const BitInOutFormat &format, const tstring &password={})
Constructs a BitArchiveWriter object, reading the given archive file path.
The BitInOutFormat class specifies a format available for creating new archives and extract old ones.
Definition bitformat.hpp:105
The BitOutputArchive class, given a creator object, allows creating new archives.
Definition bitoutputarchive.hpp:60
The main namespace of the bit7z library.
Definition bit7zlibrary.hpp:30