handles 'tables' config section More...
#include <tables-config-section.hpp>
Public Member Functions | |
TablesConfigSection (Forwarder &forwarder) | |
void | setConfigFile (ConfigFile &configFile) |
void | ensureConfigured () |
apply default configuration, if tables section was omitted in configuration file More... | |
handles 'tables' config section
This class recognizes a config section that looks like
During a configuration reload,
It's necessary to call ensureConfigured()
after initial configuration and configuration reload, so that the correct defaults are applied in case tables section is omitted.
Definition at line 70 of file tables-config-section.hpp.
|
explicit |
Definition at line 33 of file tables-config-section.cpp.
void nfd::TablesConfigSection::setConfigFile | ( | ConfigFile & | configFile | ) |
Definition at line 40 of file tables-config-section.cpp.
References nfd::ConfigFile::addSectionHandler().
Referenced by nfd::ignoreRibAndLogSections(), nfd::Nfd::reloadConfigFile(), and ns3::ndn::L3Protocol::setCsReplacementPolicy().
void nfd::TablesConfigSection::ensureConfigured | ( | ) |
apply default configuration, if tables section was omitted in configuration file
Definition at line 48 of file tables-config-section.cpp.
References nfd::cs::Policy::create(), nfd::fw::UnsolicitedDataPolicy::create(), nfd::DEFAULT_CS_MAX_PACKETS, nfd::Forwarder::getCs(), nfd::Forwarder::getNetworkRegionTable(), nfd::Forwarder::getStrategyChoice(), nfd::strategy_choice::StrategyChoice::insert(), nonstd::optional_lite::std11::move(), ns3::ndn::Name, NDN_THROW, nfd::cs::Cs::setLimit(), nfd::cs::Cs::setPolicy(), nfd::Forwarder::setUnsolicitedDataPolicy(), nfd::cs::Cs::size(), nfd::fw::Strategy, and ndn::Name::toUri().
Referenced by nfd::ignoreRibAndLogSections(), and ns3::ndn::L3Protocol::setCsReplacementPolicy().