20#ifndef ORES_TRADING_REPOSITORY_SWAP_LEG_MAPPER_HPP
21#define ORES_TRADING_REPOSITORY_SWAP_LEG_MAPPER_HPP
23#include "ores.trading.api/domain/swap_leg.hpp"
24#include "ores.trading.core/repository/swap_leg_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.swap_leg_mapper";
37 [[nodiscard]]
static auto& lg() {
39 static auto instance = make_logger(logger_name);
46 static std::vector<domain::swap_leg>
47 map(
const std::vector<swap_leg_entity>& v);
48 static std::vector<swap_leg_entity>
49 map(
const std::vector<domain::swap_leg>& v);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
One leg of a rates instrument (Swap, CrossCurrencySwap, CapFloor, Swaption).
Definition swap_leg.hpp:39
Represents a swap leg in the database.
Definition swap_leg_entity.hpp:34
Maps swap_leg domain entities to data storage layer and vice-versa.
Definition swap_leg_mapper.hpp:32