35 const function<
void()>& onSuccess,
36 const Controller::DatasetFailCallback& onFailure,
37 const CommandOptions& options)
39 controller.fetch<ndn::nfd::StrategyChoiceDataset>(
40 [
this, onSuccess] (
const std::vector<StrategyChoice>& result) {
50 os <<
"<strategyChoices>";
51 for (
const StrategyChoice& item : m_status) {
54 os <<
"</strategyChoices>";
60 os <<
"<strategyChoice>";
61 os <<
"<namespace>" <<
xml::Text{item.getName().toUri()} <<
"</namespace>";
62 os <<
"<strategy><name>" <<
xml::Text{item.getStrategy().toUri()} <<
"</name></strategy>";
63 os <<
"</strategyChoice>";
69 os <<
"Strategy choices:\n";
70 for (
const StrategyChoice& item : m_status) {
78 os <<
" " << item.getName()
79 <<
" strategy=" << item.getStrategy()
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...