1#ifndef CPPTARGETAGGREGATOR_HPP_
2#define CPPTARGETAGGREGATOR_HPP_
20 aggregee_.include(hppdi_file_path);
25 token_opt.has_value();
29 auto& token = *token_opt;
31 if (token.starts_with(DI_SUBSCRIBE_MARK))
33 std::size_t first_ndx = DI_SUBSCRIBE_MARK.size();
34 std::size_t i = first_ndx;
35 for (; i < token.size() && token[i] !=
')'; ++i);
36 auto subscriber_type = token.substr(first_ndx, i - first_ndx + 1);
37 aggregee_.add_subscriber_type(std::move(subscriber_type));
44 return aggregee_.to_file_content();
Definition CppTargetAggregator.hpp:9
void process_single_unit(const ProcessedUnitType &hppdi_file_path) override
Definition CppTargetAggregator.hpp:15
std::string get_aggregated_data() const noexcept override
Definition CppTargetAggregator.hpp:42
~CppTargetAggregator() override=default
Definition CppTarget.hpp:8
Definition DelimFileReader.hpp:12
std::optional< TokenType > next_token() noexcept override
Definition DelimFileReader.cpp:24
Definition IDataAggregator.hpp:7
FileSystem::PathType ProcessedUnitType
Definition IDataAggregator.hpp:9
std::string FileContentType
Definition FileSystem.hpp:12