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

Method TArg

pdal/util/ProgramArgs.hpp:371–375  ·  view source on GitHub ↗

Constructor that takes a default argument. \param longname Name of argument specified on command line with "--" prefix. \param shortname Optional name of argument specified on command line with "-" prefix. \param description Argument description. \param variable Variable to which the value of the argument should be bound. \param def Defau

Source from the content-addressed store, hash-verified

369 \param def Default value to be assigned to the bound variable.
370 */
371 TArg(const std::string& longname, const std::string& shortname,
372 const std::string& description, T& variable, T def) :
373 Arg(longname, shortname, description), m_var(variable),
374 m_defaultVal(def), m_defaultProvided(true)
375 { m_var = m_defaultVal; }
376
377 /**
378 Constructor.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected