Changeset 233 in tmcsimulator for branches/FEPSimulator/Main.cpp
- Timestamp:
- 11/13/2017 06:07:07 PM (8 years ago)
- File:
-
- 1 edited
-
branches/FEPSimulator/Main.cpp (modified) (4 diffs)
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 6 8 */ 7 9 … … 11 13 using namespace std; 12 14 13 /**14 * Main driver for FEP Simulator. Creates a socket server that reads Highway15 * Status from the ATMS Driver over the socket, in XML form. Runs persistently.16 *17 * @param argc argument count18 * @param argv args19 * @return20 */21 15 int main(int argc, char *argv[]) { 16 // if argument count is not correct, display usage message 22 17 if(argc != 5) 23 18 { … … 26 21 exit(1); 27 22 } 23 // get the FEP Sim command line arguments 28 24 char *FEPSimHost = argv[1]; 29 25 int fep_prog = atoi(argv[2]); … … 31 27 int portno = atoi(argv[4]); 32 28 29 // run the FEPSim 33 30 cout << "Running FEP Simulator..." << endl; 34 35 31 FEPSim fep = FEPSim(FEPSimHost, fep_prog, fep_rev, portno); 36 32 fep.runSockServer();
Note: See TracChangeset
for help on using the changeset viewer.
