Path: blob/main/src/netedit/changes/GNEChange_DataInterval.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_DataInterval.h14/// @author Pablo Alvarez Lopez15/// @date Jan 202016///17// A network change in which a data interval element is created or deleted18/****************************************************************************/19#pragma once20#include <config.h>2122#include "GNEChange.h"2324// ===========================================================================25// class definitions26// ===========================================================================27/**28* @class GNEChange_DataInterval29* A network change in which a data interval element is created or deleted30*/31class GNEChange_DataInterval : public GNEChange {32FXDECLARE_ABSTRACT(GNEChange_DataInterval)3334public:35/**@brief Constructor for creating/deleting an data interval element36* @param[in] data interval The data interval element to be created/deleted37* @param[in] forward Whether to create/delete (true/false)38*/39GNEChange_DataInterval(GNEDataInterval* dataInterval, bool forward);4041/// @brief Destructor42~GNEChange_DataInterval();4344/// @name inherited from GNEChange45/// @{46/// @brief get undo Name47std::string undoName() const;4849/// @brief get Redo name50std::string redoName() const;5152/// @brief undo action53void undo();5455/// @brief redo action56void redo();57/// @}5859private:60/**@brief full information regarding the data interval element that is to be created/deleted61* @note we assume shared responsibility for the pointer (via reference counting)62*/63GNEDataInterval* myDataInterval;6465/// @brief pointer to data set parent66GNEDataSet* myDataSetParent;67};686970