NSCL DDAS
1.0
Support for XIA DDAS at the NSCL
|
#include <XMLSettingsReader.h>
Public Member Functions | |
XMLSettingsReader (const char *filename) | |
virtual | ~XMLSettingsReader () |
virtual DDAS::ModuleSettings | get () |
This class is a settings reader that can read XML Setings files. Two types of settings files can be read:
For the structure of module files see XMLSettingsWriter.h and its description of the XMLSettingsWriter class. The structure of Crate definition files is pretty simple:
<Crate> <Module id="n' fileref="path-to-module-file" /> ... </Crate>
That is for each module, in the crate, there's a module tag that specifies the module id (numbered from 0) and a reference to the XML module file that configures that module.
DDAS::XMLSettingsReader::XMLSettingsReader | ( | const char * | file | ) |
constructor Save the module file for later.
filename | - name of the XML file to process. |
|
virtual |
destructor Just kill off the documents in m_modules
|
virtual |
get Return the module settings for all of the documents stored. The first element of the pair in m_modules will be substituted into the s_modId field overriding the value in the XML.
Implements DDAS::SettingsReader.