primaryodors / primarydock

PrimaryOdors.org molecular docker.
Other
6 stars 4 forks source link

Read all constants from a configuration file. #416

Open primaryodors opened 9 months ago

primaryodors commented 9 months ago

Replace src/classes/constants.h with a module that reads a text file for the values for all the symbols.

The existing symbols would all become global variables, initialized to zero or null. A module would look for a text file with a name like (perhaps) primarydock.conf in the project root folder. This file would also be supplied in the PR. If the file is not found, exit with an error. Otherwise, the values would be read in from that file and the variables would be populated by it.