I am working on a scientific program. For better usability I want to make it quite flexible when it comes to user appliable "filters", cut off values and so on. All user defined commands are passed via the command line.
My problem are the filters. Lots of independent data sets will be processed and the results of each set will only be written to the output file if the (choosen) value (int or double) is "<, <=, ==, >= or > than x" (customizable via command line). So, do I really have to program a big "if ... else if ..." thingy or is there a more elegant, flexible way? Perhaps something similar to function pointers?
Before I forget it: More than one filter can be applied to the results of a data set!
Thank you for your help.