mirror of
https://github.com/pret/pmd-sky.git
synced 2026-03-21 17:25:15 -05:00
31 lines
647 B
C
31 lines
647 B
C
#ifndef GUARD_MWERKSXMAPFILE_H
|
|
#define GUARD_MWERKSXMAPFILE_H
|
|
|
|
#ifndef NDEBUG
|
|
|
|
#include <string>
|
|
#include "find_filesystem.h"
|
|
#include <fstream>
|
|
#include <map>
|
|
|
|
using namespace std;
|
|
using namespace fs;
|
|
|
|
class MwerksXmapFile {
|
|
map<pair<string, string>, size_t> _section_addrs;
|
|
public:
|
|
MwerksXmapFile() = default;
|
|
explicit MwerksXmapFile(path const &filename);
|
|
void open(path const &filename);
|
|
size_t &at(pair<string, string> const &key) {
|
|
return _section_addrs.at(key);
|
|
}
|
|
size_t &operator[](pair<string, string> const &key) {
|
|
return _section_addrs[key];
|
|
}
|
|
};
|
|
|
|
#endif
|
|
|
|
#endif //GUARD_MWERKSXMAPFILE_H
|