20#ifndef ORES_TRADING_REPOSITORY_CREDIT_INSTRUMENT_MAPPER_HPP
21#define ORES_TRADING_REPOSITORY_CREDIT_INSTRUMENT_MAPPER_HPP
23#include "ores.trading.api/domain/credit_instrument.hpp"
24#include "ores.trading.core/repository/credit_instrument_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.credit_instrument_mapper";
37 [[nodiscard]]
static auto& lg() {
39 static auto instance = make_logger(logger_name);
46 static std::vector<domain::credit_instrument>
47 map(
const std::vector<credit_instrument_entity>& v);
48 static std::vector<credit_instrument_entity>
49 map(
const std::vector<domain::credit_instrument>& v);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Credit instrument economics for CreditDefaultSwap, CDSIndex, SyntheticCDO, CreditDefaultSwapOption,...
Definition credit_instrument.hpp:39
Represents a credit instrument in the database.
Definition credit_instrument_entity.hpp:34
Maps credit_instrument domain entities to data storage and vice-versa.
Definition credit_instrument_mapper.hpp:32