Changeset 233 in tmcsimulator for branches/FEPSimulator/Main.cpp


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/Main.cpp

    r100 r233  
    1 /*  
    2  * File:   Main.cpp 
    3  * Author: John A. Torres 
    4  * 
    5  * Created on October 7, 2017, 4:27 PM 
     1/** 
     2 * File: Main.cpp 
     3 *  
     4 * Main driver for FEP Simulator. Creates an FEPSimulator that reads Highway 
     5 * Status from the ATMS Driver over a socket. Runs persistently. 
     6 *  
     7 * @author John A. Torres 
    68 */ 
    79 
     
    1113using namespace std; 
    1214 
    13 /** 
    14  * Main driver for FEP Simulator. Creates a socket server that reads Highway 
    15  * Status from the ATMS Driver over the socket, in XML form. Runs persistently. 
    16  *  
    17  * @param argc argument count 
    18  * @param argv args 
    19  * @return  
    20  */ 
    2115int main(int argc, char *argv[]) { 
     16    // if argument count is not correct, display usage message 
    2217    if(argc != 5) 
    2318    { 
     
    2621        exit(1); 
    2722    } 
     23    // get the FEP Sim command line arguments 
    2824    char *FEPSimHost = argv[1]; 
    2925    int fep_prog = atoi(argv[2]); 
     
    3127    int portno = atoi(argv[4]); 
    3228 
     29    // run the FEPSim 
    3330    cout << "Running FEP Simulator..." << endl; 
    34      
    3531    FEPSim fep = FEPSim(FEPSimHost, fep_prog, fep_rev, portno); 
    3632    fep.runSockServer(); 
Note: See TracChangeset for help on using the changeset viewer.