1#ifndef NeTrainSim_trainsList_h
2#define NeTrainSim_trainsList_h
8#include "../util/vector.h"
36 double, double,
int>>,
37 Vector<std::tuple<int, int, double, double,
53 double,
double,
int>>,
54 Vector<std::tuple<
int,
int,
double,
double,
57 bool>> &trainRecords);
79 double,
double,
int>>,
80 Vector<std::tuple<
int,
int,
double,
84 bool>> trains,
const std::string& fileName);
A vector.
Definition vector.h:24
Definition trainslist.h:12
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 > > readTrainsFile(const std::string &fileName)
Reads a trains file and returns the train records.
Definition trainslist.cpp:26
bool 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.
Definition trainslist.cpp:270
Vector< std::shared_ptr< Train > > ReadAndGenerateTrains(const std::string &fileName)
Reads a trains file, generates trains from the train records, and returns the generated trains.
Definition trainslist.cpp:263
Vector< std::shared_ptr< Train > > 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.
Definition trainslist.cpp:190