| Line | |
|---|
| 1 | /* |
|---|
| 2 | * File: HighwaysParser.h |
|---|
| 3 | * Author: jtorres |
|---|
| 4 | * |
|---|
| 5 | * Created on October 28, 2017, 7:23 PM |
|---|
| 6 | */ |
|---|
| 7 | |
|---|
| 8 | #ifndef HIGHWAYSPARSER_H |
|---|
| 9 | #define HIGHWAYSPARSER_H |
|---|
| 10 | |
|---|
| 11 | #include "network.h" |
|---|
| 12 | #include <vector> |
|---|
| 13 | #include <iostream> |
|---|
| 14 | #include <sstream> |
|---|
| 15 | |
|---|
| 16 | class HighwaysParser { |
|---|
| 17 | public: |
|---|
| 18 | HighwaysParser(char * highwaysData); |
|---|
| 19 | |
|---|
| 20 | vector<FEP_LINE*> getLines(); |
|---|
| 21 | vector<STATION*> getStations(); |
|---|
| 22 | |
|---|
| 23 | virtual ~HighwaysParser(); |
|---|
| 24 | private: |
|---|
| 25 | vector<FEP_LINE*> lines; |
|---|
| 26 | vector<STATION*> stations; |
|---|
| 27 | |
|---|
| 28 | FEP_LINE * parseLine(istringstream highwaysData); |
|---|
| 29 | STATION * parseStation(istringstream highwaysData); |
|---|
| 30 | LOOP * parseLoop(istringstream highwaysData); |
|---|
| 31 | void parseLines(istringstream highwaysData); |
|---|
| 32 | }; |
|---|
| 33 | |
|---|
| 34 | #endif /* HIGHWAYSPARSER_H */ |
|---|
| 35 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.