3 #include <filems/read/strategies/ReadingStrategy.h>
8 namespace helios {
namespace filems{
11 using std::shared_ptr;
19 template <
typename ReadType>
52 virtual ReadType
read() = 0;
Abstract class defining the fundamentals of any file reader.
Definition: FileReader.h:20
virtual void makeStrategy()=0
Build the strategy for the file reader.
FileReader(string const &path)
Default constructor for file reader.
Definition: FileReader.h:41
virtual ReadType read()=0
Read from file.
virtual string getPath() const
Obtain the path to the file to be read.
Definition: FileReader.h:71
shared_ptr< ReadingStrategy< ReadType > > readingStrategy
The reading strategy to be used by the file reader.
Definition: FileReader.h:32
string path
Path to the file to be read.
Definition: FileReader.h:27
virtual void setPath(string const &path)
Set the path to the file to be read.
Definition: FileReader.h:77