20#ifndef ORES_TRADING_REPOSITORY_DAY_COUNT_FRACTION_TYPE_MAPPER_HPP
21#define ORES_TRADING_REPOSITORY_DAY_COUNT_FRACTION_TYPE_MAPPER_HPP
23#include "ores.trading.api/domain/day_count_fraction_type.hpp"
24#include "ores.trading.core/repository/day_count_fraction_type_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.day_count_fraction_type_mapper";
37 [[nodiscard]]
static auto& lg() {
39 static auto instance = make_logger(logger_name);
46 static std::vector<domain::day_count_fraction_type>
47 map(
const std::vector<day_count_fraction_type_entity>& v);
48 static std::vector<day_count_fraction_type_entity>
49 map(
const std::vector<domain::day_count_fraction_type>& v);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
ORE day count fraction convention code (e.g. A360, A365F, ActAct(ISDA)).
Definition day_count_fraction_type.hpp:35
Represents a day count fraction type in the database.
Definition day_count_fraction_type_entity.hpp:34
Maps day_count_fraction_type domain entities to data storage layer and vice-versa.
Definition day_count_fraction_type_mapper.hpp:32