17 using namespace eckit;
22 LSTool::LSTool (
int argc,
char *argv[]) :
Tool(argc, argv)
38 unsigned long long n = 0;
39 for ( ; it != end; ++it, ++n)
44 const char* spacer =
"";
45 for (
size_t i = 0;
i < md.size(); ++
i) {
46 out << spacer << md[
i]->name();
51 const char* spacer =
"";
52 for (
size_t i = 0;
i < md.size(); ++
i)
65 out << static_cast<int>((*it)[
i]);
73 out <<
"'" << (*it).string(
i) <<
"'";
77 ASSERT(
"Unknown type" &&
false);
100 std::unique_ptr<std::ofstream> foutPtr;
102 foutPtr.reset(
new std::ofstream(
optionArgument(
"-o", std::string(
"")).c_str()));
103 std::ostream& out =
optionIsSet(
"-o") ? *foutPtr : std::cout;
105 unsigned long long n = 0;
107 Log::info() <<
"Selected " << n <<
" row(s)." << std::endl;
const core::MetaData & columns() const