nfd::rib::ReadvertiseDestination Class Referenceabstract

A destination to readvertise into. More...

#include <daemon/rib/readvertise/readvertise-destination.hpp>

+ Inheritance diagram for nfd::rib::ReadvertiseDestination:
+ Collaboration diagram for nfd::rib::ReadvertiseDestination:

Public Member Functions

virtual ~ReadvertiseDestination ()=default
 
virtual void advertise (const ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb)=0
 
bool isAvailable () const
 
virtual void withdraw (const ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb)=0
 

Public Attributes

signal::Signal< ReadvertiseDestination, bool > afterAvailabilityChange
 Signals when the destination becomes available or unavailable. More...
 

Protected Member Functions

void setAvailability (bool isAvailable)
 

Detailed Description

A destination to readvertise into.

Definition at line 35 of file readvertise-destination.hpp.

Constructor & Destructor Documentation

◆ ~ReadvertiseDestination()

virtual nfd::rib::ReadvertiseDestination::~ReadvertiseDestination ( )
virtualdefault

Member Function Documentation

◆ advertise()

virtual void nfd::rib::ReadvertiseDestination::advertise ( const ReadvertisedRoute rr,
std::function< void()>  successCb,
std::function< void(const std::string &)>  failureCb 
)
pure virtual

◆ isAvailable()

bool nfd::rib::ReadvertiseDestination::isAvailable ( ) const
inline

Definition at line 52 of file readvertise-destination.hpp.

◆ setAvailability()

void nfd::rib::ReadvertiseDestination::setAvailability ( bool  isAvailable)
protected

Definition at line 34 of file readvertise-destination.cpp.

◆ withdraw()

virtual void nfd::rib::ReadvertiseDestination::withdraw ( const ReadvertisedRoute rr,
std::function< void()>  successCb,
std::function< void(const std::string &)>  failureCb 
)
pure virtual

Member Data Documentation

◆ afterAvailabilityChange

signal::Signal<ReadvertiseDestination, bool> nfd::rib::ReadvertiseDestination::afterAvailabilityChange

Signals when the destination becomes available or unavailable.

Definition at line 64 of file readvertise-destination.hpp.