#pragma once #include "CodegenDecl.hpp" #include #include #include #include // A generic "thing" (could be anything, comments, string-concated functionsm, etc.) to spit into the output file struct CodegenOutputThing { std::string text; }; class CodegenOutput { private: std::vector mOutThings; public: void AddOutputThing(CodegenOutputThing thing) { mOutThings.push_back(std::move(thing)); } void MergeContents(CodegenOutput other) { std::move(other.mOutThings.begin(), other.mOutThings.end(), this->mOutThings.begin()); } void Write(FILE* file) { // TODO } };