[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-devel] [task #14300] gnuastro.conf for common option, better .
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-devel] [task #14300] gnuastro.conf for common option, better .conf file/option management |
Date: |
Wed, 4 Jan 2017 15:38:59 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 |
Follow-up Comment #1, task #14300 (project gnuastro):
Building further on the suggested process, we can tell the library function
how to interpret the values (for example keep the string value, or convert it
to integer, or float) to the options with the `type' element of `gal_data_t'
and define bit flags in its `status' element for further checks like a
requirement that the value be larger than zero, or should be less than 1.
Another bit-flag can be added to let the configuration file parser know that
the option shouldn't be popped from the input linked list. This can be used
for options that can accept multiple occurances when multiple occurances, like
the as in column indexs/labels in the Table program.
The final value to the option can also be stored in the `array' element of
`gal_data_t', and when multiple occurances of an option are acceptable, we can
increase the array size and put more elements into it as they are read.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/task/?14300>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/