Android-cuttlefish cvd tool
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
cuttlefish::ReadableZip Class Reference

#include <archive.h>

Inheritance diagram for cuttlefish::ReadableZip:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::ReadableZip:
Collaboration graph
[legend]

Public Member Functions

 ReadableZip (ReadableZip &&)
 
virtual ~ReadableZip ()
 
ReadableZipoperator= (ReadableZip &&)
 
Result< uint64_t > NumEntries ()
 
Result< std::string > EntryName (uint64_t index)
 
Result< uint32_t > EntryAttributes (uint64_t index) const
 
Result< bool > EntryIsDirectory (uint64_t index)
 
Result< SeekableZipSourceGetFile (uint64_t index) const
 
Result< std::unique_ptr< ReaderSeeker > > OpenReadOnly (std::string_view path) override
 
Result< uint32_t > FileAttributes (std::string_view path) const override
 
- Public Member Functions inherited from cuttlefish::ReadFilesystem
virtual ~ReadFilesystem ()=default
 
virtual Result< std::unique_ptr< ReaderSeeker > > OpenReadOnly (std::string_view path)=0
 
virtual Result< uint32_t > FileAttributes (std::string_view path) const =0
 

Static Public Member Functions

static Result< ReadableZipFromSource (SeekableZipSource)
 

Protected Member Functions

 ReadableZip (ManagedZip, WritableZipSource)
 
Result< SeekableZipSourceGetFile (const std::string &name) const
 

Protected Attributes

ManagedZip raw_
 
WritableZipSource source_
 

Friends

class WritableZip
 
class WritableZipSource
 

Constructor & Destructor Documentation

◆ ReadableZip() [1/2]

cuttlefish::ReadableZip::ReadableZip ( ReadableZip &&  )
default

◆ ~ReadableZip()

cuttlefish::ReadableZip::~ReadableZip ( )
virtualdefault

◆ ReadableZip() [2/2]

cuttlefish::ReadableZip::ReadableZip ( ManagedZip  raw,
WritableZipSource  source 
)
protected

Member Function Documentation

◆ EntryAttributes()

Result< uint32_t > cuttlefish::ReadableZip::EntryAttributes ( uint64_t  index) const

◆ EntryIsDirectory()

Result< bool > cuttlefish::ReadableZip::EntryIsDirectory ( uint64_t  index)

◆ EntryName()

Result< std::string > cuttlefish::ReadableZip::EntryName ( uint64_t  index)

◆ FileAttributes()

Result< uint32_t > cuttlefish::ReadableZip::FileAttributes ( std::string_view  path) const
overridevirtual

◆ FromSource()

Result< ReadableZip > cuttlefish::ReadableZip::FromSource ( SeekableZipSource  source)
static

◆ GetFile() [1/2]

Result< SeekableZipSource > cuttlefish::ReadableZip::GetFile ( const std::string &  name) const
protected

◆ GetFile() [2/2]

Result< SeekableZipSource > cuttlefish::ReadableZip::GetFile ( uint64_t  index) const

◆ NumEntries()

Result< uint64_t > cuttlefish::ReadableZip::NumEntries ( )

◆ OpenReadOnly()

Result< std::unique_ptr< ReaderSeeker > > cuttlefish::ReadableZip::OpenReadOnly ( std::string_view  path)
overridevirtual

◆ operator=()

ReadableZip & cuttlefish::ReadableZip::operator= ( ReadableZip &&  )
default

Friends And Related Function Documentation

◆ WritableZip

friend class WritableZip
friend

◆ WritableZipSource

friend class WritableZipSource
friend

Member Data Documentation

◆ raw_

ManagedZip cuttlefish::ReadableZip::raw_
protected

◆ source_

WritableZipSource cuttlefish::ReadableZip::source_
protected

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