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

Method VArg

pdal/util/ProgramArgs.hpp:731–739  ·  view source on GitHub ↗

Constructor for arguments with default value. \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 argument value(s) should be bound. \param def Default value.

Source from the content-addressed store, hash-verified

729 \param def Default value.
730 */
731 VArg(const std::string& longname, const std::string& shortname,
732 const std::string& description, std::vector<T>& variable,
733 std::vector<T> def) :
734 BaseVArg(longname, shortname, description), m_var(variable),
735 m_defaultVal(def)
736 {
737 m_var = def;
738 m_defaultProvided = true;
739 }
740
741 /**
742 Constructor for arguments without default value.

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected