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-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 /****************************************************************************/
15 // An XML-Handler for Amitran OD matrices
16 /****************************************************************************/
17 #ifndef ODAmitranHandler_h
18 #define ODAmitranHandler_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <string>
27 #include <utility>
29 
30 
31 // ===========================================================================
32 // class declarations
33 // ===========================================================================
34 class ODMatrix;
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
47 public:
54  ODAmitranHandler(ODMatrix& matrix, const std::string& file);
55 
56 
59 
60 
61 protected:
63 
64 
75  void myStartElement(int element,
76  const SUMOSAXAttributes& attrs);
78 
79 
80 private:
83 
84  std::string myVehicleType;
85 
88 private:
91 
94 
95 
96 };
97 
98 
99 #endif
100 
101 /****************************************************************************/
~ODAmitranHandler()
Destructor.
long long int SUMOTime
Definition: SUMOTime.h:36
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called when an opening-tag occurs.
SAX-handler base for SUMO-files.
ODAmitranHandler(ODMatrix &matrix, const std::string &file)
Constructor.
ODMatrix & myMatrix
The matrix to add demand to.
Encapsulated SAX-Attributes.
An O/D (origin/destination) matrix.
Definition: ODMatrix.h:69
std::string myVehicleType
An XML-Handler for districts.
ODAmitranHandler & operator=(const ODAmitranHandler &s)
invalidated assignment operator