39 template <
typename write_data_t>
45 WriterT(std::string objectName, std::string writerName,
49 std::string
name()
const final override;
64 const write_data_t&
t) = 0;
76 template <
typename write_data_t>
78 std::string writerName,
80 : m_objectName(std::move(objectName)),
81 m_writerName(std::move(writerName)),
84 throw std::invalid_argument(
"Missing input collection");
86 throw std::invalid_argument(
"Missing writer name");
90 template <
typename write_data_t>
95 template <
typename write_data_t>
100 template <
typename write_data_t>
103 return writeT(context, context.
eventStore.
get<write_data_t>(m_objectName));