entry point of the face system More...
#include <face-system.hpp>
Classes | |
class | ConfigContext |
context for processing a config section in ProtocolFactory More... | |
struct | GeneralConfig |
configuration options from "general" section More... | |
Public Member Functions | |
FaceSystem (FaceTable &faceTable, shared_ptr< ndn::net::NetworkMonitor > netmon) | |
~FaceSystem () | |
std::set< const ProtocolFactory * > | listProtocolFactories () const |
ProtocolFactory * | getFactoryById (const std::string &id) |
ProtocolFactory * | getFactoryByScheme (const std::string &scheme) |
bool | hasFactoryForScheme (const std::string &scheme) const |
FaceTable & | getFaceTable () |
void | setConfigFile (ConfigFile &configFile) |
register handler for face_system section of NFD configuration file More... | |
Public Attributes | |
NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE | __pad0__: ProtocolFactoryCtorParams makePFCtorParams() |
entry point of the face system
NFD's face system is organized as a FaceSystem-ProtocolFactory-Channel-Face hierarchy. FaceSystem class is the entry point of NFD's face system and owns ProtocolFactory objects.
Definition at line 51 of file face-system.hpp.
nfd::face::FaceSystem::FaceSystem | ( | FaceTable & | faceTable, |
shared_ptr< ndn::net::NetworkMonitor > | netmon | ||
) |
Definition at line 42 of file face-system.cpp.
References nfd::FaceTable::add(), nfd::face::ProtocolFactory::create(), nfd::face::ProtocolFactory::listRegistered(), nonstd::optional_lite::std11::move(), NFD_LOG_TRACE, and ~FaceSystem().
|
default |
Referenced by FaceSystem().
std::set< const ProtocolFactory * > nfd::face::FaceSystem::listProtocolFactories | ( | ) | const |
Definition at line 65 of file face-system.cpp.
Referenced by nfd::makeFaceStatus().
ProtocolFactory * nfd::face::FaceSystem::getFactoryById | ( | const std::string & | id | ) |
Definition at line 75 of file face-system.cpp.
References websocketpp::http::status_code::found.
ProtocolFactory * nfd::face::FaceSystem::getFactoryByScheme | ( | const std::string & | scheme | ) |
Definition at line 82 of file face-system.cpp.
References websocketpp::http::status_code::found.
Referenced by nfd::FaceManager::FaceManager().
bool nfd::face::FaceSystem::hasFactoryForScheme | ( | const std::string & | scheme | ) | const |
Definition at line 89 of file face-system.cpp.
|
inline |
Definition at line 77 of file face-system.hpp.
References setConfigFile().
void nfd::face::FaceSystem::setConfigFile | ( | ConfigFile & | configFile | ) |
register handler for face_system section of NFD configuration file
Definition at line 95 of file face-system.cpp.
References nfd::ConfigFile::addSectionHandler(), nfd::face::FaceSystem::ConfigContext::generalConfig, nfd::face::ProtocolFactory::getProvidedSchemes(), nfd::face::FaceSystem::ConfigContext::isDryRun, NDN_THROW, NFD_LOG_TRACE, nfd::ConfigFile::parseYesNo(), nfd::face::ProtocolFactory::processConfig(), and nfd::face::FaceSystem::GeneralConfig::wantCongestionMarking.
Referenced by getFaceTable().
NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE nfd::face::FaceSystem::__pad0__ |
Definition at line 105 of file face-system.hpp.