Return a string representation of an Arg's default value, or an empty string if none exists. \return Default value as a string. */
| 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 | |
| 828 | private: |
| 829 | std::vector<T>& m_var; |