/****************************************************************************/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 RODFDetectorHandler.h14/// @author Daniel Krajzewicz15/// @author Eric Nicolay16/// @author Jakob Erdmann17/// @author Michael Behrisch18/// @date Thu, 16.03.200619///20// missing_desc21/****************************************************************************/22#pragma once23#include <config.h>2425#include <string>26#include <utils/xml/SUMOSAXHandler.h>27#include <utils/options/OptionsCont.h>28#include "RODFDetector.h"293031// ===========================================================================32// class definitions33// ===========================================================================34/**35* @class RODFDetectorHandler36* @brief SAX2-Handler for loading DFROUTER-detector definitions37*/38class RODFDetectorHandler : public SUMOSAXHandler {39public:40/// Constructor41RODFDetectorHandler(RODFNet* optNet, bool ignoreErrors, RODFDetectorCon& con,42const std::string& file);4344/// Destructor45virtual ~RODFDetectorHandler();4647protected:48/// @name inherited from GenericSAXHandler49//@{5051/** @brief Called on the opening of a tag;52*53* @param[in] element ID of the currently opened element54* @param[in] attrs Attributes within the currently opened element55* @exception ProcessError If something fails56* @see GenericSAXHandler::myStartElement57*/58void myStartElement(int element,59const SUMOSAXAttributes& attrs);60//@}6162private:63/// the net64RODFNet* myNet;6566/// whether to ignore errors on parsing67bool myIgnoreErrors;6869/// the container to put the detectors into70RODFDetectorCon& myContainer;717273private:74/// invalidated copy constructor75RODFDetectorHandler(const RODFDetectorHandler& src);7677/// invalidated assignment operator78RODFDetectorHandler& operator=(const RODFDetectorHandler& src);7980};818283