// Custom includes
#include <float.h>
+#include <senf/Utils/Console/ParsedCommand.hh>
#include "Range.hh"
#define prefix_ inline
prefix_ void senf::StatisticsBase::OutputEntry::initDir()
{
- namespace fty = senf::console::factory;
-
- dir.add("list", fty::Command(&OutputEntry::consoleList, this)
+ dir.add("list", console::factory::Command(&OutputEntry::consoleList, this)
.doc("List all known connected targets. This list might not be complete.") );
}
return *this;
}
-prefix_ void senf::StatisticsBase::OutputEntry::consoleList(std::ostream & os)
-{
- for (boost::ptr_vector<TargetBase>::iterator i (targets_.begin());
- i != targets_.end(); ++i)
- if (! i->label.empty())
- os << i->label << "\n";
-}
-
//-/////////////////////////////////////////////////////////////////////////////////////////////////
// senf::StatisticsBase