Changeset 233 in tmcsimulator for branches/FEPSimulator/HighwaysParser.h
- Timestamp:
- 11/13/2017 06:07:07 PM (8 years ago)
- File:
-
- 1 edited
-
branches/FEPSimulator/HighwaysParser.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/FEPSimulator/HighwaysParser.h
r209 r233 1 1 /* 2 2 * File: HighwaysParser.h 3 * Author: jtorres 4 * 5 * Created on October 28, 2017, 7:23 PM 3 * 4 * The HighwaysParser class takes in a character buffer and parses it into a 5 * vector of FEP_LINEs and a vector of STATIONS. The buffer is sent in via the 6 * constructor and the FEP_LINE and STATION vectors are accessible via public 7 * members. 8 * 9 * @author John A. Torres 6 10 */ 7 11 … … 18 22 class HighwaysParser { 19 23 public: 24 /** 25 * Constructor. Takes in the character buffer to be parsed. 26 * 27 * @param highwaysData buffer 28 */ 20 29 HighwaysParser(char * highwaysData); 30 /** 31 * Parses the buffer into FEP_LINE and STATION vectors. 32 * 33 * @param highwaysData buffer 34 */ 21 35 void parseLines(char * highwaysData); 36 // The public lines member, containing the parsed vector of FEP_LINES 22 37 vector<FEP_LINE*> lines; 38 // The public stations member, containing the parsed vector of STATIONS 23 39 vector<STATION*> stations; 40 // Frees all allocated memory in the class 24 41 virtual ~HighwaysParser(); 25 42 private:
Note: See TracChangeset
for help on using the changeset viewer.
