Used to implement methods common to both the tape readers and the tape writers. More...
#include <commonReaderWriterBase.hpp>
Public Member Functions | |
CommonReaderWriterMethods () | |
Constructor. | |
CommonReaderWriterMethods (std::string const &name) | |
Constructor. | |
std::string | modifyFileName (std::string const &suffix) |
Remove the file extension and replace it with a new suffix. | |
void | openFile (FILE *&fileHandle, std::string const &name, std::string const &mode) |
Public Attributes | |
std::string | fileName |
The base file name provided by the user. | |
Used to implement methods common to both the tape readers and the tape writers.
|
inline |
Open a file and check for success. Failure terminates and prints an error.
mode
is open mode from fopen
.