JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
JSONFileReader.h
Go to the documentation of this file.
1 //
2 // Created by Nico on 27/11/2018.
3 //
4 
5 #ifndef JODA_JSONFILEREADER_H
6 #define JODA_JSONFILEREADER_H
7 
9 #include <joda/config/config.h>
12 
13 namespace joda::docparsing {
19 class JSONFileReader : public IWorkerThread<JsonFileSeperatedReaderQueue,
20  JsonTextParserQueue, void *> {
21  public:
22  JSONFileReader(IQueue *iqueue, OQueue *oqueue, void *ptr);
23  ~JSONFileReader() 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_JSONFILEREADER_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: JSONFileReader.h:20
static const size_t recommendedThreads()
Definition: JSONFileReader.h:25
void work() override
Definition: JSONFileReader.cpp:25
JSONFileReader(IQueue *iqueue, OQueue *oqueue, void *ptr)
Definition: JSONFileReader.cpp:13
~JSONFileReader() override
Definition: JSONFileReader.cpp:20
Definition: IImportSource.h:12