summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2024-05-20 10:51:15 -0600
committerLywx <kiritodev01@gmail.com>2024-05-22 20:56:39 -0600
commitb572c7d1f6236ac84a50b8f7d702780053d1ecec (patch)
treedcd6b4bcc451e8c2ae77adbeb19ae8a30fbccfad
parentc28ca79c0429515ec2ea41239e968978cc1a97ec (diff)
Update BlobFactory.h
-rw-r--r--src/factories/BlobFactory.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/factories/BlobFactory.h b/src/factories/BlobFactory.h
index 83d018e..02c8bbe 100644
--- a/src/factories/BlobFactory.h
+++ b/src/factories/BlobFactory.h
@@ -2,6 +2,11 @@
#include "BaseFactory.h"
#include "../types/RawBuffer.h"
+
+class BlobHeaderExporter : public BaseExporter {
+ ExportResult Export(std::ostream& write, std::shared_ptr<IParsedData> data, std::string& entryName, YAML::Node& node, std::string* replacement) override;
+};
+
class BlobBinaryExporter : public BaseExporter {
ExportResult Export(std::ostream& write, std::shared_ptr<IParsedData> data, std::string& entryName, YAML::Node& node, std::string* replacement) override;
};
@@ -15,8 +20,9 @@ public:
std::optional<std::shared_ptr<IParsedData>> parse(std::vector<uint8_t>& buffer, YAML::Node& data) override;
inline std::unordered_map<ExportType, std::shared_ptr<BaseExporter>> GetExporters() override {
return {
+ REGISTER(Header, BlobHeaderExporter)
REGISTER(Binary, BlobBinaryExporter)
REGISTER(Code, BlobCodeExporter)
};
}
-}; \ No newline at end of file
+};