Changeset 233 in tmcsimulator for branches/FEPSimulator/HighwaysParser.h


Ignore:
Timestamp:
11/13/2017 06:07:07 PM (8 years ago)
Author:
jtorres
Message:

FEPSim: finalized comments, added to both header and source files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FEPSimulator/HighwaysParser.h

    r209 r233  
    11/*  
    22 * 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 
    610 */ 
    711 
     
    1822class HighwaysParser { 
    1923public: 
     24    /** 
     25     * Constructor. Takes in the character buffer to be parsed. 
     26     *  
     27     * @param highwaysData buffer 
     28     */ 
    2029    HighwaysParser(char * highwaysData); 
     30    /** 
     31     * Parses the buffer into FEP_LINE and STATION vectors. 
     32     *  
     33     * @param highwaysData buffer 
     34     */ 
    2135    void parseLines(char * highwaysData); 
     36    // The public lines member, containing the parsed vector of FEP_LINES 
    2237    vector<FEP_LINE*> lines; 
     38    // The public stations member, containing the parsed vector of STATIONS 
    2339    vector<STATION*> stations; 
     40    // Frees all allocated memory in the class 
    2441    virtual ~HighwaysParser(); 
    2542private: 
Note: See TracChangeset for help on using the changeset viewer.