Provides access to NFD face management.
More...
#include <tools/nfdc/face-module.hpp>
|
| 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 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...
|
| |
Provides access to NFD face management.
- See also
- https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt
Definition at line 43 of file face-module.hpp.
◆ create()
◆ destroy()
◆ fetchStatus()
| void nfd::tools::nfdc::FaceModule::fetchStatus |
( |
ndn::nfd::Controller & |
controller, |
|
|
const std::function< void()> & |
onSuccess, |
|
|
const ndn::nfd::DatasetFailureCallback & |
onFailure, |
|
|
const CommandOptions & |
options |
|
) |
| |
|
overridevirtual |
Collect status from NFD.
- Precondition
- no other fetchStatus is in progress
- Parameters
-
| 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 366 of file face-module.cpp.
◆ formatItemText()
| void nfd::tools::nfdc::FaceModule::formatItemText |
( |
std::ostream & |
os, |
|
|
const FaceStatus & |
item, |
|
|
bool |
wantMultiLine |
|
) |
| |
|
static |
Format a single status item as text.
- Parameters
-
| os | output stream |
| item | status item |
| wantMultiLine | use multi-line style |
Definition at line 469 of file face-module.cpp.
◆ formatItemXml()
| void nfd::tools::nfdc::FaceModule::formatItemXml |
( |
std::ostream & |
os, |
|
|
const FaceStatus & |
item |
|
) |
| const |
Format a single status item as XML.
- Parameters
-
| os | output stream |
| item | status item |
Definition at line 390 of file face-module.cpp.
◆ formatStatusText()
| void nfd::tools::nfdc::FaceModule::formatStatusText |
( |
std::ostream & |
os | ) |
const |
|
overridevirtual |
◆ formatStatusXml()
| void nfd::tools::nfdc::FaceModule::formatStatusXml |
( |
std::ostream & |
os | ) |
const |
|
overridevirtual |
◆ list()
◆ printFaceParams()
| void nfd::tools::nfdc::FaceModule::printFaceParams |
( |
std::ostream & |
os, |
|
|
text::ItemAttributes & |
ia, |
|
|
const ControlParameters & |
resp |
|
) |
| |
|
static |
Print face response parameters to specified ostream.
- Parameters
-
| os | output stream |
| ia | ItemAttributes used to format output |
| resp | response control parameters to print |
Definition at line 544 of file face-module.cpp.
◆ printSuccess()
| void nfd::tools::nfdc::FaceModule::printSuccess |
( |
std::ostream & |
os, |
|
|
const std::string & |
actionSummary, |
|
|
const ControlParameters & |
resp |
|
) |
| |
|
static |
Print face action success message to specified ostream.
- Parameters
-
| os | output stream |
| actionSummary | description of action taken |
| resp | response control parameters to print |
Definition at line 530 of file face-module.cpp.
◆ registerCommands()
| void nfd::tools::nfdc::FaceModule::registerCommands |
( |
CommandParser & |
parser | ) |
|
|
static |
Register 'face list', 'face show', 'face create', 'face destroy' commands.
Definition at line 36 of file face-module.cpp.
◆ show()