5.2.13 Configuration Class
The Configuration class' main role is to provide an interface to get the needed configuration data. It contains all the needed data structures to parse and save the system configuration (the configuration file and the command line options) and reflects the system configuration to the other classes.
The Configuration
class attributes are described in Table 17.
Table 17. Configuration Class Attributes
|
|
|
|
|
|
m_userChannels
|
private
|
unsigned int
|
Indicates the number of channels that the demo will work with.
|
|
m_chanInfo
|
private
|
ChannelInfoQueue
|
Queue that contains all the channel information read from the configuration file, such as Tx coder information, the print to log file flag, and the phone number to call.
|
|
m_boardInfo
|
private
|
BoardInfoQueue
|
Queue that contains all the board information read from the configuration file.
|
|
m_cfgFile
|
private
|
char*
|
The configuration file name
|
|
m_alarmQoSFile
|
private
|
FILE*
|
Points to the QoS file
|
|
m_QoSFile
|
private
|
char*
|
The name of the QoS log file
|
|
m_logLevel
|
private
|
E_LogLevel
|
The log level from the command line
|
|
m_stage
|
private
|
unsigned char
|
The stage of parsing the configuration file
|
|
m_line
|
private
|
int
|
The line in the configuration file currently being parsed
|
|
m_firstSession
|
private
|
long
|
Used to fill the channel information from the configuration file
|
|
m_lastSession
|
private
|
long
|
Used to fill the channel information from the configuration file
|