farm-ng-core
farm_ng::EventLogReaderImpl Class Referenceabstract

Implementation of the EventLogReader class. More...

#include <event_log_reader.h>

Inheritance diagram for farm_ng::EventLogReaderImpl:
Collaboration diagram for farm_ng::EventLogReaderImpl:

Public Member Functions

virtual ~EventLogReaderImpl ()
 https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rh-dtor More...
 
virtual void reset ()=0
 
virtual EventLogPos readNextEvent (std::string *payload=nullptr)=0
 Returns next event. More...
 
virtual std::string readPayload (core::proto::Event const &event, std::streampos pos)=0
 
virtual std::filesystem::path getPath () const =0
 Returns the path including the fileaname. More...
 
std::vector< EventLogPos > const & getIndex ()
 

Detailed Description

Implementation of the EventLogReader class.

Constructor & Destructor Documentation

◆ ~EventLogReaderImpl()

virtual farm_ng::EventLogReaderImpl::~EventLogReaderImpl ( )
inlinevirtual

Member Function Documentation

◆ getIndex()

auto farm_ng::EventLogReaderImpl::getIndex ( )

◆ getPath()

virtual std::filesystem::path farm_ng::EventLogReaderImpl::getPath ( ) const
pure virtual

Returns the path including the fileaname.

Implemented in farm_ng::EventLogReaderBinaryImpl.

◆ readNextEvent()

virtual EventLogPos farm_ng::EventLogReaderImpl::readNextEvent ( std::string *  payload = nullptr)
pure virtual

Returns next event.

Implemented in farm_ng::EventLogReaderBinaryImpl.

◆ readPayload()

virtual std::string farm_ng::EventLogReaderImpl::readPayload ( core::proto::Event const &  event,
std::streampos  pos 
)
pure virtual

◆ reset()

virtual void farm_ng::EventLogReaderImpl::reset ( )
pure virtual

The documentation for this class was generated from the following files: