Update BlobFactory.h

This commit is contained in:
MegaMech
2024-05-22 20:56:39 -06:00
committed by Lywx
parent c28ca79c04
commit b572c7d1f6
+7 -1
View File
@@ -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)
};
}
};
};