Eclipse SUMO - Simulation of Urban MObility
NWFrame.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
17 // Sets and checks options for netwrite
18 /****************************************************************************/
19 #ifndef NWFrame_h
20 #define NWFrame_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 
29 // ===========================================================================
30 // class declarations
31 // ===========================================================================
32 class OptionsCont;
33 class NBNetBuilder;
34 class Position;
35 class OutputDevice;
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
45 class NWFrame {
46 public:
48  static void fillOptions(bool forNetgen);
49 
53  static bool checkOptions();
54 
56  static void writeNetwork(const OptionsCont& oc, NBNetBuilder& nb);
57 
59  static void writePositionLong(const Position& pos, OutputDevice& dev);
60 
61 };
62 
63 
64 #endif
65 
66 /****************************************************************************/
67 
NBNetBuilder
Instance responsible for building networks.
Definition: NBNetBuilder.h:110
OutputDevice
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:64
NWFrame::fillOptions
static void fillOptions(bool forNetgen)
Inserts options used by the network writer.
Definition: NWFrame.cpp:50
NWFrame
Sets and checks options for netwrite; saves the network.
Definition: NWFrame.h:45
NWFrame::writeNetwork
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network stored in the given net builder.
Definition: NWFrame.cpp:175
NWFrame::checkOptions
static bool checkOptions()
Checks set options from the OptionsCont-singleton for being valid.
Definition: NWFrame.cpp:126
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
OptionsCont
A storage for options typed value containers)
Definition: OptionsCont.h:90
config.h
NWFrame::writePositionLong
static void writePositionLong(const Position &pos, OutputDevice &dev)
Writes the given position to device in long format (one attribute per dimension)
Definition: NWFrame.cpp:189