20#ifndef ORES_COMPUTE_REPOSITORY_WORKUNIT_MAPPER_HPP
21#define ORES_COMPUTE_REPOSITORY_WORKUNIT_MAPPER_HPP
23#include "ores.compute.api/domain/workunit.hpp"
24#include "ores.compute.core/repository/workunit_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.workunit_mapper";
37 [[nodiscard]]
static auto& lg() {
39 static auto instance = make_logger(logger_name);
46 static std::vector<domain::workunit>
47 map(
const std::vector<workunit_entity>& v);
48 static std::vector<workunit_entity>
49 map(
const std::vector<domain::workunit>& v);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
An abstract job template within a compute batch.
Definition workunit.hpp:36
Represents a workunit in the database.
Definition workunit_entity.hpp:34
Maps workunit domain entities to data storage layer and vice-versa.
Definition workunit_mapper.hpp:32