光的轨迹 发表于 2005-6-9 16:57:40

when to use a template file

刚看了referrence里的file parser部分,感觉isight对输入输出文件的读和写有了更深的了解.记得前些时候有人问过关于template的问题,我在这里找到了比较好的解释,现把英文的摘抄在这里:
A template is a sample input file for your analysis or simulation(iSIGHT does not use template to read your proguam's output files).When you use a template,iSIGHT create the input for your program by first copying the template,then using your file parsing commands to edit the copy.

If your analysis or simulation program reads an input file that has a lot of data,but only a few values in the file come from iSIGHT parameters,you should use a template.The template will provide most of the data needed by the program and relatively fewcommands will be needed to put the iSIGHT parameter values into the file.

If nearly all of the values in the input file come from iSIGHT parameters,you will probably find it easier to write the entier file without a template.

If the input file you want to create falls between these two simulations,you need to decide whether it is easier for you to find and replace data in a template,or whether you prefer specifying the File Description commands necessary to write the file in its entirety.

gzleeg 发表于 2005-6-10 09:44:46

页: [1]
查看完整版本: when to use a template file