lucabaldini / xpedaq

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

Think about how we handle different sets of configurations/preferences for different applications #76

Closed lucabaldini closed 8 years ago

lucabaldini commented 8 years ago

e.g., should xpedaq and xpepeds have the same detector configuration file? And the same user preferences file? And if not, where should they be located?

Note we really need to move rundId.cfg and stationId.cfg in a common area, see issue #69

lucabaldini commented 8 years ago

Ok, I modified the pRunController constructor to pass the path to the files containing the detector configuration and the user preferences, so that each application can have its default (and we can override this via command-line switches).

I also modified the pAcquisitionWindow base class so that the underlying pRunController object is created outside and passed by reference to make it easier to configure the run control via command line.

Note that this implies that all the applications use an identical format for the configuration files. If we want to break this assumption, we'll need some additional work, but for the time being I'm closing this one.