Path: blob/main/src/netedit/changes/GNEChange_RegisterJoin.h
193758 views
/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-2026 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_RegisterJoin.h14/// @author Jakob Erdmann15/// @date June 202416///17// Record joined junctions in NBNodeCont18/****************************************************************************/19#pragma once20#include <config.h>2122#include "GNEChange.h"232425class NBNodeCont;26class NBNode;2728// ===========================================================================29// class definitions30// ===========================================================================31/**32* @class GNEChange_RegisterJoin33* @brief the function-object for an editing operation (abstract base)34*/35class GNEChange_RegisterJoin : public GNEChange {36FXDECLARE_ABSTRACT(GNEChange_RegisterJoin)3738public:39/**@brief change attribute40* @param[in] undoList The undoList41*/42static void registerJoin(const std::set<NBNode*, ComparatorIdLess>& cluster, NBNodeCont& nc, GNEUndoList* undoList);4344/// @brief Destructor45~GNEChange_RegisterJoin();4647/// @name inherited from GNEChange48/// @{4950/// @brief get undo Name51std::string undoName() const;5253/// @brief get Redo name54std::string redoName() const;5556/// @brief undo action57void undo();5859/// @brief redo action60void redo();6162/// @}6364private:65std::set<std::string> myNodeIDs;66NBNodeCont& myNC;6768/**@brief constructor69* @param[in] ac The attribute-carrier to be modified70* @param[in] key The attribute key71* @param[in] value The new value72*/73GNEChange_RegisterJoin(const std::set<NBNode*, ComparatorIdLess>& cluster, NBNodeCont& nc);74};757677