/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.3// This program and the accompanying materials are made available under the4// terms of the Eclipse Public License 2.0 which is available at5// https://www.eclipse.org/legal/epl-2.0/6// This Source Code may also be made available under the following Secondary7// Licenses when the conditions for such availability set forth in the Eclipse8// Public License 2.0 are satisfied: GNU General Public License, version 29// or later which is available at10// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later12/****************************************************************************/13/// @file GNEEvent_NetworkLoaded.h14/// @author Jakob Erdmann15/// @date Feb 201116///17// Event to send when the network has been loaded by GNELoadThread18/****************************************************************************/19#pragma once20#include <config.h>2122#include <utils/gui/events/GUIEvent.h>232425// ===========================================================================26// class declarations27// ===========================================================================28class GNENet;293031// ===========================================================================32// class definitions33// ===========================================================================34/**35* @class GNEEvent_NetworkLoaded36*37* Throw to GUIApplicationWindow from GUILoadThread after a simulation has38* been loaded or the loading process failed39*/40class GNEEvent_NetworkLoaded : public GUIEvent {41public:42/// @brief constructor43GNEEvent_NetworkLoaded(GNENet* _net, const std::string& _file,44const std::string& _settingsFile, const bool _viewportFromRegistry) :45GUIEvent(GUIEventType::SIMULATION_LOADED),46net(_net),47file(_file),48settingsFile(_settingsFile),49viewportFromRegistry(_viewportFromRegistry) { }5051/// @brief destructor52~GNEEvent_NetworkLoaded() { }5354/// @brief the loaded net55GNENet* net;5657/// @brief the name of the loaded file58const std::string file;5960/// @brief the name of the settings file to load61const std::string settingsFile;6263/// @brief whether loading viewport from registry64const bool viewportFromRegistry;65};666768