Eclipse 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 (OptionsCont &oc) |
Checks set options for being valid. | |
static void | fillOptions (OptionsCont &oc, bool forNetgen) |
Inserts options used by the network writer. | |
static void | writeNetwork (const OptionsCont &oc, NBNetBuilder &nb) |
Writes the network stored in the given net builder. | |
static void | writePositionLong (const Position &pos, OutputDevice &dev) |
Writes the given position to device in long format (one attribute per dimension) | |
|
static |
Checks set options for being valid.
Definition at line 139 of file NWFrame.cpp.
References OptionsCont::exists(), OptionsCont::getBool(), FileHelpers::getConfigurationRelative(), OptionsCont::getString(), OptionsCont::isDefault(), OptionsCont::isSet(), OptionsCont::setDefault(), TL, WRITE_ERROR, and WRITE_WARNING.
Referenced by checkOptions(), GNEApplicationWindow::onCmdOpenOptionsDialog(), and GNELoadThread::run().
|
static |
Inserts options used by the network writer.
Definition at line 49 of file NWFrame.cpp.
References OptionsCont::addDescription(), OptionsCont::addSynonyme(), OptionsCont::doRegister(), and TL.
Referenced by fillOptions(), and GNELoadThread::fillOptions().
|
static |
Writes the network stored in the given net builder.
Definition at line 188 of file NWFrame.cpp.
References OptionsCont::getString(), OptionsCont::isSet(), PROGRESS_BEGIN_TIME_MESSAGE, PROGRESS_TIME_MESSAGE, TL, NWWriter_XML::writeNetwork(), NWWriter_Amitran::writeNetwork(), NWWriter_DlrNavteq::writeNetwork(), NWWriter_MATSim::writeNetwork(), NWWriter_OpenDrive::writeNetwork(), and NWWriter_SUMO::writeNetwork().
Referenced by main(), and GNENet::saveNetwork().
|
static |
Writes the given position to device in long format (one attribute per dimension)
Definition at line 201 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().