crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
ThreadDatabaseEntry.hpp
Go to the documentation of this file.
1 /*
2  *
3  * ---
4  *
5  * Copyright (C) 2020 Anselm Schmidt (ans[ät]ohai.su)
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version in addition to the terms of any
11  * licences already herein identified.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <https://www.gnu.org/licenses/>.
20  *
21  * ---
22  *
23  * ThreadDatabaseEntry.hpp
24  *
25  * Information about a thread as stored in the database (thread options and thread status).
26  *
27  * Created on: Oct 11, 2018
28  * Author: ans
29  */
30 
31 #ifndef STRUCT_THREADDATABASEENTRY_HPP_
32 #define STRUCT_THREADDATABASEENTRY_HPP_
33 
34 #include "ThreadOptions.hpp"
35 #include "ThreadStatus.hpp"
36 
37 namespace crawlservpp::Struct {
38 
43 
46 
49 
53 
55  ThreadDatabaseEntry() = default;
56 
58 
65  const ThreadOptions& setOptions,
66  const ThreadStatus& setStatus
67  ) : options(setOptions), status(setStatus) {}
68 
70  };
71 
72 } /* namespace crawlservpp::Struct */
73 
74 #endif /* STRUCT_THREADDATABASEENTRY_HPP_ */
ThreadOptions options
Options for the thread.
Definition: ThreadDatabaseEntry.hpp:45
Thread status containing its ID, status message, pause state, and progress.
Definition: ThreadStatus.hpp:54
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
Information about a thread as stored in the database, containing both the options for and the status ...
Definition: ThreadDatabaseEntry.hpp:40
ThreadStatus status
Status of the thread.
Definition: ThreadDatabaseEntry.hpp:48
ThreadDatabaseEntry(const ThreadOptions &setOptions, const ThreadStatus &setStatus)
Constructor setting the options for and the status of the thread.
Definition: ThreadDatabaseEntry.hpp:64
ThreadDatabaseEntry()=default
Default constructor.
Namespace for data structures.
Definition: AlgoThreadProperties.hpp:43