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

An abstract class to represent the optional header. More...

#include <coff.h>

Inheritance diagram for COFF::COFFFormat::OptionalHeader:
COFF::COFFFormat::AOutHeader COFF::COFFFormat::ECOFFAOutHeader COFF::COFFFormat::GNUAOutHeader COFF::COFFFormat::UnknownOptionalHeader COFF::COFFFormat::XCOFFAOutHeader COFF::COFFFormat::AOutHeader3B20 COFF::COFFFormat::FlexOSAOutHeader COFF::COFFFormat::MIPSAOutHeader Microsoft::PEFormat::PEOptionalHeader

Public Member Functions

virtual uint32_t GetSize () const =0
 Returns size of optional header.
 
virtual void ReadFile (const std::shared_ptr< Linker::Reader > &rd)=0
 
virtual void WriteFile (const std::shared_ptr< Linker::Writer > &wr) const =0
 
virtual offset_t CalculateValues (COFFFormat &coff)=0
 Sets up fields to be consistent.
 
virtual void PostReadFile (COFFFormat &coff, const std::shared_ptr< Linker::Reader > &rd)
 Retrieves any additional data from the file corresponding to this type of optional header.
 
virtual void PostWriteFile (const COFFFormat &coff, const std::shared_ptr< Linker::Writer > &wr) const
 Stores any additional data in the file corresponding to this type of optional header.
 
virtual void Dump (const COFFFormat &coff, Dumper::Dumper &dump) const
 
virtual std::string GetHeaderFormatName (const COFFFormat &coff) const
 

Detailed Description

An abstract class to represent the optional header.

Member Function Documentation

◆ CalculateValues()

virtual offset_t COFF::COFFFormat::OptionalHeader::CalculateValues ( COFFFormat &  coff)
pure virtual

◆ GetSize()

virtual uint32_t COFF::COFFFormat::OptionalHeader::GetSize ( ) const
pure virtual

◆ PostReadFile()

void COFFFormat::OptionalHeader::PostReadFile ( COFFFormat &  coff,
const std::shared_ptr< Linker::Reader > &  rd 
)
virtual

Retrieves any additional data from the file corresponding to this type of optional header.

Reimplemented in COFF::COFFFormat::FlexOSAOutHeader.

◆ PostWriteFile()

void COFFFormat::OptionalHeader::PostWriteFile ( const COFFFormat &  coff,
const std::shared_ptr< Linker::Writer > &  wr 
) const
virtual

Stores any additional data in the file corresponding to this type of optional header.

Reimplemented in COFF::COFFFormat::FlexOSAOutHeader.


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