provides access to NFD face management More...
#include <tools/nfdc/face-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 FaceStatus &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 | create (ExecuteContext &ctx) |
the 'face create' command More... | |
static void | destroy (ExecuteContext &ctx) |
the 'face destroy' command More... | |
static void | formatItemText (std::ostream &os, const FaceStatus &item, bool wantMultiLine) |
format a single status item as text More... | |
static void | list (ExecuteContext &ctx) |
the 'face list' command More... | |
static void | registerCommands (CommandParser &parser) |
register 'face list', 'face show', 'face create', 'face destroy' commands More... | |
static void | show (ExecuteContext &ctx) |
the 'face show' command More... | |
provides access to NFD face management
Definition at line 41 of file face-module.hpp.
|
static |
the 'face create' command
Definition at line 150 of file face-module.cpp.
|
static |
the 'face destroy' command
Definition at line 276 of file face-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 323 of file face-module.cpp.
|
static |
format a single status item as text
os | output stream |
item | status item |
wantMultiLine | use multi-line style |
Definition at line 410 of file face-module.cpp.
void nfd::tools::nfdc::FaceModule::formatItemXml | ( | std::ostream & | os, |
const FaceStatus & | item | ||
) | const |
format a single status item as XML
os | output stream |
item | status item |
Definition at line 347 of file face-module.cpp.
|
overridevirtual |
format collected status as text
os | output stream |
Implements nfd::tools::nfdc::Module.
Definition at line 399 of file face-module.cpp.
|
overridevirtual |
format collected status as XML
os | output stream |
Implements nfd::tools::nfdc::Module.
Definition at line 337 of file face-module.cpp.
|
static |
the 'face list' command
Definition at line 68 of file face-module.cpp.
|
static |
register 'face list', 'face show', 'face create', 'face destroy' commands
Definition at line 35 of file face-module.cpp.
|
static |
the 'face show' command
Definition at line 108 of file face-module.cpp.