ifw-daq  2.1.0-pre1
IFW Data Acquisition modules
Classes | Namespaces | Enumerations | Functions
manager.hpp File Reference

daq::config::Manager and associated types. More...

#include <iosfwd>
#include <string>
#include <unordered_map>
#include <fmt/format.h>
#include <log4cplus/logger.h>
#include <log4cplus/loggingmacros.h>

Go to the source code of this file.

Classes

struct  daq::config::OriginInfo
 Mutable metadata about a configuration attribute that describes where a value comes from. More...
 
class  daq::config::Manager< C >
 Maintains the associativity of configuration attributes with metadata and value origin/priority. More...
 
struct  daq::config::Manager< C >::CurrentValue< AttrType >
 Describes current value. More...
 

Namespaces

 daq
 
 daq::config
 

Enumerations

enum  daq::config::Origin {
  daq::config::Origin::Runtime = 0, daq::config::Origin::CommandLine, daq::config::Origin::Configuration, daq::config::Origin::EnvironmentVariable,
  daq::config::Origin::Default
}
 Configuration origins in descending priority. More...
 

Functions

std::ostream & daq::config::operator<< (std::ostream &os, Origin origin)
 Format Origin. More...
 
std::ostream & daq::config::operator<< (std::ostream &os, OriginInfo const &info)
 Format OriginInfo. More...
 

Detailed Description

daq::config::Manager and associated types.

Definition in file manager.hpp.


Class Documentation

◆ daq::config::Metadata

struct daq::config::Metadata

Immutable information about a configuration attribute.

Definition at line 64 of file manager.hpp.

Class Members
string canonical_name
string description

◆ daq::config::OriginInfo

struct daq::config::OriginInfo

Mutable metadata about a configuration attribute that describes where a value comes from.

Definition at line 72 of file manager.hpp.

Class Members
string description May include additional information like which configuration file was used.
Origin origin

◆ daq::config::Manager::CurrentValue

struct daq::config::Manager::CurrentValue

template<class C>
template<class AttrType>
struct daq::config::Manager< C >::CurrentValue< AttrType >

Describes current value.

Definition at line 144 of file manager.hpp.

Class Members
Metadata const & metadata
OriginInfo const & origin
AttrType const & value