This file declares functions related to managing a list of trains. More...
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include "../util/vector.h"
#include <regex>
#include "train.h"
Go to the source code of this file.
Namespaces | |
namespace | TrainsList |
Functions | |
Vector< std::tuple< std::string, Vector< int >, double, double, Vector< std::tuple< int, double, double, int, double, double, double, double, int > >, Vector< std::tuple< int, int, double, double, double, double, double, int > >, bool > > | TrainsList::readTrainsFile (const std::string &fileName) |
Reads a trains file and returns the train records. | |
Vector< std::shared_ptr< Train > > | TrainsList::generateTrains (Vector< std::tuple< std::string, Vector< int >, double, double, Vector< std::tuple< int, double, double, int, double, double, double, double, int > >, Vector< std::tuple< int, int, double, double, double, double, double, int > >, bool > > &trainRecords) |
Generates a Vector of trains from the given train records. | |
Vector< std::shared_ptr< Train > > | TrainsList::ReadAndGenerateTrains (const std::string &fileName) |
Reads a trains file, generates trains from the train records, and returns the generated trains. | |
bool | TrainsList::writeTrainsFile (Vector< std::tuple< std::string, Vector< int >, double, double, Vector< std::tuple< int, double, double, int, double, double, double, double, int > >, Vector< std::tuple< int, int, double, double, double, double, double, int > >, bool > > trains, const std::string &fileName) |
Writes the train records to a trains file. | |
This file declares functions related to managing a list of trains.
The functions provide functionality for reading and writing train records from/to a file, generating trains from train records, and other operations. The functions are part of the TrainsList namespace and can be accessed accordingly. Note: The implementation of the functions is not provided in this declaration file. They should be implemented separately in a corresponding source file.