mardi 4 août 2015

Are there ready-to-use solutions (libraries, headers) or standard pattern/workflow for reading (a lot) input parameters? [on hold]

Heyho,

my situation

I have a quite big scientific c-program that needs a lot of input parameters reading out of a file. I have a "handmade" working version from the ones, working on the program before. But you have to keep a special order of the parameters, the formatted input file is kind of unhandy, adding of parameters is complicated and it is kind of error sensitive.

my ideas so far

If been looking for a while in different c introduction books and also in some advanced techniques guides, but nobody seems to write something about these kind of tasks.

The only thing, I could find, was the idea to use an external program that creates out of handy interface the sorted, unhandy to use directly input file I'm now using. But that takes more time and for adding/sorting/deleting parameters I have to change the program code and the input file generator.

my question

What kind of input handling strategy are there? Are there special coding techniques? Or a common workflow?

Please ask, if I have to specify things. I'm not use to common names and notations, sorry for that. Please correct me referring to this.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire