Android-cuttlefish cvd tool
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
cuttlefish::EfiLoaderImage Class Reference

#include <efi_loader.h>

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

Public Member Functions

std::string Name () const override
 
Result< std::string > Generate () override
 
Result< std::string > Path () const override
 
- Public Member Functions inherited from cuttlefish::ImageFile
virtual ~ImageFile ()=default
 
virtual std::string Name () const =0
 
virtual Result< std::string > Generate ()=0
 
virtual Result< std::string > Path () const =0
 

Static Public Member Functions

static std::optional< EfiLoaderImageCreate (const CuttlefishConfig::InstanceSpecific &)
 

Private Member Functions

 EfiLoaderImage (std::string)
 

Private Attributes

std::string path_
 

Constructor & Destructor Documentation

◆ EfiLoaderImage()

cuttlefish::EfiLoaderImage::EfiLoaderImage ( std::string  path)
private

Member Function Documentation

◆ Create()

std::optional< EfiLoaderImage > cuttlefish::EfiLoaderImage::Create ( const CuttlefishConfig::InstanceSpecific instance)
static

◆ Generate()

Result< std::string > cuttlefish::EfiLoaderImage::Generate ( )
overridevirtual

If the image file is not ready, generate it. Returns the path to the file.

If this function succeeds, Path() should return the same value afterwards.

Implements cuttlefish::ImageFile.

◆ Name()

std::string cuttlefish::EfiLoaderImage::Name ( ) const
overridevirtual

Image name, reused in multiple places for consistency.

  • The filename (minus .img extension) used on the file system.
  • GPT entry name
  • Logical partition name within the super image.

Implements cuttlefish::ImageFile.

◆ Path()

Result< std::string > cuttlefish::EfiLoaderImage::Path ( ) const
overridevirtual

Returns the path on the filesystem where the image file is.

The image file should be ready for use and correct for the current device configuration.

Implements cuttlefish::ImageFile.

Member Data Documentation

◆ path_

std::string cuttlefish::EfiLoaderImage::path_
private

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