provides access to NFD Strategy Choice management More...
#include <tools/nfdc/strategy-choice-module.hpp>
Public Member Functions | |
void | fetchStatus (Controller &controller, const function< void()> &onSuccess, const Controller::DatasetFailCallback &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 41 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 152 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 196 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 176 of file strategy-choice-module.cpp.
|
overridevirtual |
format collected status as text
os | output stream |
Implements nfd::tools::nfdc::Module.
Definition at line 185 of file strategy-choice-module.cpp.
|
overridevirtual |
format collected status as XML
os | output stream |
Implements nfd::tools::nfdc::Module.
Definition at line 166 of file strategy-choice-module.cpp.
|
static |
the 'strategy list' command
Definition at line 62 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 100 of file strategy-choice-module.cpp.
|
static |
the 'strategy show' command
Definition at line 78 of file strategy-choice-module.cpp.
|
static |
the 'strategy unset' command
Definition at line 128 of file strategy-choice-module.cpp.