BinaryFile Class

Definition

Line 215 of cmsxo/BinaryFile.cm

Inheritance

Constructors & Destructor

public nothrow BinaryFile(const String<char>& fileName_, Section* headerSection_, bool initSymbolTable)

Member Functions

public virtual void AddSection(Section* section)
public virtual void AddSymbolsToAddressMap()
public Section* CreateSection(const String<char>& sectionName)
public virtual void Dump(StreamWriter& writer)
public nothrow const String<char>& FileName() const
public virtual void Finalize()
public virtual nothrow Section* GetCodeSection() const
public virtual nothrow Section* GetDataSection() const
public nothrow Section* GetHeaderSection() const
public virtual nothrow Section* GetSymbolSection() const
public nothrow SymbolTable& GetSymbolTable()
public void Read(BinaryReader& reader, ReadOption readOption)
public virtual void ReadExtended(BinaryReader& reader)
public virtual void ReadExtendedHeader(BinaryReader& reader)
public void ReadHeader(BinaryReader& reader)
public virtual void ReplaceLinkSection(UniquePtr<Section>& newLinkSection)
public void Write()
public void Write(BinaryWriter& writer)
public virtual void WriteExtended(BinaryWriter& writer)
public virtual void WriteExtendedHeader(BinaryWriter& writer)
public void WriteHeader(BinaryWriter& writer)

Member Variables

private String<char> fileName
private UniquePtr<Section> headerSection
private List<UniquePtr<Section>> sections
private SymbolTable symbolTable

Constructor& Destructor Details

BinaryFile Constructor

public nothrow BinaryFile(const String<char>& fileName_, Section* headerSection_, bool initSymbolTable)

Definition
Line 217 of cmsxo/BinaryFile.cm


Member Function Details

AddSection Member Function

public virtual void AddSection(Section* section)

Definition
Line 228 of cmsxo/BinaryFile.cm


AddSymbolsToAddressMap Member Function

public virtual void AddSymbolsToAddressMap()

Definition
Line 366 of cmsxo/BinaryFile.cm


CreateSection Member Function

public Section* CreateSection(const String<char>& sectionName)

Definition
Line 249 of cmsxo/BinaryFile.cm


Dump Member Function

public virtual void Dump(StreamWriter& writer)

Definition
Line 369 of cmsxo/BinaryFile.cm


FileName Member Function

public nothrow const String<char>& FileName()

Definition
Line 382 of cmsxo/BinaryFile.cm


Finalize Member Function

public virtual void Finalize()

Definition
Line 221 of cmsxo/BinaryFile.cm


GetCodeSection Member Function

public virtual nothrow Section* GetCodeSection()

Definition
Line 237 of cmsxo/BinaryFile.cm


GetDataSection Member Function

public virtual nothrow Section* GetDataSection()

Definition
Line 241 of cmsxo/BinaryFile.cm


GetHeaderSection Member Function

public nothrow Section* GetHeaderSection()

Definition
Line 233 of cmsxo/BinaryFile.cm


GetSymbolSection Member Function

public virtual nothrow Section* GetSymbolSection()

Definition
Line 245 of cmsxo/BinaryFile.cm


GetSymbolTable Member Function

public nothrow SymbolTable& GetSymbolTable()

Definition
Line 378 of cmsxo/BinaryFile.cm


Read Member Function

public void Read(BinaryReader& reader, ReadOption readOption)

Definition
Line 348 of cmsxo/BinaryFile.cm


ReadExtended Member Function

public virtual void ReadExtended(BinaryReader& reader)

Definition
Line 363 of cmsxo/BinaryFile.cm


ReadExtendedHeader Member Function

public virtual void ReadExtendedHeader(BinaryReader& reader)

Definition
Line 312 of cmsxo/BinaryFile.cm


ReadHeader Member Function

public void ReadHeader(BinaryReader& reader)

Definition
Line 298 of cmsxo/BinaryFile.cm


public virtual void ReplaceLinkSection(UniquePtr<Section>& newLinkSection)

Definition
Line 386 of cmsxo/BinaryFile.cm


Write Member Function

public void Write()

Definition
Line 276 of cmsxo/BinaryFile.cm


Write Member Function

public void Write(BinaryWriter& writer)

Definition
Line 315 of cmsxo/BinaryFile.cm


WriteExtended Member Function

public virtual void WriteExtended(BinaryWriter& writer)

Definition
Line 345 of cmsxo/BinaryFile.cm


WriteExtendedHeader Member Function

public virtual void WriteExtendedHeader(BinaryWriter& writer)

Definition
Line 295 of cmsxo/BinaryFile.cm


WriteHeader Member Function

public void WriteHeader(BinaryWriter& writer)

Definition
Line 281 of cmsxo/BinaryFile.cm