20#ifndef ORES_TRADING_REPOSITORY_LIFECYCLE_EVENT_MAPPER_HPP
21#define ORES_TRADING_REPOSITORY_LIFECYCLE_EVENT_MAPPER_HPP
23#include "ores.trading.api/domain/lifecycle_event.hpp"
24#include "ores.trading.core/repository/lifecycle_event_entity.hpp"
25#include "ores.logging/make_logger.hpp"
27namespace ores::trading::repository {
34 inline static std::string_view logger_name =
35 "ores.trading.repository.lifecycle_event_mapper";
37 [[nodiscard]]
static auto& lg() {
39 static auto instance = make_logger(logger_name);
46 static std::vector<domain::lifecycle_event>
47 map(
const std::vector<lifecycle_event_entity>& v);
48 static std::vector<lifecycle_event_entity>
49 map(
const std::vector<domain::lifecycle_event>& v);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Trade lifecycle event type (e.g. New, Amendment, Novation, PartialTermination).
Definition lifecycle_event.hpp:35
Represents a lifecycle event in the database.
Definition lifecycle_event_entity.hpp:34
Maps lifecycle_event domain entities to data storage layer and vice-versa.
Definition lifecycle_event_mapper.hpp:32