MFConfig.cc
Go to the documentation of this file.
2 // vim: set sw=2 expandtab :
3 
5 
6 #include <string>
7 
8 using namespace std;
9 
10 namespace mf {
11 
13  : debugModules{fhicl::Name{"debugModules"},
15  "The 'debugModules' parameter is a sequence of strings.\n"
16  "Ignored. Accepted for backwards-compatibility only."s},
18  , suppressDebug{fhicl::Name{"suppressDebug"},
20  "The 'suppressDebug' parameter is a sequence of "
21  "strings.\n"
22  "Ignored. Accepted for backwards-compatibility only."s},
24  , suppressInfo{fhicl::Name{"suppressInfo"},
26  "The 'suppressInfo' parameter is a sequence of strings.\n"
27  "Ignored. Accepted for backwards-compatibility only."s},
29  , suppressWarning{fhicl::Name{"suppressWarning"},
31  "The 'suppressWarning' parameter is a sequence of "
32  "strings.\n"
33  "Ignored. Accepted for backwards-compatibility only."s},
35  , destinations{}
36  {}
37 
39  : destinations{
40  fhicl::Name{"destinations"},
42  R"(The 'destinations' parameter represents a FHiCL table of named
43 destinations, each of which are configured to specify how messages
44 are logged to a given target. It has the general form of:
45 
46  destinations: {
47  // Ordinary destinations
48  dest1 : {...}
49  dest2 : {...}
50  ...
51  statistics: { // optional
52  // Statistics destinations
53  stat1: {...}
54  ...
55  }
56  }
57 
58 For a listing of allowed ordinary destinations, type:
59 
60  art --print-available mfPlugin
61 
62 The allowed configuration for a given destination type can be printed
63 by specifying:
64 
65  art --print-description mfPlugin:<destination type>
66 
67 It is permitted to specify an ordinary destination called
68 'statistics'. The 'statistics' destination is a FHiCL table that has
69 named statistics destinations, which can be used to encapsulate the
70 configuration related to statistics-tracking of messages logged to a
71 each ordinary destination. To print out the allowed statistics
72 destinations and the allowed configuration corresponding to a given
73 statistics destination, replace the 'mfPlugin' specification with
74 'mfStatsPlugin'.
75 
76 If a value for 'destinations' is not supplied, one will be provided for you.)"}}
77  {}
78 
79 } // namespace mf
fhicl::Sequence< std::string > suppressDebug
Definition: MFConfig.h:36
fhicl::TableFragment< MFDestinationConfig::Config > destinations
Definition: MFConfig.h:41
fhicl::Sequence< std::string > suppressWarning
Definition: MFConfig.h:40
STL namespace.
typename config_impl< T >::type Config
Definition: ModuleMacros.h:52
fhicl::Sequence< std::string > suppressInfo
Definition: MFConfig.h:38
static QCString * s
Definition: config.cpp:1042