Functions | |
Vector< std::tuple< int, double, double, std::string, double, double > > | readNodesFile (const std::string &fileName) |
Reads the nodes file. | |
bool | writeNodesFile (Vector< std::tuple< int, double, double, std::string, double, double > > nodesRecords, std::string &filename) |
Writes the nodes file. | |
Vector< std::tuple< int, int, int, double, int, double, double, int, double, bool, string, string, double > > | readLinksFile (const std::string &fileName) |
Reads the links file. | |
bool | writeLinksFile (Vector< std::tuple< int, int, int, double, int, double, double, int, double, bool, string, string, double > > linksRecords, std::string &filename) |
Writes the links file. | |
Vector< std::shared_ptr< NetNode > > | generateNodes (Vector< std::tuple< int, double, double, std::string, double, double > > nodesRecords) |
Generates NetNode objects from the nodes records. | |
Vector< std::shared_ptr< NetLink > > | generateLinks (Vector< std::shared_ptr< NetNode > > theFileNodes, Vector< std::tuple< int, int, int, double, int, double, double, int, double, bool, string, string, double > > linksRecords) |
Generates NetLink objects from the nodes and links records. | |
std::shared_ptr< NetNode > | getSimulatorNodeByUserID (Vector< std::shared_ptr< NetNode > > theFileNodes, int oldID) |
Gets the NetNode object with the given user identifier. | |
std::shared_ptr< NetNode > ReadWriteNetwork::getSimulatorNodeByUserID | ( | Vector< std::shared_ptr< NetNode > > | theFileNodes, |
int | oldID | ||
) |
Gets the NetNode object with the given user identifier.
Gets simulator node by user identifier.
theFileNodes | The NetNode objects generated from the nodes records. |
oldID | The user identifier of the NetNode to retrieve. |
std::runtime_error | if a runtime error occurs. |
std::runtime_error | Raised when a runtime error condition occurs. |
oldID | Identifier for the old. |
Vector< std::tuple< int, int, int, double, int, double, double, int, double, bool, std::string, std::string, double > > ReadWriteNetwork::readLinksFile | ( | const std::string & | fileName | ) |
Reads the links file.
Reads links file.
fileName | The filename of the file. |
std::runtime_error | if a runtime error occurs. |
std::runtime_error | Raised when a runtime error condition occurs. |
fileName | Filename of the file. |
Vector< std::tuple< int, double, double, std::string, double, double > > ReadWriteNetwork::readNodesFile | ( | const std::string & | fileName | ) |
Reads the nodes file.
Reads nodes file.
fileName | The filename of the file. |
std::runtime_error | if a runtime error occurs. |
std::runtime_error | Raised when a runtime error condition occurs. |
fileName | Filename of the file. |
bool ReadWriteNetwork::writeLinksFile | ( | Vector< std::tuple< int, int, int, double, int, double, double, int, double, bool, string, string, double > > | linksRecords, |
std::string & | filename | ||
) |
Writes the links file.
linksRecords | The records of links as a vector of tuples. |
filename | The filename of the file to write. |
bool ReadWriteNetwork::writeNodesFile | ( | Vector< std::tuple< int, double, double, std::string, double, double > > | nodesRecords, |
std::string & | filename | ||
) |
Writes the nodes file.
nodesRecords | The records of nodes as a vector of tuples. |
filename | The filename of the file to write. |