Path: blob/main/src/netedit/changes/GNEChange_GenericData.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_GenericData.h14/// @author Pablo Alvarez Lopez15/// @date Jan 202016///17// A network change in which a generic 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_GenericData34* A network change in which a generic data set is created or deleted35*/36class GNEChange_GenericData : public GNEChange {37FXDECLARE_ABSTRACT(GNEChange_GenericData)3839public:40/**@brief Constructor for creating/deleting an generic data set41* @param[in] generic data The generic data set to be created/deleted42* @param[in] forward Whether to create/delete (true/false)43*/44GNEChange_GenericData(GNEGenericData* genericData, bool forward);4546/// @brief Destructor47~GNEChange_GenericData();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 generic data set that is to be created/deleted66* @note we assume shared responsibility for the pointer (via reference counting)67*/68GNEGenericData* myGenericData;6970/// @brief data interval parent71GNEDataInterval* myDataIntervalParent;72};7374/****************************************************************************/757677