Eclipse SUMO - Simulation of Urban MObility
ODAmitranHandler.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2014-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 /****************************************************************************/
14 // An XML-Handler for Amitran OD matrices
15 /****************************************************************************/
16 #ifndef ODAmitranHandler_h
17 #define ODAmitranHandler_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include <string>
26 #include <utility>
28 
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class ODMatrix;
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
46 public:
53  ODAmitranHandler(ODMatrix& matrix, const std::string& file);
54 
55 
58 
59 
60 protected:
62 
63 
74  void myStartElement(int element,
75  const SUMOSAXAttributes& attrs);
77 
78 
79 private:
82 
83  std::string myVehicleType;
84 
87 private:
90 
93 
94 
95 };
96 
97 
98 #endif
99 
100 /****************************************************************************/
ODAmitranHandler::ODAmitranHandler
ODAmitranHandler(ODMatrix &matrix, const std::string &file)
Constructor.
Definition: ODAmitranHandler.cpp:31
SUMOSAXHandler
SAX-handler base for SUMO-files.
Definition: SUMOSAXHandler.h:41
SUMOSAXHandler.h
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
ODAmitranHandler::~ODAmitranHandler
~ODAmitranHandler()
Destructor.
Definition: ODAmitranHandler.cpp:35
ODAmitranHandler::myEnd
SUMOTime myEnd
Definition: ODAmitranHandler.h:86
ODAmitranHandler::myBegin
SUMOTime myBegin
Definition: ODAmitranHandler.h:85
ODMatrix
An O/D (origin/destination) matrix.
Definition: ODMatrix.h:69
ODAmitranHandler::myStartElement
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called when an opening-tag occurs.
Definition: ODAmitranHandler.cpp:39
ODAmitranHandler
An XML-Handler for districts.
Definition: ODAmitranHandler.h:45
ODAmitranHandler::ODAmitranHandler
ODAmitranHandler(const ODAmitranHandler &s)
invalidated copy constructor
ODAmitranHandler::operator=
ODAmitranHandler & operator=(const ODAmitranHandler &s)
invalidated assignment operator
config.h
ODAmitranHandler::myMatrix
ODMatrix & myMatrix
The matrix to add demand to.
Definition: ODAmitranHandler.h:81
ODAmitranHandler::myVehicleType
std::string myVehicleType
Definition: ODAmitranHandler.h:83
SUMOSAXAttributes
Encapsulated SAX-Attributes.
Definition: SUMOSAXAttributes.h:56