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. |
bool NWFrame::checkOptions | ( | ) | [static] |
Checks set options from the OptionsCont-singleton for being valid.
Definition at line 99 of file NWFrame.cpp.
References OptionsCont::getBool(), OptionsCont::getOptions(), OptionsCont::isSet(), OptionsCont::set(), and WRITE_ERROR.
Referenced by checkOptions().
void NWFrame::fillOptions | ( | bool | forNetgen | ) | [static] |
Inserts options used by the network writer.
Definition at line 60 of file NWFrame.cpp.
References OptionsCont::addDescription(), OptionsCont::addSynonyme(), OptionsCont::doRegister(), and OptionsCont::getOptions().
Referenced by fillOptions().
void NWFrame::writeNetwork | ( | const OptionsCont & | oc, |
NBNetBuilder & | nb | ||
) | [static] |
Writes the network stored in the given net builder.
Definition at line 116 of file NWFrame.cpp.
References OutputDevice::close(), OutputDevice::getDevice(), NBNetBuilder::getJoinedEdgesMap(), OptionsCont::getString(), and OptionsCont::isSet().
Referenced by main().
void NWFrame::writePositionLong | ( | const Position & | pos, |
OutputDevice & | dev | ||
) | [static] |
Writes the given position to device in long format (one attribute per dimension)
Definition at line 131 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().
const std::string NWFrame::MAJOR_VERSION = "version=\"0.13\"" [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(), and NWWriter_XML::writeTrafficLights().