mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-27 04:29:39 +00:00
36 lines
629 B
C
36 lines
629 B
C
|
#ifndef SEGMENTMAP_H
|
||
|
#define SEGMENTMAP_H
|
||
|
|
||
|
#include <vector>
|
||
|
#include <string>
|
||
|
|
||
|
class SegmentInfo
|
||
|
{
|
||
|
public:
|
||
|
int id;
|
||
|
//std::string name;
|
||
|
std::vector<std::string> filters;
|
||
|
SegmentInfo();
|
||
|
|
||
|
template<typename... Args>
|
||
|
SegmentInfo(int id, std::string name, Args... args)
|
||
|
: id(id), filters { args... }
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void WriteFilters(std::ostream& out, std::string section);
|
||
|
void WriteFiltersKeep(std::ostream& out, std::string section);
|
||
|
void CreateLdScript(std::ostream& out);
|
||
|
};
|
||
|
|
||
|
class SegmentMap
|
||
|
{
|
||
|
std::vector<SegmentInfo> segments;
|
||
|
public:
|
||
|
SegmentMap();
|
||
|
|
||
|
void CreateLdScript(std::ostream& out);
|
||
|
};
|
||
|
|
||
|
#endif // SEGMENTMAP_H
|