NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::face::FaceSystem Class Reference

entry point of the face system More...

#include <face-system.hpp>

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


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
ProtocolFactorygetFactoryById (const std::string &id)
ProtocolFactorygetFactoryByScheme (const std::string &scheme)
bool hasFactoryForScheme (const std::string &scheme) const
FaceTablegetFaceTable ()
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()

Detailed Description

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.

Constructor & Destructor Documentation

◆ FaceSystem()

◆ ~FaceSystem()

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

Referenced by FaceSystem().

Member Function Documentation

◆ listProtocolFactories()

std::set< const ProtocolFactory * > nfd::face::FaceSystem::listProtocolFactories ( ) const
ProtocolFactory objects owned by the FaceSystem

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

Referenced by nfd::makeFaceStatus().

◆ getFactoryById()

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

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

References websocketpp::http::status_code::found.

◆ getFactoryByScheme()

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

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

References websocketpp::http::status_code::found.

Referenced by nfd::FaceManager::FaceManager().

◆ hasFactoryForScheme()

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

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

◆ getFaceTable()

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

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

References setConfigFile().

◆ setConfigFile()

Member Data Documentation

◆ __pad0__

NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE nfd::face::FaceSystem::__pad0__

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

The documentation for this class was generated from the following files: