20#ifndef ORES_TRADING_REPOSITORY_TRADE_IDENTIFIER_MAPPER_HPP
21#define ORES_TRADING_REPOSITORY_TRADE_IDENTIFIER_MAPPER_HPP
23#include "ores.trading.api/domain/trade_identifier.hpp"
24#include "ores.trading.core/repository/trade_identifier_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.trade_identifier_mapper";
37 [[nodiscard]]
static auto& lg() {
39 static auto instance = make_logger(logger_name);
46 static std::vector<domain::trade_identifier>
47 map(
const std::vector<trade_identifier_entity>& v);
48 static std::vector<trade_identifier_entity>
49 map(
const std::vector<domain::trade_identifier>& v);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
External identifier (UTI, USI, internal) assigned to a trade.
Definition trade_identifier.hpp:38
Represents a trade identifier in the database.
Definition trade_identifier_entity.hpp:34
Maps trade_identifier domain entities to data storage layer and vice-versa.
Definition trade_identifier_mapper.hpp:32