Provides access to NFD Strategy Choice management. More...
#include <tools/nfdc/strategy-choice-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 | formatItemXml (std::ostream &os, const StrategyChoice &item) const |
Format a single status item as XML. 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 StrategyChoice &item, bool wantMultiLine=false) |
Format a single status item as text. More... | |
static void | list (ExecuteContext &ctx) |
The 'strategy list' command. More... | |
static void | registerCommands (CommandParser &parser) |
Register 'strategy list', 'strategy show', 'strategy set', 'strategy unset' commands. More... | |
static void | set (ExecuteContext &ctx) |
The 'strategy set' command. More... | |
static void | show (ExecuteContext &ctx) |
The 'strategy show' command. More... | |
static void | unset (ExecuteContext &ctx) |
The 'strategy unset' command. More... | |
Provides access to NFD Strategy Choice management.
Definition at line 42 of file strategy-choice-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 153 of file strategy-choice-module.cpp.
|
static |
Format a single status item as text.
os | output stream |
item | status item |
wantMultiLine | use multi-line style |
Definition at line 197 of file strategy-choice-module.cpp.
void nfd::tools::nfdc::StrategyChoiceModule::formatItemXml | ( | std::ostream & | os, |
const StrategyChoice & | item | ||
) | const |
Format a single status item as XML.
os | output stream |
item | status item |
Definition at line 177 of file strategy-choice-module.cpp.
|
overridevirtual |
Format collected status as text.
os | output stream |
Implements nfd::tools::nfdc::Module.
Definition at line 186 of file strategy-choice-module.cpp.
|
overridevirtual |
Format collected status as XML.
os | output stream |
Implements nfd::tools::nfdc::Module.
Definition at line 167 of file strategy-choice-module.cpp.
|
static |
The 'strategy list' command.
Definition at line 63 of file strategy-choice-module.cpp.
|
static |
Register 'strategy list', 'strategy show', 'strategy set', 'strategy unset' commands.
Definition at line 34 of file strategy-choice-module.cpp.
|
static |
The 'strategy set' command.
Definition at line 101 of file strategy-choice-module.cpp.
|
static |
The 'strategy show' command.
Definition at line 79 of file strategy-choice-module.cpp.
|
static |
The 'strategy unset' command.
Definition at line 129 of file strategy-choice-module.cpp.