20#ifndef ORES_COMPUTE_REPOSITORY_HOST_MAPPER_HPP
21#define ORES_COMPUTE_REPOSITORY_HOST_MAPPER_HPP
23#include "ores.compute.api/domain/host.hpp"
24#include "ores.compute.core/repository/host_entity.hpp"
25#include "ores.logging/make_logger.hpp"
27namespace ores::compute::repository {
34 inline static std::string_view logger_name =
35 "ores.compute.repository.host_mapper";
37 [[nodiscard]]
static auto& lg() {
39 static auto instance = make_logger(logger_name);
46 static std::vector<domain::host>
47 map(
const std::vector<host_entity>& v);
48 static std::vector<host_entity>
49 map(
const std::vector<domain::host>& v);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
A registered compute node in the distributed grid.
Definition host.hpp:36
Represents a host in the database.
Definition host_entity.hpp:34
Maps host domain entities to data storage layer and vice-versa.
Definition host_mapper.hpp:32