Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
zipfile::ZipArchive Class Reference

#include <zipfile.h>

Public Member Functions

 ZipArchive (absl::string_view path, const ZipFileOptions &options)
 
 ZipArchive (const ZipArchive &)=delete
 
ZipArchiveoperator= (const ZipArchive &)=delete
 
const std::string & filename () const
 
 ~ZipArchive ()
 

Detailed Description

A zip archive, which may contain files that can be read through the /zip filename prefix.

Do not instantiate this class directly. Use the OpenZipArchive factory methods instead.

Definition at line 148 of file zipfile.h.

Constructor & Destructor Documentation

◆ ZipArchive() [1/2]

zipfile::ZipArchive::ZipArchive ( absl::string_view path,
const ZipFileOptions & options )

Definition at line 39 of file zipfile.cc.

◆ ZipArchive() [2/2]

zipfile::ZipArchive::ZipArchive ( const ZipArchive & )
delete

◆ ~ZipArchive()

zipfile::ZipArchive::~ZipArchive ( )

Definition at line 42 of file zipfile.cc.

Member Function Documentation

◆ filename()

const std::string & zipfile::ZipArchive::filename ( ) const
inline

Returns the filename at which this archive was first opened. Since all equivalent zip archive paths share the same archive, this name will not necessarily match the name at which the archive was opened. For example, we provide no guarantees about whether the filename will begin with "/zip", since the "/zip" prefix is optional for opening zip archives.

Definition at line 160 of file zipfile.h.

◆ operator=()

ZipArchive & zipfile::ZipArchive::operator= ( const ZipArchive & )
delete

The documentation for this class was generated from the following files: