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. | |
static void | fillOptions (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 Public Attributes | |
static const std::string | MAJOR_VERSION = "version=\"0.13\"" |
The version number for written files. |
|
static |
Checks set options from the OptionsCont-singleton for being valid.
Definition at line 113 of file NWFrame.cpp.
References OptionsCont::getBool(), OptionsCont::getOptions(), OptionsCont::isSet(), OptionsCont::set(), and WRITE_ERROR.
Referenced by checkOptions().
|
static |
Inserts options used by the network writer.
Definition at line 62 of file NWFrame.cpp.
References OptionsCont::addDescription(), OptionsCont::addSynonyme(), OptionsCont::doRegister(), and OptionsCont::getOptions().
Referenced by fillOptions().
|
static |
Writes the network stored in the given net builder.
Definition at line 135 of file NWFrame.cpp.
References OutputDevice::close(), OutputDevice::getDevice(), NBNetBuilder::getJoinedEdgesMap(), OptionsCont::getString(), and OptionsCont::isSet().
Referenced by main().
|
static |
Writes the given position to device in long format (one attribute per dimension)
Definition at line 152 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 77 of file NWFrame.h.
Referenced by NWWriter_XML::writeEdgesAndConnections(), NWWriter_XML::writeJoinedJunctions(), NWWriter_SUMO::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_XML::writeStreetSigns(), and NWWriter_XML::writeTrafficLights().