Helios++
Helios software for LiDAR simulations
|
Abstract class defining the fundamentals of any file reader. More...
#include <FileReader.h>
Public Member Functions | |
FileReader (string const &path) | |
Default constructor for file reader. More... | |
virtual ReadType | read ()=0 |
Read from file. More... | |
virtual string | getPath () const |
Obtain the path to the file to be read. More... | |
virtual void | setPath (string const &path) |
Set the path to the file to be read. More... | |
Protected Member Functions | |
virtual void | makeStrategy ()=0 |
Build the strategy for the file reader. | |
Protected Attributes | |
string | path |
Path to the file to be read. | |
shared_ptr< ReadingStrategy< ReadType > > | readingStrategy = nullptr |
The reading strategy to be used by the file reader. More... | |
Abstract class defining the fundamentals of any file reader.
ReadType | Type of what is read from file |
|
inline |
Default constructor for file reader.
|
inlinevirtual |
Obtain the path to the file to be read.
|
pure virtual |
Read from file.
Implemented in helios::filems::SimpleFileReader< ReadArg >, helios::filems::SimpleFileReader< int >, helios::filems::SimpleFileReader< string >, and helios::filems::SimpleFileReader< char >.
|
inlinevirtual |
Set the path to the file to be read.
path | Path to the file to be read |
Reimplemented in helios::filems::SimpleFileReader< ReadArg >, helios::filems::SimpleFileReader< int >, helios::filems::SimpleFileReader< string >, and helios::filems::SimpleFileReader< char >.
|
protected |
The reading strategy to be used by the file reader.