20#ifndef ORES_REFDATA_CORE_SERVICE_ASSET_CLASS_SERVICE_HPP
21#define ORES_REFDATA_CORE_SERVICE_ASSET_CLASS_SERVICE_HPP
25#include "ores.logging/make_logger.hpp"
26#include "ores.database/domain/context.hpp"
27#include "ores.refdata.api/domain/asset_class_info.hpp"
28#include "ores.refdata.core/repository/asset_class_repository.hpp"
30namespace ores::refdata::service {
32class asset_class_service {
34 inline static std::string_view logger_name =
35 "ores.refdata.service.asset_class_service";
37 [[nodiscard]]
static auto& lg() {
39 static auto instance = make_logger(logger_name);
46 explicit asset_class_service(context ctx) : ctx_(
std::move(ctx)) {}
48 std::vector<domain::asset_class_info> list_asset_classes(
49 const std::string& coding_scheme = {},
50 std::uint32_t offset = 0,
51 std::uint32_t limit = 200);
53 std::uint32_t count_asset_classes(
54 const std::string& coding_scheme = {});
58 repository::asset_class_repository repo_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Context for the operations on a postgres database.
Definition context.hpp:47