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-2018 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 /****************************************************************************/
16 // Interface definition for a class which retrieves lines from a LineHandler
17 /****************************************************************************/
18 #ifndef LineHandler_h
19 #define LineHandler_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <vector>
28 #include <string>
30 
31 
32 // ===========================================================================
33 // class definitions
34 // ===========================================================================
45 class LineHandler {
46 public:
49 
50 
52  virtual ~LineHandler() { }
53 
54 
62  virtual bool report(const std::string& result) = 0;
63 
64 };
65 
66 
67 #endif
68 
69 /****************************************************************************/
70 
virtual bool report(const std::string &result)=0
Method that obatins a line read by the LineReader.
Interface definition for a class which retrieves lines from a LineHandler.
Definition: LineHandler.h:45
LineHandler()
constructor
Definition: LineHandler.h:48
virtual ~LineHandler()
(virtual) destructor
Definition: LineHandler.h:52