16 :
StoppableThread(std::move(name)), fSource(source), fSelfStopping(true), fEventsRead(0),
23 if(name.length() == 0) {
27 if((loop ==
nullptr) && (source !=
nullptr)) {
35 std::shared_ptr<TRawEvent> event;
83 std::this_thread::sleep_for(std::chrono::milliseconds(500));
std::atomic_size_t & ItemsPopped()
std::atomic_long & InputSize()
static StoppableThread * Get(const std::string &name)
void ReplaceSource(TRawFile *new_source)
std::shared_ptr< ThreadsafeQueue< std::shared_ptr< TRawEvent > > > fOutputQueue
static TDataLoop * Get(std::string name="", TRawFile *source=nullptr)
void ClearQueue() override
bool Iteration() override
static TGRSIOptions * Get(int argc=0, char **argv=nullptr)
Do not use!
virtual int Read(std::shared_ptr< TRawEvent > event)=0
Read one event from the file.
virtual void Skip(size_t nofEvents)=0
Skip nofEvents events in file.
virtual size_t FileSize()
virtual size_t BytesRead()
virtual std::shared_ptr< TRawEvent > NewEvent()=0