MarlinMT  0.1.0
marlinmt::ConfigReader Class Referenceabstract

ConfigReader base class Interface for reading configuration. More...

#include <Configuration.h>

Inherited by marlinmt::XMLConfigReader.

Public Member Functions

virtual ~ConfigReader ()=default
 Default destructor. More...
 
virtual void init (const std::string &desc)=0
 Initialize the parser. More...
 
virtual void read (Configuration &cfg)=0
 Read the configuration and populate the configuration object. More...
 

Detailed Description

ConfigReader base class Interface for reading configuration.

Definition at line 328 of file Configuration.h.

Constructor & Destructor Documentation

◆ ~ConfigReader()

virtual marlinmt::ConfigReader::~ConfigReader ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ init()

virtual void marlinmt::ConfigReader::init ( const std::string &  desc)
pure virtual

Initialize the parser.

The descriptor string can be e.g:

  • file name
  • database description
Parameters
desca descriptor string

Implemented in marlinmt::XMLConfigReader.

◆ read()

virtual void marlinmt::ConfigReader::read ( Configuration cfg)
pure virtual

Read the configuration and populate the configuration object.

Parameters
cfgthe configuration object to populate

Implemented in marlinmt::XMLConfigReader.


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