![]() |
JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <IReader.h>
Public Types | |
| typedef JODA_READER_QUEUE< R_FLAGS >::queue_t | RQueue |
| typedef JODA_PARSER_QUEUE< P_FLAGS >::queue_t | PQueue |
| typedef JODA_READER_QUEUE< R_FLAGS >::payload_t | RPayload |
| typedef JODA_PARSER_QUEUE< P_FLAGS >::payload_t | PPayload |
| typedef JODA_READER_QUEUE< R_FLAGS > | RQueueFactory |
| typedef JODA_PARSER_QUEUE< P_FLAGS > | PQueueFactory |
Public Member Functions | |
| IReader (std::unique_ptr< RQueue > &rqueue, std::unique_ptr< PQueue > &pqueue) | |
| IReader (std::unique_ptr< RQueue > &rqueue, std::unique_ptr< PQueue > &pqueue, unsigned int maxThreads) | |
| virtual | ~IReader ()=default |
| virtual void | read () |
| virtual void | read (double sample)=0 |
| virtual bool | finishedReading () const =0 |
Public Member Functions inherited from IThreadUser | |
| IThreadUser (size_t maxThreads) | |
| virtual | ~IThreadUser ()=default |
| virtual void | forceThreads (size_t threads)=0 |
| virtual size_t | getUsedThreads () const =0 |
| virtual size_t | getMaxThreads () const |
| virtual void | setMaxThreads (size_t maxThreads) |
| virtual size_t | recommendedThreads () const =0 |
Protected Attributes | |
| std::unique_ptr< RQueue > & | rqueue |
| std::unique_ptr< PQueue > & | pqueue |
Protected Attributes inherited from IThreadUser | |
| size_t | maxThreads |
Interface for classes reading documents and commiting their contents into a queue The reader and parser flags describe which kind of data can be read and what is returned.
| R_FLAGS | Flags representing the source from which this class reads |
| P_FLAGS | Flags representing the output of this reader |
| typedef JODA_PARSER_QUEUE<P_FLAGS>::payload_t IReader< R_FLAGS, P_FLAGS >::PPayload |
| typedef JODA_PARSER_QUEUE<P_FLAGS>::queue_t IReader< R_FLAGS, P_FLAGS >::PQueue |
| typedef JODA_PARSER_QUEUE<P_FLAGS> IReader< R_FLAGS, P_FLAGS >::PQueueFactory |
| typedef JODA_READER_QUEUE<R_FLAGS>::payload_t IReader< R_FLAGS, P_FLAGS >::RPayload |
| typedef JODA_READER_QUEUE<R_FLAGS>::queue_t IReader< R_FLAGS, P_FLAGS >::RQueue |
| typedef JODA_READER_QUEUE<R_FLAGS> IReader< R_FLAGS, P_FLAGS >::RQueueFactory |
| IReader< R_FLAGS, P_FLAGS >::IReader | ( | std::unique_ptr< RQueue > & | rqueue, |
| std::unique_ptr< PQueue > & | pqueue | ||
| ) |
Creates a new reader with the given input and output queue
| rqueue | Input queue |
| pqueue | Output queue |
| IReader< R_FLAGS, P_FLAGS >::IReader | ( | std::unique_ptr< RQueue > & | rqueue, |
| std::unique_ptr< PQueue > & | pqueue, | ||
| unsigned int | maxThreads | ||
| ) |
Creates a new reader with the given input and output queue and a maximum number of threads to use during reading
| rqueue | Input queue |
| pqueue | Output queue |
| maxThreads | maximum number of threads to use during reading |
|
virtualdefault |
|
pure virtual |
Checks whether the reader is finished.
|
inlinevirtual |
Reads everything that is passed through the queue, and outputs it into the output queue
|
pure virtual |
Reads a sample of everything that is passed through the queue, and outputs it into the output queue
| sample | The sample size to take in [0,1] |
|
protected |
|
protected |