ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
Public Member Functions | List of all members
daq::dpm::ConfigManager Class Reference

DPM Server specific configuration manager. More...

#include <configManager.hpp>

Public Member Functions

 ConfigManager (log4cplus::Logger logger)
 
Configuration const & GetConfig () const
 
bool ParseArguments (int argc, char *argv[])
 Parse configuration from command line arguments. More...
 
void LoadConfig ()
 Load configuration file and update configuration. More...
 
template<class Func >
void Visit (Func &&func)
 Visit all configuration parameters. More...
 

Detailed Description

DPM Server specific configuration manager.

Main responsibilities:

Definition at line 28 of file configManager.hpp.

Constructor & Destructor Documentation

◆ ConfigManager()

daq::dpm::ConfigManager::ConfigManager ( log4cplus::Logger  logger)

Definition at line 26 of file configManager.cpp.

Member Function Documentation

◆ GetConfig()

Configuration const& daq::dpm::ConfigManager::GetConfig ( ) const
inline

Definition at line 32 of file configManager.hpp.

◆ LoadConfig()

void daq::dpm::ConfigManager::LoadConfig ( )

Load configuration file and update configuration.

Definition at line 162 of file configManager.cpp.

◆ ParseArguments()

bool daq::dpm::ConfigManager::ParseArguments ( int  argc,
char *  argv[] 
)

Parse configuration from command line arguments.

Parameters
[in]argcNumber of command line options.
[in]argvPointer to the array of command line options.
Returns
false if the help option has been invoked, true otherwise.

Definition at line 59 of file configManager.cpp.

◆ Visit()

template<class Func >
void daq::dpm::ConfigManager::Visit ( Func &&  func)
inline

Visit all configuration parameters.

Definition at line 52 of file configManager.hpp.


The documentation for this class was generated from the following files: