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
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected