Abstract class defining the fundamental of any file reader that uses standard file input stream as reading mechanism.
More...
|
| SimpleFileReader (string const &path, ios_base::openmode openMode=ios_base::in) |
| Default constructor for simple file reader. More...
|
|
ReadArg | read () override |
| Read from file simply by applying the reading strategy. Therefore, there is no concurrency handling mechanism and usage of simple file reader is not thread safe. More...
|
|
void | setPath (string const &path) override |
| Set the path to the file to be read, also opening the input stream for the new file and updating the strategy. It assures the previous input file stream is closed before opening the new one. More...
|
|
| FileReader (string const &path) |
| Default constructor for file reader. More...
|
|
virtual string | getPath () const |
| Obtain the path to the file to be read. More...
|
|
template<typename ReadArg>
class helios::filems::SimpleFileReader< ReadArg >
Abstract class defining the fundamental of any file reader that uses standard file input stream as reading mechanism.
- Author
- Alberto M. Esmoris Pena
- Version
- 1.0
- Template Parameters
-
ReadArg | Type of what is read from file |
- See also
- filems::FileReader