SUMO - Simulation of Urban MObility
|
Sets and checks options for netwrite; saves the network. More...
#include <NWFrame.h>
Static Public Member Functions | |
static bool | checkOptions () |
Checks set options from the OptionsCont-singleton for being valid. More... | |
static void | fillOptions (bool forNetgen) |
Inserts options used by the network writer. More... | |
static void | writeNetwork (const OptionsCont &oc, NBNetBuilder &nb) |
Writes the network stored in the given net builder. More... | |
static void | writePositionLong (const Position &pos, OutputDevice &dev) |
Writes the given position to device in long format (one attribute per dimension) More... | |
Static Public Attributes | |
static const std::string | MAJOR_VERSION = "version=\"0.27\"" |
The version number for written files. More... | |
|
static |
Checks set options from the OptionsCont-singleton for being valid.
Definition at line 111 of file NWFrame.cpp.
References OptionsCont::getBool(), FileHelpers::getConfigurationRelative(), OptionsCont::getOptions(), OptionsCont::getString(), OptionsCont::isDefault(), OptionsCont::isSet(), OptionsCont::set(), OptionsCont::setDefault(), WRITE_ERROR, and WRITE_WARNING.
Referenced by checkOptions(), and GNELoadThread::run().
|
static |
Inserts options used by the network writer.
Definition at line 63 of file NWFrame.cpp.
References OptionsCont::addDescription(), OptionsCont::addSynonyme(), OptionsCont::doRegister(), and OptionsCont::getOptions().
Referenced by fillOptions(), and GNELoadThread::fillOptions().
|
static |
Writes the network stored in the given net builder.
Definition at line 143 of file NWFrame.cpp.
References SysUtils::getCurrentMillis(), PROGRESS_BEGIN_MESSAGE, PROGRESS_TIME_MESSAGE, NWWriter_Amitran::writeNetwork(), NWWriter_OpenDrive::writeNetwork(), NWWriter_MATSim::writeNetwork(), NWWriter_DlrNavteq::writeNetwork(), NWWriter_XML::writeNetwork(), and NWWriter_SUMO::writeNetwork().
Referenced by main(), and GNENet::save().
|
static |
Writes the given position to device in long format (one attribute per dimension)
Definition at line 157 of file NWFrame.cpp.
References SUMO_ATTR_X, SUMO_ATTR_Y, SUMO_ATTR_Z, OutputDevice::writeAttr(), Position::x(), Position::y(), and Position::z().
Referenced by NWWriter_SUMO::writeInternalNodes(), NWWriter_SUMO::writeJunction(), and NWWriter_XML::writeNodes().
|
static |
The version number for written files.
Definition at line 69 of file NWFrame.h.
Referenced by NWWriter_XML::writeEdgesAndConnections(), NWWriter_XML::writeJoinedJunctions(), NWWriter_SUMO::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_XML::writeTrafficLights(), and NWWriter_XML::writeTypes().