| 15 |
|
int main(int argc, char* argv[]){ |
| 16 |
|
gengetopt_args_info args_info; |
| 17 |
|
string dumpFileName; |
| 18 |
< |
string bassFileName; |
| 18 |
> |
string mdFileName; |
| 19 |
|
char inFileName[2002]; |
| 20 |
|
string xyzFileName; |
| 21 |
|
SimInfo* info; |
| 47 |
|
exit(1) ; |
| 48 |
|
|
| 49 |
|
|
| 50 |
< |
//get the dumpfile name and bass file name |
| 50 |
> |
//get the dumpfile name and meta-data file name |
| 51 |
|
if (args_info.input_given){ |
| 52 |
|
dumpFileName = args_info.input_arg; |
| 53 |
|
} |
| 55 |
|
cerr << "Does not have input file name" << endl; |
| 56 |
|
exit(1); |
| 57 |
|
} |
| 58 |
< |
bassFileName = dumpFileName; |
| 59 |
< |
bassFileName = bassFileName.substr(0, bassFileName.rfind(".")) + ".bass"; |
| 58 |
> |
mdFileName = dumpFileName; |
| 59 |
> |
mdFileName = mdFileName.substr(0, mdFileName.rfind(".")) + ".md"; |
| 60 |
|
|
| 61 |
|
if (args_info.output_given){ |
| 62 |
|
xyzFileName = args_info.output_arg; |
| 66 |
|
xyzFileName = xyzFileName.substr(0, xyzFileName.rfind(".")) + ".xyz"; |
| 67 |
|
} |
| 68 |
|
|
| 69 |
< |
//parse bass file and set up the system |
| 69 |
> |
//parse md file and set up the system |
| 70 |
|
info = new SimInfo(); |
| 71 |
|
startMe.setSimInfo(info ); |
| 72 |
|
|
| 73 |
< |
strcpy(inFileName, bassFileName.c_str() ); |
| 73 |
> |
strcpy(inFileName, mdFileName.c_str() ); |
| 74 |
|
startMe.parseFile( inFileName ); |
| 75 |
|
|
| 76 |
|
startMe.createSim(); |