MCPcopy Create free account
hub / github.com/PDAL/PDAL / toCommandLine

Method toCommandLine

pdal/Options.cpp:163–173  ·  view source on GitHub ↗

Convert options to a string list appropriate for parsing with ProgramArgs. \return List of options as argument strings. */

Source from the content-addressed store, hash-verified

161 \return List of options as argument strings.
162*/
163StringList Options::toCommandLine() const
164{
165 StringList s;
166
167 for (const auto& op : m_options)
168 {
169 const Option& o = op.second;
170 s.push_back(o.toArg());
171 }
172 return s;
173}
174
175Options Options::fromFile(const std::string& filename, bool throwOnOpenError)
176{

Callers 2

TESTFunction · 0.80
handleOptionsMethod · 0.80

Calls 1

toArgMethod · 0.80

Tested by 1

TESTFunction · 0.64