Path: blob/main/src/netedit/changes/GNEChange_TAZSourceSink.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_TAZSourceSink.h14/// @author Pablo Alvarez Lopez15/// @date Jan 202516///17// A network change in which a TAZ SourceSink element is created or deleted18/****************************************************************************/19#pragma once20#include <config.h>2122#include "GNEChange.h"232425// ===========================================================================26// class definitions27// ===========================================================================28/**29* @class GNEChange_TAZSourceSink30* A network change in which a sourceSink element is created or deleted31*/32class GNEChange_TAZSourceSink : public GNEChange {33FXDECLARE_ABSTRACT(GNEChange_TAZSourceSink)3435public:36/**@brief Constructor for creating/deleting an sourceSink element37* @param[in] sourceSink The sourceSink element to be created/deleted38* @param[in] forward Whether to create/delete (true/false)39*/40GNEChange_TAZSourceSink(GNETAZSourceSink* sourceSink, bool forward);4142/// @brief Destructor43~GNEChange_TAZSourceSink();4445/// @name inherited from GNEChange46/// @{4748/// @brief get undo Name49std::string undoName() const;5051/// @brief get Redo name52std::string redoName() const;5354/// @brief undo action55void undo();5657/// @brief redo action58void redo();5960/// @}6162private:63/**@brief full information regarding the sourceSink element that is to be created/deleted64* @note we assume shared responsibility for the pointer (via reference counting)65*/66GNETAZSourceSink* mySourceSink;67};686970