本文整理汇总了C++中ProgramArgs::dump方法的典型用法代码示例。如果您正苦于以下问题:C++ ProgramArgs::dump方法的具体用法?C++ ProgramArgs::dump怎么用?C++ ProgramArgs::dump使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProgramArgs
的用法示例。
在下文中一共展示了ProgramArgs::dump方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: outputHelp
void Kernel::outputHelp(ProgramArgs& args)
{
std::cout << "usage: " << "pdal " << m_appName << " [options] " <<
args.commandLine() << std::endl;
std::cout << "options:" << std::endl;
args.dump(std::cout, 2, Utils::screenWidth());
//ABELL - Fix me.
std::cout <<"\nFor more information, see the full documentation for "
"PDAL at http://pdal.io/\n" << std::endl;
}
示例2: outputHelp
void App::outputHelp(const ProgramArgs& args)
{
m_out << "Usage:" << std::endl;
m_out << " pdal <options>" << std::endl;
m_out << " pdal <command> <command options>" << std::endl;
args.dump(m_out, 2, 80);
m_out << std::endl;
m_out << "The following commands are available:" << std::endl;
// Load all kernels so that we can report the names.
StageFactory f;
PluginManager<Kernel>::loadAll();
outputCommands(" - ");
m_out << std::endl;
m_out << "See http://pdal.io/apps/ for more detail" << std::endl;
}