48 #ifdef CHECK_MEMORY_LEAKS
50 #endif // CHECK_MEMORY_LEAKS
68 oc.
addDescription(
"output-file",
"Output",
"The generated net will be written to FILE");
71 oc.
addSynonyme(
"plain-output-prefix",
"plain-output");
73 oc.
addDescription(
"plain-output-prefix",
"Output",
"Prefix of files to write plain xml nodes, edges and connections to");
77 "Writes information about joined junctions to FILE (can be loaded as additional node-file to reproduce joins");
82 oc.
addDescription(
"proj.plain-geo",
"Projection",
"Write geo coordinates in plain-xml");
87 oc.
addDescription(
"amitran-output",
"Output",
"The generated net will be written to FILE using Amitran format");
90 oc.
addDescription(
"matsim-output",
"Output",
"The generated net will be written to FILE using MATsim format");
93 oc.
addDescription(
"opendrive-output",
"Output",
"The generated net will be written to FILE using OpenDRIVE format");
96 oc.
addDescription(
"dlr-navteq-output",
"Output",
"The generated net will be written to dlr-navteq files with the given PREFIX");
99 oc.
addDescription(
"output.street-names",
"Output",
"Street names will be included in the output (if available)");
102 oc.
addDescription(
"output.original-names",
"Output",
"Writes original names, if given, as parameter");
105 oc.
addDescription(
"street-sign-output",
"Output",
"Writes street signs as POIs to FILE");
114 if (!oc.
isSet(
"output-file")
115 && !oc.
isSet(
"plain-output-prefix")
116 && !oc.
isSet(
"amitran-output")
117 && !oc.
isSet(
"matsim-output")
118 && !oc.
isSet(
"opendrive-output")
119 && !oc.
isSet(
"dlr-navteq-output")) {
120 oc.
set(
"output-file",
"net.net.xml");
123 if (oc.
isSet(
"opendrive-output") && oc.
getBool(
"no-internal-links")) {
124 WRITE_ERROR(
"OpenDRIVE export needs internal links computation.");
void doRegister(const std::string &name, Option *v)
Adds an option under the given name.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
static bool checkOptions()
Checks set options from the OptionsCont-singleton for being valid.
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network into a Amitran-file.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
SUMOReal x() const
Returns the x-position.
static OptionsCont & getOptions()
Retrieves the options.
void addSynonyme(const std::string &name1, const std::string &name2, bool isDeprecated=false)
Adds a synonyme for an options name (any order)
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network into a SUMO-file.
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network into a openDRIVE-file.
A point in 2D or 3D with translation and scaling methods.
SUMOReal z() const
Returns the z-position.
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network into XML-files (nodes, edges, connections, traffic lights)
static void writePositionLong(const Position &pos, OutputDevice &dev)
Writes the given position to device in long format (one attribute per dimension)
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network into XML-files (nodes, edges, connections, traffic lights)
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network stored in the given net builder.
bool set(const std::string &name, const std::string &value)
Sets the given value for the named option.
Instance responsible for building networks.
SUMOReal y() const
Returns the y-position.
A storage for options typed value containers)
Static storage of an output device and its base (abstract) implementation.
void addDescription(const std::string &name, const std::string &subtopic, const std::string &description)
Adds a description for an option.
static void fillOptions(bool forNetgen)
Inserts options used by the network writer.
static const std::string MAJOR_VERSION
The version number for written files.
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network into a MATSim-file.
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.