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

Method defaultVal

pdal/util/ProgramArgs.hpp:815–826  ·  view source on GitHub ↗

Return a string representation of an Arg's default value, or an empty string if none exists. \return Default value as a string. */

Source from the content-addressed store, hash-verified

813 \return Default value as a string.
814 */
815 virtual std::string defaultVal() const
816 {
817 std::string s;
818
819 for (size_t i = 0; i < m_defaultVal.size(); ++i)
820 {
821 if (i > 0)
822 s += ", ";
823 s += Utils::toString(m_defaultVal[i]);
824 }
825 return s;
826 }
827
828private:
829 std::vector<T>& m_var;

Callers

nothing calls this directly

Calls 2

toStringFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected