52 if (networkPath.empty()) {
92 std::string arguments;
101 arguments +=
"--write-selections ";
107 arguments +=
"--write-shapes ";
111 arguments +=
"--write-shapes ";
114 arguments +=
"--write-selections ";
117 arguments +=
"--plain-geo ";
120 arguments +=
"--verbose ";
123 arguments +=
"--use-prefix ";
126 arguments +=
"--direct ";
129 arguments +=
"--patch-on-import ";
132 arguments +=
"--remove-plain ";
159 options.
addDescription(
"write-selections",
"output",
TL(
"Write selection files for created, deleted and changed elements"));
162 options.
addDescription(
"write-shapes",
"output",
TL(
"Write shape files for created, deleted and changed elements"));
165 options.
addDescription(
"plain-geo",
"output",
TL(
"Write geo coordinates instead of network coordinates"));
172 options.
addDescription(
"use-prefix",
"Processing",
TL(
"Interpret source and dest as plain-xml prefix instead of network names"));
175 options.
addDescription(
"direct",
"Processing",
TL(
"Compare source and dest files directly"));
178 options.
addDescription(
"patch-on-import",
"Processing",
TL(
"Generate patch that can be applied during initial network import (exports additional connection elements)"));
181 options.
addDescription(
"remove-plain",
"Processing",
TL(
"Avoid saving plain xml files of source and destination networks"));
184 options.
addDescription(
"copy",
"Processing",
TL(
"Comma-separated list of element names to copy (if they are unchanged)"));
191 options.
addDescription(
"select-modified",
"Select",
TL(
"Select modified elements"));
194 options.
addDescription(
"select-added",
"Select",
TL(
"Select added elements"));
197 options.
addDescription(
"select-deleted",
"Select",
TL(
"Select deleted elements"));
201 options.
addDescription(
"load-shapes-modified",
"Load",
TL(
"Load shapes for elements"));
204 options.
addDescription(
"load-shapes-added",
"Load",
TL(
"Load shapes for added"));
207 options.
addDescription(
"load-shapes-deleted",
"Load",
TL(
"Load shapes for deleted elements"));
224 if (!generalHandler.
parse()) {
@ NETWORK
Network mode (Edges, junctions, etc..)
#define WRITE_MESSAGE(msg)
static std::string getFilePath(const std::string &path)
Removes the file information from the given path.
FileBucket * getBucket(const FileBucket::Type type, const std::string &filename, const bool create)
get bucket
GNEUndoList * getUndoList()
get pointer to undoList
GNEViewNet * getViewNet()
get pointer to viewNet
GNEApplicationWindowHelper::FileBucketHandler * getFileBucketHandler() const
get file bucket handler
bool isUndoRedoAllowed() const
void loadFromFile(const std::string &file) const
load from file
GNESelectorFrame::SelectionOperation * getSelectionOperationModul() const
get selection operation modul
GNENet * getNet() const
get the net object
GNEViewParent * getViewParent() const
get the net object
GNESelectorFrame * getSelectorFrame() const
get frame for select elements
A storage for options typed value containers)
void addDescription(const std::string &name, const std::string &subtopic, const std::string &description)
Adds a description for an option.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
void doRegister(const std::string &name, Option *o)
Adds an option under the given name.
bool set(const std::string &name, const std::string &value, const bool append=false)
Sets the given value for the named option.
void addOptionSubTopic(const std::string &topic)
Adds an option subtopic.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
void resetWritable()
Resets all options to be writeable.
static OptionsCont & getOptions()
Retrieves the options.
static void setValidation(const std::string &validationScheme, const std::string &netValidationScheme, const std::string &routeValidationScheme)
Enables or disables validation.