#include <CASTORFile.h>
Public Member Functions | |
void | writeLine (Vehicle *pVeh) |
Writes a line representing a truck to a CASTOR file. | |
Truck * | readLine () |
Reads a line representing a truck from a CASTOR file. | |
CASTORFile (std::string inputFile, std::string outputFile) | |
Constructor. | |
virtual | ~CASTORFile () |
Default Destructor. |
CASTORFile::CASTORFile | ( | std::string | inputFile, | |
std::string | outputFile | |||
) |
Constructor.
inputFile | The file to read input from | |
outputFile | The file to write output to |
CASTORFile::~CASTORFile | ( | ) | [virtual] |
Default Destructor.
void CASTORFile::writeLine | ( | Vehicle * | pVeh | ) | [virtual] |
Writes a line representing a truck to a CASTOR file.
pVeh | The vehicle to write to file |
Implements FileHandler.
Truck * CASTORFile::readLine | ( | ) | [virtual] |
Reads a line representing a truck from a CASTOR file.
Implements FileHandler.