12 includes_.push_back(file_contents);
17 subscriber_types_.push_back(subscriber_type.substr(0, subscriber_type.size() - 1));
26 for (
const auto& include_path: includes_)
28 file_content +=
"#include \"" + include_path.string() +
"\"\n";
31 file_content += subscribe_all_fn_begin;
33 for (
const auto& subscriber_type: subscriber_types_)
35 file_content +=
"\t" + namespace_name +
"::subscribe_" + subscriber_type +
"();\n";
38 file_content +=
"}\n";
44 std::vector<FileSystem::PathType> includes_;
45 std::vector<FileSystem::FileContentType> subscriber_types_;
Definition CppTarget.hpp:8
FileSystem::FileContentType to_file_content() const
Definition CppTarget.hpp:20
void add_subscriber_type(FileSystem::FileContentType &&subscriber_type)
Definition CppTarget.hpp:15
void include(const FileSystem::PathType &file_contents)
Definition CppTarget.hpp:10
std::filesystem::path PathType
Definition FileSystem.hpp:9
std::string FileContentType
Definition FileSystem.hpp:12