20#ifndef ORES_REFDATA_CORE_REPOSITORY_COUNTERPARTY_IDENTIFIER_MAPPER_HPP
21#define ORES_REFDATA_CORE_REPOSITORY_COUNTERPARTY_IDENTIFIER_MAPPER_HPP
23#include "ores.refdata.api/domain/counterparty_identifier.hpp"
24#include "ores.refdata.core/repository/counterparty_identifier_entity.hpp"
25#include "ores.logging/make_logger.hpp"
34 inline static std::string_view logger_name =
35 "ores.refdata.repository.counterparty_identifier_mapper";
37 [[nodiscard]]
static auto& lg() {
39 static auto instance = make_logger(logger_name);
46 static std::vector<domain::counterparty_identifier>
47 map(
const std::vector<counterparty_identifier_entity>& v);
48 static std::vector<counterparty_identifier_entity>
49 map(
const std::vector<domain::counterparty_identifier>& v);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Database persistence layer for risk domain types.
Definition book_entity.hpp:28
An external identifier for a counterparty under a specific scheme.
Definition counterparty_identifier.hpp:36
Represents a counterparty identifier in the database.
Definition counterparty_identifier_entity.hpp:32
Maps counterparty_identifier domain entities to data storage layer and vice-versa.
Definition counterparty_identifier_mapper.hpp:32