Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NWFrame Class Reference

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)
 

Detailed Description

Sets and checks options for netwrite; saves the network.

Definition at line 42 of file NWFrame.h.

Member Function Documentation

◆ checkOptions()

bool NWFrame::checkOptions ( OptionsCont oc)
static

Checks set options for being valid.

Returns
Whether needed options are set and have proper values

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().

Here is the caller graph for this function:

◆ fillOptions()

void NWFrame::fillOptions ( OptionsCont oc,
bool  forNetgen 
)
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().

Here is the caller graph for this function:

◆ writeNetwork()

void NWFrame::writeNetwork ( const OptionsCont oc,
NBNetBuilder nb 
)
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().

Here is the caller graph for this function:

◆ writePositionLong()

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 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().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: