This file contains the declaration of the ReadWriteNetwork namespace. More...
#include <iostream>
#include <fstream>
#include "netlink.h"
#include "netnode.h"
#include "../util/vector.h"
#include <exception>
Go to the source code of this file.
Namespaces | |
namespace | ReadWriteNetwork |
Functions | |
Vector< std::tuple< int, double, double, std::string, double, double > > | ReadWriteNetwork::readNodesFile (const std::string &fileName) |
Reads the nodes file. | |
bool | ReadWriteNetwork::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 > > | ReadWriteNetwork::readLinksFile (const std::string &fileName) |
Reads the links 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. | |
Vector< std::shared_ptr< NetNode > > | ReadWriteNetwork::generateNodes (Vector< std::tuple< int, double, double, std::string, double, double > > nodesRecords) |
Generates NetNode objects from the nodes records. | |
Vector< std::shared_ptr< NetLink > > | ReadWriteNetwork::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 > | ReadWriteNetwork::getSimulatorNodeByUserID (Vector< std::shared_ptr< NetNode > > theFileNodes, int oldID) |
Gets the NetNode object with the given user identifier. | |
This file contains the declaration of the ReadWriteNetwork namespace.
The ReadWriteNetwork namespace provides functions for reading and writing network data. It includes functions for reading nodes and links files, writing nodes and links files, and generating NetNode and NetLink objects from the read data. The ReadWriteNetwork namespace is intended to be used as part of a network simulation system. It is designed to work with other classes and data structures in the simulation. The functions in the ReadWriteNetwork namespace can be used in a C++ application. Note: The implementation of some functions is not provided in this declaration file. They should be implemented separately in a corresponding source file.