1#ifndef HPPTARGETAGGREGATOR_HPP_
2#define HPPTARGETAGGREGATOR_HPP_
20 aggregee_.include(hppdi_file_path);
25 token_opt.has_value();
28 auto& token = *token_opt;
30 auto found_mark = token.find(DI_SUBSCRIBE_MARK);
32 if (found_mark != std::string::npos)
34 std::size_t first_ndx = found_mark + DI_SUBSCRIBE_MARK.size();
35 std::size_t i = found_mark + DI_SUBSCRIBE_MARK.size();
36 for (; i < token.size() && token[i] !=
')'; ++i);
37 auto subscriber_type = token.substr(first_ndx, i - first_ndx);
38 aggregee_.add_subscriber_type(std::move(subscriber_type));
45 return aggregee_.to_file_content();
Definition DelimFileReader.hpp:12
std::optional< TokenType > next_token() noexcept override
Definition DelimFileReader.cpp:24
Definition HppTargetAggregator.hpp:9
~HppTargetAggregator() override=default
std::string get_aggregated_data() const noexcept override
Definition HppTargetAggregator.hpp:43
void process_single_unit(const ProcessedUnitType &hppdi_file_path) override
Definition HppTargetAggregator.hpp:15
Definition HppTarget.hpp:8
Definition IDataAggregator.hpp:7
FileSystem::PathType ProcessedUnitType
Definition IDataAggregator.hpp:9
std::string FileContentType
Definition FileSystem.hpp:12