Provides access to NFD forwarder general status. More...
#include <tools/nfdc/forwarder-general-module.hpp>
Public Member Functions | |
void | fetchStatus (ndn::nfd::Controller &controller, const std::function< void()> &onSuccess, const ndn::nfd::DatasetFailureCallback &onFailure, const CommandOptions &options) override |
Collect status from NFD. More... | |
void | formatStatusText (std::ostream &os) const override |
Format collected status as text. More... | |
void | formatStatusXml (std::ostream &os) const override |
Format collected status as XML. More... | |
Static Public Member Functions | |
static void | formatItemText (std::ostream &os, const ForwarderStatus &item) |
Format a single status item as text. More... | |
static void | formatItemXml (std::ostream &os, const ForwarderStatus &item) |
Format a single status item as XML. More... | |
Provides access to NFD forwarder general status.
Definition at line 41 of file forwarder-general-module.hpp.
|
overridevirtual |
Collect status from NFD.
controller | a controller through which StatusDataset can be requested |
onSuccess | invoked when status has been collected into this instance |
onFailure | passed to controller.fetch |
options | passed to controller.fetch |
Implements nfd::tools::nfdc::Module.
Definition at line 35 of file forwarder-general-module.cpp.
|
static |
Format a single status item as text.
os | output stream |
item | status item |
Definition at line 105 of file forwarder-general-module.cpp.
|
static |
Format a single status item as XML.
os | output stream |
item | status item |
Definition at line 61 of file forwarder-general-module.cpp.
|
overridevirtual |
Format collected status as text.
os | output stream |
Implements nfd::tools::nfdc::Module.
Definition at line 97 of file forwarder-general-module.cpp.
|
overridevirtual |
Format collected status as XML.
os | output stream |
Implements nfd::tools::nfdc::Module.
Definition at line 55 of file forwarder-general-module.cpp.