/****************************************************************************/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 GeneralHandler.cpp14/// @author Pablo Alvarez Lopez15/// @date Sep 202116///17// General element handler18/****************************************************************************/1920#include <utils/common/FileBucket.h>21#include <utils/xml/XMLSubSys.h>2223#include "GeneralHandler.h"2425// ===========================================================================26// method definitions27// ===========================================================================2829GeneralHandler::GeneralHandler(FileBucket* fileBucket) :30SUMOSAXHandler(fileBucket->getFilename()) {31}323334GeneralHandler::~GeneralHandler() {}353637bool38GeneralHandler::parse() {39return XMLSubSys::runParser(*this, getFileName());40}414243void44GeneralHandler::myStartElement(int element, const SUMOSAXAttributes& attrs) {45// obtain tag46const SumoXMLTag tag = (element == 0) ? SUMO_TAG_ROOTFILE : static_cast<SumoXMLTag>(element);47// begin tag48beginTag(tag, attrs);49}505152void53GeneralHandler::myEndElement(int /*element*/) {54// end tag55endTag();56}5758/****************************************************************************/596061