Eclipse SUMO - Simulation of Urban MObility
LineHandler.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // Interface definition for a class which retrieves lines from a LineHandler
16 /****************************************************************************/
17 #ifndef LineHandler_h
18 #define LineHandler_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <vector>
27 #include <string>
29 
30 
31 // ===========================================================================
32 // class definitions
33 // ===========================================================================
44 class LineHandler {
45 public:
48 
49 
51  virtual ~LineHandler() { }
52 
53 
61  virtual bool report(const std::string& result) = 0;
62 
63 };
64 
65 
66 #endif
67 
68 /****************************************************************************/
69 
LineHandler::~LineHandler
virtual ~LineHandler()
(virtual) destructor
Definition: LineHandler.h:51
LineHandler::report
virtual bool report(const std::string &result)=0
Method that obatins a line read by the LineReader.
LineHandler
Interface definition for a class which retrieves lines from a LineHandler.
Definition: LineHandler.h:44
UtilExceptions.h
LineHandler::LineHandler
LineHandler()
constructor
Definition: LineHandler.h:47
config.h