Transit Planner  1.0
An experiment on transfer patterns robustness
src/GtfsParser_impl.h
00001 // Copyright 2012: Eugen Sawin, Philip Stahl, Jonas Sternisko
00002 #ifndef SRC_GTFSPARSER_IMPL_H_
00003 #define SRC_GTFSPARSER_IMPL_H_
00004 
00005 #include "./GtfsParser.h"
00006 #include <map>
00007 #include <string>
00008 #include <vector>
00009 
00010 // A datatype for a transportation frequency.
00011 struct GtfsParser::Frequency {
00012   Frequency() : start(-1), finish(-1), frequency(-1) {}
00013   Frequency(int start, int finish, int frequency)
00014   : start(start), finish(finish), frequency(frequency) {}
00015   // starting time in seconds from 0:00:00
00016   int start;
00017   // finish time in seconds from 0:00:00
00018   int finish;
00019   // the frequency in seconds
00020   int frequency;
00021 };
00022 
00023 // GtfsParser's internal stored data.
00024 struct GtfsParser::Data {
00025   ActivityMap  lastServiceActivity;
00026   map<string, string> lastTrip2Service;
00027   FrequencyMap lastFrequencies;
00028   vector<Trip> lastGtfsTrips;
00029 };
00030 
00031 #endif  // SRC_GTFSPARSER_IMPL_H_
 All Classes