arg  1.2
a C++ command-line parser
Public Member Functions | List of all members
arg::ListValue< T > Class Template Reference

list of values seperated by comma or something More...

#include <val.hh>

Inheritance diagram for arg::ListValue< T >:
Inheritance graph
[legend]
Collaboration diagram for arg::ListValue< T >:
Collaboration graph
[legend]

Public Member Functions

 ListValue (std::vector< T > &list, char seperator=',')
 make a list of value from vector More...
 
void set (std::string const &str) override
 convert the str to value and put it in storage
 
std::string to_str () const override
 convert the value to a string
 
std::string get_type () const override
 type name of the value
 

Detailed Description

template<typename T>
class arg::ListValue< T >

list of values seperated by comma or something

Constructor & Destructor Documentation

◆ ListValue()

template<typename T >
arg::ListValue< T >::ListValue ( std::vector< T > &  list,
char  seperator = ',' 
)

make a list of value from vector

Parameters
lista `vector` to stow the list values
seperatorseperator