/****************************************************************************/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 LineHandler.h14/// @author Daniel Krajzewicz15/// @author Michael Behrisch16/// @date Fri, 19 Jul 200217///18// Interface definition for a class which retrieves lines from a LineHandler19/****************************************************************************/20#pragma once21#include <config.h>2223#include <vector>24#include <string>25#include <utils/common/UtilExceptions.h>262728// ===========================================================================29// class definitions30// ===========================================================================31/**32* @class LineHandler33* @brief Interface definition for a class which retrieves lines from a LineHandler34*35* The LineHandler is an interface for a class which retrieves information36* from a file linewise. The lines are suppoted to this class using the37* "report"-method. The LineHandler is used together with the LineReader38* which reads the lines from a file.39* @see LineReader40*/41class LineHandler {42public:43/// @brief constructor44LineHandler() { }454647/// @brief (virtual) destructor48virtual ~LineHandler() { }495051/** @brief Method that obatins a line read by the LineReader52*53* Real interface method, used by a LineReader, which retrieves lines from a file54*55* @param[in] result The read line56* @return Whether the caller shall continue with reading57*/58virtual bool report(const std::string& result) = 0;5960};616263