JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
JSONURLReader.h
Go to the documentation of this file.
1 //
2 // Created by Nico on 27/11/2018.
3 //
4 
5 #ifndef JODA_JSONURLREADER_H
6 #define JODA_JSONURLREADER_H
7 
9 #include <joda/config/config.h>
12 
13 namespace joda::docparsing {
14 
19 class JSONURLReader : public IWorkerThread<JsonURLReaderQueue,
20  JsonTextStreamParserQueue, void *> {
21  public:
22  JSONURLReader(IQueue *iqueue, OQueue *oqueue, void *ptr);
23  ~JSONURLReader() override;
24 
25  static const size_t recommendedThreads() { return config::readingThreads; }
26 
27  protected:
28  void work() override;
29 };
30 } // namespace joda::docparsing
31 
32 #endif // JODA_JSONURLREADER_H
Definition: IOThreadPool.h:182
OQueueStruct::queue_t OQueue
Definition: IOThreadPool.h:189
IQueueStruct::queue_t IQueue
Definition: IOThreadPool.h:188
static size_t readingThreads
Definition: config.h:56
Definition: JSONURLReader.h:20
static const size_t recommendedThreads()
Definition: JSONURLReader.h:25
~JSONURLReader() override
Definition: JSONURLReader.cpp:31
JSONURLReader(IQueue *iqueue, OQueue *oqueue, void *ptr)
Definition: JSONURLReader.cpp:21
void work() override
Definition: JSONURLReader.cpp:36
Definition: IImportSource.h:12