NeTrainSim 0.1.1 beta
The Open-Source Network Trains Simulator
 
Loading...
Searching...
No Matches
XMLManager Namespace Reference

Functions

void createProjectFile (const QString &projectName, const QString &networkName, const QString &authorName, const QString &nodesFileName, const QString &linksFileName, const QString &trainsFileName, const QString &simEndTime, const QString &simTimestep, const QString &simPlotTime, const QString &filename)
 create the project file
 
std::tuple< QString, QString, QString, QString, QString, QString, QString, QString, QString > readProjectFile (const QString &filename)
 read the project file
 

Function Documentation

◆ createProjectFile()

void XMLManager::createProjectFile ( const QString &  projectName,
const QString &  networkName,
const QString &  authorName,
const QString &  nodesFileName,
const QString &  linksFileName,
const QString &  trainsFileName,
const QString &  simEndTime,
const QString &  simTimestep,
const QString &  simPlotTime,
const QString &  filename 
)

create the project file

Parameters
projectNameis the project name
networkNameis the network name
authorNameis the author name (who run the simulation)
nodesFileNameis the nodes file path
linksFileNameis the links file path
trainsFileNameis the trains file path
simEndTimeis the simulation end time
simTimestepis the time step of the simulation
simPlotTimeis the frequency of plotting the trains
filenameis the project file name

◆ readProjectFile()

std::tuple< QString, QString, QString, QString, QString, QString, QString, QString, QString > XMLManager::readProjectFile ( const QString &  filename)

read the project file

Parameters
filenameis the project file to load
Returns
a tuple of projectName, networkName, authorName, nodesFileName, linksFileName, trainsFileName, simEndTime, simTimestep, simPlotTime