SUMO - Simulation of Urban MObility
NWFrame.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // Sets and checks options for netwrite
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2001-2015 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef NWFrame_h
23 #define NWFrame_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 
36 // ===========================================================================
37 // class declarations
38 // ===========================================================================
39 class OptionsCont;
40 class NBNetBuilder;
41 class Position;
42 class OutputDevice;
43 
44 
45 // ===========================================================================
46 // class definitions
47 // ===========================================================================
52 class NWFrame {
53 public:
56  static void fillOptions(bool forNetgen);
57 
58 
62  static bool checkOptions();
63 
64 
67  static void writeNetwork(const OptionsCont& oc, NBNetBuilder& nb);
68 
72  static void writePositionLong(const Position& pos, OutputDevice& dev);
73 
74 
75 
77  static const std::string MAJOR_VERSION;
78 
79 };
80 
81 
82 #endif
83 
84 /****************************************************************************/
85 
static bool checkOptions()
Checks set options from the OptionsCont-singleton for being valid.
Definition: NWFrame.cpp:110
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
static void writePositionLong(const Position &pos, OutputDevice &dev)
Writes the given position to device in long format (one attribute per dimension)
Definition: NWFrame.cpp:143
Sets and checks options for netwrite; saves the network.
Definition: NWFrame.h:52
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network stored in the given net builder.
Definition: NWFrame.cpp:132
Instance responsible for building networks.
Definition: NBNetBuilder.h:113
A storage for options typed value containers)
Definition: OptionsCont.h:108
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:71
static void fillOptions(bool forNetgen)
Inserts options used by the network writer.
Definition: NWFrame.cpp:62
static const std::string MAJOR_VERSION
The version number for written files.
Definition: NWFrame.h:77