20#ifndef ORES_TRADING_REPOSITORY_SCRIPTED_INSTRUMENT_MAPPER_HPP
21#define ORES_TRADING_REPOSITORY_SCRIPTED_INSTRUMENT_MAPPER_HPP
23#include "ores.trading.api/domain/scripted_instrument.hpp"
24#include "ores.trading.core/repository/scripted_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.scripted_instrument_mapper";
37 [[nodiscard]]
static auto& lg() {
39 static auto instance = make_logger(logger_name);
46 static std::vector<domain::scripted_instrument>
47 map(
const std::vector<scripted_instrument_entity>& v);
48 static std::vector<scripted_instrument_entity>
49 map(
const std::vector<domain::scripted_instrument>& v);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Scripted instrument economics for ORE AMC script-based product types.
Definition scripted_instrument.hpp:38
Represents a scripted instrument in the database.
Definition scripted_instrument_entity.hpp:34
Maps scripted_instrument domain entities to data storage and vice-versa.
Definition scripted_instrument_mapper.hpp:32