RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Linker::Format Class Referenceabstract

A class to encode a general file format. More...

#include <format.h>

Inheritance diagram for Linker::Format:
Linker::Image Apple::AppleSingleDouble::Entry BrocaD3X::D3X1Format DX64::LVFormat Java::ClassFormat Linker::InputFormat Linker::OutputFormat SeychellDOS32::AdamFormat Apple::AFPDirectoryID Apple::AFPFileInfo Apple::AFPShortName Apple::Comment Apple::DataFork Apple::FileDatesInfo Apple::FileInfo Apple::FinderInfo Apple::IconBW Apple::IconColor Apple::MSDOSFileInfo Apple::MacintoshFileInfo Apple::ProDOSFileInfo Apple::RealName Apple::ResourceFork AOut::AOutFormat AS86Obj::AS86ObjFormat Archive::ArchiveFormat COFF::COFFFormat ELF::ELFFormat O65::O65Format OMF::OMFFormat Apple::AppleSingleDouble Apple::MacDriver Apple::ResourceFork::Resource Archive::ArchiveFormat ELF::FatELFFormat Linker::SegmentManager MachO::FatMachOFormat Microsoft::W3Format PharLap::P3FormatContainer SeychellDOS32::AdamFormat

Public Member Functions

 Format (offset_t file_offset=0)
 
virtual void Clear ()
 Resets all fields to their default values, deallocate memory.
 
virtual void ReadFile (Reader &rd)=0
 Loads file into memory.
 
offset_t WriteFile (Writer &wr) const override=0
 Stores data in memory to file.
 
virtual void Dump (Dumper::Dumper &dump) const
 Display file contents in a nice manner.
 
offset_t ImageSize () const override
 Retrieves size of stored data.
 
offset_t WriteFile (Writer &wr, offset_t count, offset_t offset=0) const override
 Writes data of non-zero filled sections.
 
- Public Member Functions inherited from Linker::Image
virtual std::shared_ptr< const ActualImageAsImage () const
 Retrieves a randomly accessible image.
 
std::shared_ptr< ActualImageAsImage ()
 Retrieves a randomly accessible image.
 

Public Attributes

offset_t file_offset
 

Detailed Description

A class to encode a general file format.

Member Function Documentation

◆ Clear()

void Format::Clear ( )
virtual

◆ Dump()

void Format::Dump ( Dumper::Dumper & dump) const
virtual

Display file contents in a nice manner.

Reimplemented in Binary::AppleFormat, Binary::AtariFormat, Binary::CommodoreFormat, Binary::CPM3Format, Binary::FLEXFormat, Binary::PRLFormat, Binary::UZIFormat, Binary::UZI280Format, ARM::AIFFormat, AOut::AOutFormat, Archive::ArchiveFormat, AS86Obj::AS86ObjFormat, Binary::GenericBinaryFormat, Binary::BinaryFormat, DOS16M::BWFormat, COFF::COFFFormat, DigitalResearch::CPM68KFormat, DigitalResearch::CPM86Format, DigitalResearch::CPM8KFormat, SeychellDOS32::AdamFormat, BrocaD3X::D3X1Format, DX64::LVFormat, ELF::ELFFormat, ELF::FatELFFormat, GEOS::GeodeFormat, Apple::OMFFormat, X68000::HUFormat, Amiga::HunkFormat, Java::ClassFormat, Microsoft::LEFormat, MachO::MachOFormat, MachO::FatMachOFormat, Apple::AppleSingleDouble::Entry, Apple::AppleSingleDouble, Apple::ResourceFork::Resource, Apple::ResourceFork::GenericResource, Apple::ResourceFork::JumpTableCodeResource, Apple::ResourceFork::CodeResource, Apple::ResourceFork, Apple::RealName, Apple::FileInfo::Macintosh, Apple::FileInfo::ProDOS, Apple::FileInfo::MSDOS, Apple::FileInfo::AUX, Apple::FileDatesInfo, Apple::FinderInfo, Apple::MacintoshFileInfo, Apple::ProDOSFileInfo, Apple::MSDOSFileInfo, Apple::MacBinary, MINIX::MINIXFormat, Microsoft::MZFormat, Microsoft::NEFormat, O65::O65Format, OMF::OMFFormat, PCOS::CMDFormat, Microsoft::PEFormat, Apple::PEFFormat, PharLap::MPFormat, PharLap::P3Format, PharLap::P3Format::Flat, PharLap::P3Format::MultiSegmented, PharLap::P3FormatContainer, PMODE::PMW1Format, Microsoft::W3Format, Xenix::BOutFormat, Xenix::XOutFormat, and Ergo::XPFormat.

◆ ImageSize()

offset_t Format::ImageSize ( ) const
overridevirtual

◆ ReadFile()

virtual void Linker::Format::ReadFile ( Reader & rd)
pure virtual

◆ WriteFile() [1/2]

offset_t Linker::Format::WriteFile ( Writer & wr) const
overridepure virtual

Stores data in memory to file.

Reimplemented from Linker::Image.

Implemented in Apple::AppleSingleDouble::Entry, Binary::AppleFormat, Binary::AtariFormat, Binary::CommodoreFormat, Binary::CPM3Format, Binary::FLEXFormat, Binary::PRLFormat, Binary::UZIFormat, Binary::UZI280Format, ARM::AIFFormat, AOut::AOutFormat, Archive::ArchiveFormat, AS86Obj::AS86ObjFormat, Binary::GenericBinaryFormat, Binary::BinaryFormat, DOS16M::BWFormat, COFF::COFFFormat, DigitalResearch::CPM68KFormat, DigitalResearch::CPM86Format, DigitalResearch::CPM8KFormat, SeychellDOS32::AdamFormat, BrocaD3X::D3X1Format, DX64::LVFormat, ELF::ELFFormat, ELF::FatELFFormat, GEOS::GeodeFormat, Apple::OMFFormat, X68000::HUFormat, Amiga::HunkFormat, Java::ClassFormat, Microsoft::LEFormat, MachO::MachOFormat, MachO::FatMachOFormat, Apple::AppleSingleDouble, Apple::ResourceFork::Resource, Apple::ResourceFork::GenericResource, Apple::ResourceFork::JumpTableCodeResource, Apple::ResourceFork::CodeResource, Apple::ResourceFork, Apple::RealName, Apple::FileInfo::Macintosh, Apple::FileInfo::ProDOS, Apple::FileInfo::MSDOS, Apple::FileInfo::AUX, Apple::FileDatesInfo, Apple::FinderInfo, Apple::MacintoshFileInfo, Apple::ProDOSFileInfo, Apple::MSDOSFileInfo, Apple::MacBinary, Apple::MacDriver, MINIX::MINIXFormat, Microsoft::MZFormat, Microsoft::NEFormat, O65::O65Format, OMF::OMFFormat, PCOS::CMDFormat, Microsoft::PEFormat, Apple::PEFFormat, PharLap::MPFormat, PharLap::P3Format, PharLap::P3Format::Flat, PharLap::P3Format::MultiSegmented, PharLap::P3FormatContainer, PMODE::PMW1Format, Microsoft::W3Format, Xenix::BOutFormat, Xenix::XOutFormat, and Ergo::XPFormat.

◆ WriteFile() [2/2]

offset_t Format::WriteFile ( Writer & wr,
offset_t count,
offset_t offset = 0 ) const
overridevirtual

Writes data of non-zero filled sections.

Implements Linker::Image.


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