RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
w3exe.h
1#ifndef W3EXE_H
2#define W3EXE_H
3
4#include <array>
5#include "../common.h"
6#include "../dumper/dumper.h"
7#include "../linker/reader.h"
8#include "../linker/segment_manager.h"
9#include "../linker/writer.h"
10
11/* TODO: unimplemented */
12
13namespace Microsoft
14{
18 class W3Format : public virtual Linker::OutputFormat
19 {
20 public:
21 class Entry
22 {
23 public:
24 std::array<char, 8> filename;
25 uint32_t file_offset;
26 uint32_t unknown;
27 // TODO: data contents
28 };
29
30 offset_t file_offset;
31 uint16_t unknown;
32 std::vector<Entry> entries;
33
34// void Clear() override;
35// void CalculateValues() override;
36 void ReadFile(Linker::Reader& rd) override;
38 offset_t WriteFile(Linker::Writer& wr) const override;
39 void Dump(Dumper::Dumper& dump) const override;
40 /* TODO */
41
42// using Linker::OutputFormat::GetDefaultExtension;
43// std::string GetDefaultExtension(Linker::Module& module, std::string filename) override;
44 };
45}
46
47#endif /* W3EXE_H */
An abstract interface that separates structure and presentation of the data inside a file.
Definition dumper.h:586
offset_t WriteFile(Writer &wr) const override=0
Stores data in memory to file.
A class that provides a general interface to setting up generation for a format.
Definition format.h:61
A helper class, encapsulating functionality needed to import binary data.
Definition reader.h:16
A helper class, encapsulating functionality needed to export binary data.
Definition writer.h:15
Definition w3exe.h:22
WIN386.EXE (TODO: not implemented)
Definition w3exe.h:19
offset_t WriteFile(Linker::Writer &wr) const override
Stores data in memory to file.
Definition w3exe.cc:25
void ReadFile(Linker::Reader &rd) override
Loads file into memory.
Definition w3exe.cc:6
void Dump(Dumper::Dumper &dump) const override
Display file contents in a nice manner.
Definition w3exe.cc:44