RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
xenix.h
1#ifndef XENIX_H
2#define XENIX_H
3
4#include "../common.h"
5#include "../dumper/dumper.h"
6#include "../linker/reader.h"
7#include "../linker/segment_manager.h"
8#include "../linker/writer.h"
9
10/* TODO: unimplemented */
11
12/* b.out and x.out file formats */
13namespace Xenix
14{
18 class BOutFormat : public virtual Linker::SegmentManager
19 {
20 public:
21 void ReadFile(Linker::Reader& rd) override;
23 offset_t WriteFile(Linker::Writer& wr) const override;
24 void Dump(Dumper::Dumper& dump) const override;
25 /* TODO */
26 };
27
31 class XOutFormat : public virtual Linker::SegmentManager
32 {
33 public:
34 void ReadFile(Linker::Reader& rd) override;
36 offset_t WriteFile(Linker::Writer& wr) const override;
37 void Dump(Dumper::Dumper& dump) const override;
38 /* TODO */
39 };
40}
41
42#endif /* XENIX_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 helper class, encapsulating functionality needed to import binary data.
Definition reader.h:16
A helper class to collect sections into segments.
Definition segment_manager.h:32
A helper class, encapsulating functionality needed to export binary data.
Definition writer.h:15
Xenix b.out executable.
Definition xenix.h:19
void ReadFile(Linker::Reader &rd) override
Loads file into memory.
Definition xenix.cc:9
void Dump(Dumper::Dumper &dump) const override
Display file contents in a nice manner.
Definition xenix.cc:21
offset_t WriteFile(Linker::Writer &wr) const override
Stores data in memory to file.
Definition xenix.cc:14
Xenix x.out executable.
Definition xenix.h:32
void Dump(Dumper::Dumper &dump) const override
Display file contents in a nice manner.
Definition xenix.cc:45
void ReadFile(Linker::Reader &rd) override
Loads file into memory.
Definition xenix.cc:33
offset_t WriteFile(Linker::Writer &wr) const override
Stores data in memory to file.
Definition xenix.cc:38