32 myNetgenerateOptions(netgenerateOptions) {
53 const std::string exePath =
"netgenerate.exe";
55 const std::string exePath =
"netgenerate";
57 const char* sumoHomeEnv = getenv(
"SUMO_HOME");
58 std::string sumoHome =
"";
59 if (sumoHomeEnv !=
nullptr && sumoHomeEnv != std::string(
"")) {
60 sumoHome = std::string(sumoHomeEnv);
62 if (sumoHome.back() ==
'\\') {
63 sumoHome = sumoHome.substr(0, sumoHome.size() - 1);
66 if (sumoHome.front() ==
'"') {
67 sumoHome.erase(sumoHome.begin());
69 if (sumoHome.size() > 0 && sumoHome.back() ==
'"') {
76 std::string runCommand =
"\"" + sumoHome + exePath +
"\"";
81 if (topic !=
"Configuration") {
83 for (
const auto& entry : entries) {
@ MID_GNE_NETGENERATE
netgenerate dialog
@ MID_GNE_POSTPROCESSINGNETGENERATE
postprocesing netgenerate
GUIIcon
An enumeration of icons used by the gui applications.
The main window of Netedit.
GNEExternalRunner * getExternalRunner() const
get external runner
GNEApplicationWindow * myApplicationWindow
FOX needs this.
void openDialog(FXWindow *focusableElement=nullptr)
open dialog
long closeDialogCanceling()
close dialog declining the changes
void runTool(GNERunDialog *runDialog)
run tool called from dialog
void abort()
abort running
~GNERunNetgenerateDialog()
destructor
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
bool myError
flag to check if there is an error
GNERunNetgenerateDialog(GNEApplicationWindow *applicationWindow, const OptionsCont *netgenerateOptions)
Constructor.
long onCmdAccept(FXObject *, FXSelector, void *)
event after press close button
long onCmdBack(FXObject *, FXSelector, void *)
event after press back button
std::string getRunCommand() const
get run command
const OptionsCont * myNetgenerateOptions
netgenerate options
dialog arguments, used for certain modal dialogs that can not be edited using tab
A storage for options typed value containers)
const std::vector< std::string > & getSubTopics() const
return the list of subtopics
bool isDefault(const std::string &name) const
Returns the information whether the named option has still the default value.
std::string getValueString(const std::string &name) const
Returns the string-value of the named option (all options)
std::vector< std::string > getSubTopicsEntries(const std::string &subtopic) const
return the list of entries for the given subtopic