#include <FileHandler.h>
Public Member Functions | |
std::vector< Truck * > | loadTruckGroup (int no) |
Facilitates the buffering of a number of vehicles, rather than line by line input. | |
virtual void | writeLine (Vehicle *pVeh)=0 |
virtual Truck * | readLine ()=0 |
FileHandler () | |
Default Constructor. | |
virtual | ~FileHandler () |
Default Destructor. | |
Protected Attributes | |
std::ifstream | inFile |
std::ofstream | outFile |
std::vector< Truck * > | m_Trucks |
char * | pTruck |
char | singleTruck [78] |
FileHandler::FileHandler | ( | ) |
Default Constructor.
FileHandler::~FileHandler | ( | ) | [virtual] |
Default Destructor.
std::vector< Truck * > FileHandler::loadTruckGroup | ( | int | no | ) |
Facilitates the buffering of a number of vehicles, rather than line by line input.
no | The number of vehicles to buffer |
virtual void FileHandler::writeLine | ( | Vehicle * | pVeh | ) | [pure virtual] |
Implemented in CASTORFile, and SAFTFile.
virtual Truck* FileHandler::readLine | ( | ) | [pure virtual] |
Implemented in CASTORFile, and SAFTFile.
std::ifstream FileHandler::inFile [protected] |
std::ofstream FileHandler::outFile [protected] |
std::vector<Truck*> FileHandler::m_Trucks [protected] |
char* FileHandler::pTruck [protected] |
char FileHandler::singleTruck[78] [protected] |