lucabaldini / xpedaq

Data acquisition software for the X-ray polarimetry explorers
GNU General Public License v2.0
0 stars 0 forks source link

Create a generic configuration facility? #143

Open lucabaldini opened 7 years ago

lucabaldini commented 7 years ago

xpedaq started off with two single, monolithic configuration files---one for the detector configuration and one for the user preferences. It is now clear that different applications need different configuration file and we need a more flexible facility, e.g:

One possibility would be to have a base class with an underlying std::map or two underlying std::vectors---one for the names and one for the values. The fact that the values can have multiple types might be a slight issue. Need to think about this.

lucabaldini commented 7 years ago

Another option is follow the pMonitorPreference example and make all the class members public---at least we avoid tons of lines of code to access and set them.