nfd::face::FaceSystem Class Reference

Entry point of NFD's face system. More...

#include <daemon/face/face-system.hpp>

+ Inheritance diagram for nfd::face::FaceSystem:
+ Collaboration diagram for nfd::face::FaceSystem:

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 ()
 
FaceTablegetFaceTable ()
 
ProtocolFactorygetFactoryById (const std::string &id) const
 
ProtocolFactorygetFactoryByScheme (const std::string &scheme) const
 
bool hasFactoryForScheme (const std::string &scheme) const
 
std::set< const ProtocolFactory * > listProtocolFactories () const
 Returns all ProtocolFactory objects owned by the face system. More...
 
void setConfigFile (ConfigFile &configFile)
 Register handler for the face_system section of NFD's configuration file. More...
 

Detailed Description

Entry point of NFD's face system.

NFD's face system is organized as a FaceSystem-ProtocolFactory-Channel-Face hierarchy. The FaceSystem class is the entry point of the face system and owns all ProtocolFactory objects.

Definition at line 54 of file face-system.hpp.

Constructor & Destructor Documentation

◆ FaceSystem()

nfd::face::FaceSystem::FaceSystem ( FaceTable faceTable,
shared_ptr< ndn::net::NetworkMonitor >  netmon 
)

Definition at line 40 of file face-system.cpp.

◆ ~FaceSystem()

nfd::face::FaceSystem::~FaceSystem ( )
default

Member Function Documentation

◆ getFaceTable()

FaceTable& nfd::face::FaceSystem::getFaceTable ( )
inline

Definition at line 83 of file face-system.hpp.

◆ getFactoryById()

ProtocolFactory * nfd::face::FaceSystem::getFactoryById ( const std::string &  id) const
Returns
ProtocolFactory for the specified registered factory id or nullptr if not found.

Definition at line 73 of file face-system.cpp.

◆ getFactoryByScheme()

ProtocolFactory * nfd::face::FaceSystem::getFactoryByScheme ( const std::string &  scheme) const
Returns
ProtocolFactory for the specified FaceUri scheme or nullptr if not found.

Definition at line 80 of file face-system.cpp.

◆ hasFactoryForScheme()

bool nfd::face::FaceSystem::hasFactoryForScheme ( const std::string &  scheme) const

Definition at line 87 of file face-system.cpp.

◆ listProtocolFactories()

std::set< const ProtocolFactory * > nfd::face::FaceSystem::listProtocolFactories ( ) const

Returns all ProtocolFactory objects owned by the face system.

Definition at line 63 of file face-system.cpp.

◆ setConfigFile()

void nfd::face::FaceSystem::setConfigFile ( ConfigFile configFile)

Register handler for the face_system section of NFD's configuration file.

Definition at line 93 of file face-system.cpp.