IReaders
IReader's job is to be able to load data from a frame source into a FrameStruct for each frame type in the frame source
#pragma once
#include "../structs/frame_struct.hpp"
class IReader {
public:
virtual ~IReader() {}
virtual std::vector<std::shared_ptr<FrameStruct>> GetCurrentFrame() = 0;
virtual std::vector<unsigned int> GetType() = 0;
virtual bool HasNextFrame() = 0;
virtual void NextFrame() = 0;
virtual void Reset() = 0;
virtual void GoToFrame(unsigned int frame_id) = 0;
virtual unsigned int GetCurrentFrameId() = 0;
virtual unsigned int GetFps() = 0;
};How IReader is interacted with by Sensor Stream Server
Available IReader Implementations
Last updated