Android-cuttlefish cvd tool
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
cuttlefish::anonymous_namespace{img_zip.cc}::ImgZipImpl Class Reference
Inheritance diagram for cuttlefish::anonymous_namespace{img_zip.cc}::ImgZipImpl:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::anonymous_namespace{img_zip.cc}::ImgZipImpl:
Collaboration graph
[legend]

Public Member Functions

std::string Name () const override
 
PrettyStruct Pretty () override
 
Result< std::set< std::string, std::less< void > > > Images () override
 
Result< std::string > ImageFile (std::string_view name, bool extract) override
 
Result< void > SetExtractDir (std::string_view dir) override
 
Result< std::map< std::string, std::string, std::less< void > > > AndroidInfoTxt ()
 
Result< config::GuestConfigFile > GuestConfigProto ()
 
- Public Member Functions inherited from cuttlefish::AndroidBuild
virtual ~AndroidBuild ()=default
 
virtual std::string Name () const =0
 
virtual PrettyStruct Pretty ()=0
 
virtual Result< std::set< std::string, std::less< void > > > Images ()
 
virtual Result< std::string > ImageFile (std::string_view name, bool extract=true)
 
virtual Result< void > SetExtractDir (std::string_view)
 
virtual Result< std::set< std::string, std::less< void > > > AbPartitions ()
 
virtual Result< std::set< std::string, std::less< void > > > SystemPartitions ()
 
virtual Result< std::set< std::string, std::less< void > > > VendorPartitions ()
 
virtual Result< std::set< std::string, std::less< void > > > LogicalPartitions ()
 
virtual Result< std::set< std::string, std::less< void > > > PhysicalPartitions ()
 

Static Public Member Functions

static Result< std::unique_ptr< ImgZipImpl > > FromBuildArchive (BuildArchive archive)
 

Private Member Functions

 ImgZipImpl (BuildArchive archive)
 

Private Attributes

BuildArchive archive_
 
std::optional< std::string > extract_dir_
 

Constructor & Destructor Documentation

◆ ImgZipImpl()

cuttlefish::anonymous_namespace{img_zip.cc}::ImgZipImpl::ImgZipImpl ( BuildArchive  archive)
inlineprivate

Member Function Documentation

◆ AndroidInfoTxt()

Result< std::map< std::string, std::string, std::less< void > > > cuttlefish::anonymous_namespace{img_zip.cc}::ImgZipImpl::AndroidInfoTxt ( )
inline

◆ FromBuildArchive()

static Result< std::unique_ptr< ImgZipImpl > > cuttlefish::anonymous_namespace{img_zip.cc}::ImgZipImpl::FromBuildArchive ( BuildArchive  archive)
inlinestatic

◆ GuestConfigProto()

Result< config::GuestConfigFile > cuttlefish::anonymous_namespace{img_zip.cc}::ImgZipImpl::GuestConfigProto ( )
inline

◆ ImageFile()

Result< std::string > cuttlefish::anonymous_namespace{img_zip.cc}::ImgZipImpl::ImageFile ( std::string_view  name,
bool  extract 
)
inlineoverridevirtual

Reimplemented from cuttlefish::AndroidBuild.

◆ Images()

Result< std::set< std::string, std::less< void > > > cuttlefish::anonymous_namespace{img_zip.cc}::ImgZipImpl::Images ( )
inlineoverridevirtual

Image information, as reported by the Android build system.

An image may be one of three different categories:

  • A partition in the top-level GPT, such as the the super partition.
  • A logical partition stored inside the GPT super partition.
  • A super_empty pseudo-partition file that reports what should be in the super partition, but without the logical partition contents.

Reimplemented from cuttlefish::AndroidBuild.

◆ Name()

std::string cuttlefish::anonymous_namespace{img_zip.cc}::ImgZipImpl::Name ( ) const
inlineoverridevirtual

The name of the concrete implementation.

Implements cuttlefish::AndroidBuild.

◆ Pretty()

PrettyStruct cuttlefish::anonymous_namespace{img_zip.cc}::ImgZipImpl::Pretty ( )
inlineoverridevirtual

◆ SetExtractDir()

Result< void > cuttlefish::anonymous_namespace{img_zip.cc}::ImgZipImpl::SetExtractDir ( std::string_view  )
inlineoverridevirtual

Stores a directory to use for extracting generated files. ImageFile may store generated files here, and implementations may extract files here as part of the implementation of other methods.

Reimplemented from cuttlefish::AndroidBuild.

Member Data Documentation

◆ archive_

BuildArchive cuttlefish::anonymous_namespace{img_zip.cc}::ImgZipImpl::archive_
private

◆ extract_dir_

std::optional<std::string> cuttlefish::anonymous_namespace{img_zip.cc}::ImgZipImpl::extract_dir_
private

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