Line data Source code
1 : #pragma once 2 : 3 : #include <list> 4 : 5 : #include "data/SUMO/Network.hpp" 6 : 7 : namespace SUMO { 8 119 : struct TAZ { 9 : typedef std::string ID; 10 : typedef double Weight; 11 : 12 3258 : struct Source { 13 : SUMO::Network::Edge::ID id; 14 : 15 : Weight weight; 16 : }; 17 3258 : struct Sink { 18 : SUMO::Network::Edge::ID id; 19 : 20 : Weight weight; 21 : }; 22 : 23 : ID id; 24 : 25 : std::list<Source> sources; 26 : std::list<Sink> sinks; 27 : 28 : static std::unordered_map<TAZ::ID, TAZ> loadFromFile(const std::string &path); 29 : }; 30 : 31 : typedef std::unordered_map<TAZ::ID, TAZ> TAZs; 32 : } // namespace SUMO