Provides access to NFD CS management. More...
#include <tools/nfdc/cs-module.hpp>
Inheritance diagram for nfd::tools::nfdc::CsModule:
Collaboration diagram for nfd::tools::nfdc::CsModule: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 | config (ExecuteContext &ctx) |
| The 'cs config' command. More... | |
| static void | erase (ExecuteContext &ctx) |
| The 'cs erase' command. More... | |
| static void | formatItemText (std::ostream &os, const CsInfo &item) |
| static void | formatItemXml (std::ostream &os, const CsInfo &item) |
| static void | registerCommands (CommandParser &parser) |
| Register 'cs config' command. More... | |
Provides access to NFD CS management.
Definition at line 42 of file cs-module.hpp.
|
static |
The 'cs config' command.
Definition at line 54 of file cs-module.cpp.
|
static |
The 'cs erase' command.
Definition at line 89 of file cs-module.cpp.
|
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 133 of file cs-module.cpp.
|
static |
Definition at line 174 of file cs-module.cpp.
|
static |
Definition at line 153 of file cs-module.cpp.
|
overridevirtual |
Format collected status as text.
| os | output stream |
Implements nfd::tools::nfdc::Module.
Definition at line 166 of file cs-module.cpp.
|
overridevirtual |
Format collected status as XML.
| os | output stream |
Implements nfd::tools::nfdc::Module.
Definition at line 147 of file cs-module.cpp.
|
static |
Register 'cs config' command.
Definition at line 35 of file cs-module.cpp.