68 |
|
|
69 |
|
gengetopt_args_info args_info; |
70 |
|
std::string dumpFileName; |
71 |
– |
std::string mdFileName; |
71 |
|
std::string xyzFileName; |
72 |
|
|
73 |
|
//parse the command line option |
83 |
|
exit(1); |
84 |
|
} |
85 |
|
|
87 |
– |
mdFileName = dumpFileName; |
88 |
– |
mdFileName = mdFileName.substr(0, mdFileName.rfind(".")) + ".md"; |
89 |
– |
|
86 |
|
if (args_info.output_given){ |
87 |
|
xyzFileName = args_info.output_arg; |
88 |
|
} else { |
92 |
|
|
93 |
|
//parse md file and set up the system |
94 |
|
SimCreator creator; |
95 |
< |
SimInfo* info = creator.createSim(mdFileName, false); |
95 |
> |
SimInfo* info = creator.createSim(dumpFileName, false); |
96 |
|
|
97 |
< |
|
102 |
< |
|
97 |
> |
|
98 |
|
//create visitor list |
99 |
|
CompositeVisitor* compositeVisitor = new CompositeVisitor(); |
100 |
|
|