Path: blob/main/src/netedit/changes/GNEChange_MeanData.h
169678 views
/****************************************************************************/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 GNEChange_MeanData.h14/// @author Pablo Alvarez Lopez15/// @date Nov 202216///17// A network change in which a mean data set is created or deleted18/****************************************************************************/19#pragma once20#include <config.h>2122// ===========================================================================23// included modules24// ===========================================================================25#include <config.h>2627#include "GNEChange.h"2829// ===========================================================================30// class definitions31// ===========================================================================32/**33* @class GNEChange_MeanData34* A network change in which a mean data set is created or deleted35*/36class GNEChange_MeanData : public GNEChange {37FXDECLARE_ABSTRACT(GNEChange_MeanData)3839public:40/**@brief Constructor for creating/deleting an mean data set41* @param[in] mean data The mean data set to be created/deleted42* @param[in] forward Whether to create/delete (true/false)43*/44GNEChange_MeanData(GNEMeanData* meanData, bool forward);4546/// @brief Destructor47~GNEChange_MeanData();4849/// @name inherited from GNEChange50/// @{51/// @brief get undo Name52std::string undoName() const;5354/// @brief get Redo name55std::string redoName() const;5657/// @brief undo action58void undo();5960/// @brief redo action61void redo();62/// @}6364private:65/**@brief full information regarding the mean data set that is to be created/deleted66* @note we assume shared responsibility for the pointer (via reference counting)67*/68GNEMeanData* myMeanData;69};7071/****************************************************************************/727374