![]() |
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 () |
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 |
Checks set options from the OptionsCont-singleton for being valid.
Definition at line 125 of file NWFrame.cpp.
References OptionsCont::exists(), OptionsCont::getBool(), FileHelpers::getConfigurationRelative(), OptionsCont::getOptions(), OptionsCont::getString(), OptionsCont::isDefault(), OptionsCont::isSet(), OptionsCont::set(), OptionsCont::setDefault(), WRITE_ERROR, and WRITE_WARNING.
Referenced by checkOptions(), GNEApplicationWindow::onCmdOptions(), and GNELoadThread::run().
|
static |
Inserts options used by the network writer.
Definition at line 48 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 174 of file NWFrame.cpp.
References PROGRESS_BEGIN_TIME_MESSAGE, PROGRESS_TIME_MESSAGE, NWWriter_Amitran::writeNetwork(), NWWriter_DlrNavteq::writeNetwork(), NWWriter_MATSim::writeNetwork(), NWWriter_OpenDrive::writeNetwork(), NWWriter_SUMO::writeNetwork(), and NWWriter_XML::writeNetwork().
Referenced by main(), and GNENet::save().
|
static |
Writes the given position to device in long format (one attribute per dimension)
Definition at line 187 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().