RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Apple::AppleSingleDouble::Entry Class Referenceabstract
Inheritance diagram for Apple::AppleSingleDouble::Entry:
Linker::Format Linker::Contents Apple::AFPDirectoryID Apple::AFPFileInfo Apple::AFPShortName Apple::AppleSingleDouble::GenericEntry Apple::FileDatesInfo Apple::FileInfo Apple::FinderInfo Apple::IconBW Apple::IconColor Apple::MSDOSFileInfo Apple::MacintoshFileInfo Apple::ProDOSFileInfo Apple::RealName

Public Member Functions

offset_t ImageSize () const override=0
 Retrieves the offset of the byte after the last one belonging to this format from the first one.
 
void ReadFile (const std::shared_ptr< Linker::Reader > &rd) override=0
 Loads file into memory.
 
offset_t WriteFile (const std::shared_ptr< Linker::Writer > &out) const override=0
 Stores data in memory to file.
 
void Dump (Dumper::Dumper &dump) const override=0
 Display file contents in a nice manner.
 
void DumpEntry (Dumper::Dumper &dump, unsigned index) const
 
- Public Member Functions inherited from Linker::Format
 Format (offset_t file_offset=0)
 
virtual void Clear ()
 Resets all fields to their default values, deallocate memory.
 
virtual void SetFileOffset (offset_t new_offset)
 Attempts to alter the offset to the first byte of the format from the beginning of the file.
 
offset_t ImageSize () const override
 Retrieves the offset of the byte after the last one belonging to this format from the first one.
 
- Public Member Functions inherited from Linker::Contents
virtual std::shared_ptr< const Image > AsImage () const
 Retrieves a randomly accessible image.
 
std::shared_ptr< Image > AsImage ()
 Retrieves a randomly accessible image.
 

Static Public Member Functions

static std::shared_ptr< Entry > ReadEntry (const std::shared_ptr< Linker::Reader > &rd, hfs_type home_file_system)
 

Public Attributes

const uint32_t id
 
offset_t file_offset = 0
 
offset_t image_size = 0
 
- Public Attributes inherited from Linker::Format
offset_t file_offset
 The offset of the first byte used by this format in the file it is stored in.
 

Protected Member Functions

 Entry (uint32_t id)
 

Member Function Documentation

◆ Dump()

void Apple::AppleSingleDouble::Entry::Dump ( Dumper::Dumper &  dump) const
overridepure virtual

◆ ImageSize()

offset_t Apple::AppleSingleDouble::Entry::ImageSize ( ) const
overridepure virtual

Retrieves the offset of the byte after the last one belonging to this format from the first one.

Returns
The size of the image, or offset_t(-1) if it cannot be determined before writing to the file

Implements Linker::Contents.

Implemented in Apple::AppleSingleDouble::GenericEntry, Apple::RealName, Apple::IconBW, Apple::IconColor, Apple::FileInfo::Macintosh, Apple::FileInfo::ProDOS, Apple::FileInfo::MSDOS, Apple::FileInfo::AUX, Apple::FileDatesInfo, Apple::FinderInfo, Apple::MacintoshFileInfo, Apple::ProDOSFileInfo, Apple::MSDOSFileInfo, Apple::AFPShortName, Apple::AFPFileInfo, and Apple::AFPDirectoryID.

◆ ReadFile()

void Apple::AppleSingleDouble::Entry::ReadFile ( const std::shared_ptr< Linker::Reader > &  rd)
overridepure virtual

◆ WriteFile()

offset_t Apple::AppleSingleDouble::Entry::WriteFile ( const std::shared_ptr< Linker::Writer > &  wr) const
overridepure virtual

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