Skip to content

Commit 6f767e2

Browse files
committed
added config name for consumer
1 parent 578e2ef commit 6f767e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Consumer.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
Consumer::Consumer(ConfigFile& cfg, std::string cfgEntryPoint)
1616
{
17+
// by default, name the equipment as the config node entry point
18+
// configuration parameter: | consumer-* | name | string| | Name used to identify this consumer (in logs). By default, it takes the name of the configuration section, consumer-xxx |
19+
cfg.getOptionalValue<std::string>(cfgEntryPoint + ".name", name, cfgEntryPoint);
20+
1721
// configuration parameter: | consumer-* | filterLinksInclude | string | | Defines a filter based on link ids. Only data belonging to the links in this list (coma separated values) are accepted. If empty, all link ids are fine. |
1822
std::string cfgFilterLinksInclude;
1923
cfg.getOptionalValue<std::string>(cfgEntryPoint + ".filterLinksInclude", cfgFilterLinksInclude);

0 commit comments

Comments
 (0)