readvertise-destination.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_RIB_READVERTISE_READVERTISE_DESTINATION_HPP
27 #define NFD_RIB_READVERTISE_READVERTISE_DESTINATION_HPP
28 
29 #include "readvertised-route.hpp"
30 
31 #include <ndn-cxx/mgmt/nfd/controller.hpp>
32 
33 namespace nfd {
34 namespace rib {
35 
38 class ReadvertiseDestination : noncopyable
39 {
40 public:
41  virtual
42  ~ReadvertiseDestination() = default;
43 
44  virtual void
46  std::function<void()> successCb,
47  std::function<void(const std::string&)> failureCb) = 0;
48 
49  virtual void
51  std::function<void()> successCb,
52  std::function<void(const std::string&)> failureCb) = 0;
53 };
54 
55 } // namespace rib
56 } // namespace nfd
57 
58 #endif // NFD_RIB_READVERTISE_READVERTISE_DESTINATION_HPP
virtual ~ReadvertiseDestination()=default
virtual void advertise(nfd::rib::ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb)=0
virtual void withdraw(nfd::rib::ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb)=0
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
a destination to readvertise into