31 #ifndef STRUCT_ALGOTHREADPROPERTIES_HPP_ 32 #define STRUCT_ALGOTHREADPROPERTIES_HPP_ 34 #include "../Main/Database.hpp" 35 #include "../Main/Exception.hpp" 36 #include "../Struct/ThreadOptions.hpp" 37 #include "../Struct/ThreadStatus.hpp" 83 std::uint32_t setAlgoId,
108 std::uint32_t setAlgoId,
116 dbBase(setDatabase) {
119 "AlgoThreadProperties::AlgoThreadProperties():" 120 " Invalid thread ID for previously interrupted algorithm (is zero)" AlgoThreadProperties(std::uint32_t setAlgoId, const ThreadOptions &setOptions, Main::Database &setDatabase)
Constructor setting properties for a newly created thread.
Definition: AlgoThreadProperties.hpp:82
Thread status containing its ID, status message, pause state, and progress.
Definition: ThreadStatus.hpp:54
Main::Database & dbBase
Reference to the database instance used by the thread.
Definition: AlgoThreadProperties.hpp:67
Thread options containing the name of the module run, as well as the IDs of the website, URL list, and configuration used.
Definition: ThreadOptions.hpp:40
ThreadOptions options
Options used for the algorithm thread.
Definition: AlgoThreadProperties.hpp:54
std::uint32_t algoId
The ID of the algorithm run by the thread.
Definition: AlgoThreadProperties.hpp:51
Class handling database access for the command-and-control and its threads.
Definition: Database.hpp:366
AlgoThreadProperties(std::uint32_t setAlgoId, const ThreadOptions &setOptions, const ThreadStatus &setStatus, Main::Database &setDatabase)
Constructor setting properties for a previously interrupted thread.
Definition: AlgoThreadProperties.hpp:107
AlgoThreadProperties & operator=(AlgoThreadProperties &)=delete
Deleted copy assignment operator.
virtual ~AlgoThreadProperties()=default
Default destructor.
Base class for all exceptions thrown by the application.
Definition: Exception.hpp:90
Namespace for data structures.
Definition: AlgoThreadProperties.hpp:43
Properties of an algorithm thread.
Definition: AlgoThreadProperties.hpp:46
std::uint64_t id
The ID of the thread.
Definition: ThreadStatus.hpp:59
ThreadStatus status
Status of the algorithm thread.
Definition: AlgoThreadProperties.hpp:60