2020-05-17 21:14:27 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <wums.h>
|
|
|
|
|
|
|
|
class ExportData {
|
|
|
|
|
|
|
|
public:
|
|
|
|
ExportData(wums_entry_type_t type, const std::string &name, const void *address) {
|
|
|
|
this->type = type;
|
|
|
|
this->name = name;
|
|
|
|
this->address = address;
|
|
|
|
}
|
|
|
|
|
2021-09-18 11:55:01 +02:00
|
|
|
[[nodiscard]] wums_entry_type_t getType() const {
|
2020-05-17 21:14:27 +02:00
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2021-09-18 11:55:01 +02:00
|
|
|
[[nodiscard]] const void *getAddress() const {
|
2020-05-17 21:14:27 +02:00
|
|
|
return address;
|
|
|
|
}
|
|
|
|
|
2021-09-18 11:55:01 +02:00
|
|
|
[[nodiscard]] const std::string getName() const {
|
2020-05-17 21:14:27 +02:00
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
wums_entry_type_t type;
|
|
|
|
std::string name;
|
|
|
|
const void *address;
|
|
|
|
};
|