fix ocr violations

This commit is contained in:
Fabian Posch 2026-01-15 23:35:57 +01:00
parent 6c7ca2fec4
commit f848d380fc
3 changed files with 29 additions and 12 deletions

View file

@ -223,6 +223,11 @@ class SimConfigArtifact: public Artifact {
const bool& has_reference = has_reference_; const bool& has_reference = has_reference_;
inline void set_prolog (std::vector<std::string> prolog) { this->prolog = prolog; };
inline void set_epilog (std::vector<std::string> epilog) { this->epilog = epilog; };
inline std::vector<std::string>& get_prolog () { return this->prolog; };
inline std::vector<std::string>& get_epilog () { return this->epilog; };
/** /**
* @brief Can this simulation be handled by multiple nodes * @brief Can this simulation be handled by multiple nodes
* *
@ -244,6 +249,8 @@ class SimConfigArtifact: public Artifact {
bool has_reference_; bool has_reference_;
std::vector<testcase_t> testcases; std::vector<testcase_t> testcases;
std::vector<std::string> prolog;
std::vector<std::string> epilog;
}; };
/** Reference to a signal in an ACT design */ /** Reference to a signal in an ACT design */

View file

@ -21,8 +21,7 @@
************************************************************************** **************************************************************************
*/ */
#ifndef __DB_TYPES_HPP__ #pragma once
#define __DB_TYPES_HPP__
#include <iomanip> #include <iomanip>
#include <pqxx/pqxx> #include <pqxx/pqxx>
@ -184,9 +183,6 @@ struct std::hash<db::uuid_t> {
\ \
\ \
template<> \ template<> \
std::string const type_name<T>{name}; \
\
template<> \
struct nullness<T> : pqxx::no_null<T> {}; \ struct nullness<T> : pqxx::no_null<T> {}; \
\ \
template<> \ template<> \
@ -271,7 +267,9 @@ struct std::hash<db::uuid_t> {
}; \ }; \
}; \ }; \
}; };
// template<>
// std::string const type_name<T>{name};
//
/** /**
* @brief Conversion extension for uuid_t for the pqxx library * @brief Conversion extension for uuid_t for the pqxx library
@ -281,9 +279,6 @@ struct std::hash<db::uuid_t> {
*/ */
namespace pqxx { namespace pqxx {
template<>
std::string const type_name<db::uuid_t>{"uuid_t"};
template<> template<>
struct nullness<db::uuid_t> : pqxx::no_null<db::uuid_t> {}; struct nullness<db::uuid_t> : pqxx::no_null<db::uuid_t> {};
@ -344,6 +339,3 @@ struct string_traits<db::uuid_t> {
}; };
DB_REGISTER_ENUM_CLASS(db::JobStatusType, db::job_status_type_st, "job_status_type"); DB_REGISTER_ENUM_CLASS(db::JobStatusType, db::job_status_type_st, "job_status_type");
#endif

18
src/db_types.cpp Normal file
View file

@ -0,0 +1,18 @@
#include "db_types.hpp"
#include <pqxx/pqxx>
/**
* @brief Conversion extension for uuid_t for the pqxx library
*
* For more information see https://libpqxx.readthedocs.io/en/7.4.1/a01360.html
*
*/
namespace pqxx {
template<>
std::string const type_name<db::JobStatusType>{"job_status_type"};
template<>
std::string const type_name<db::uuid_t>{"uuid_t"};
};