vg
tools for working with variation graphs
Static Public Member Functions | List of all members
vg::OptionValueParser< vector< Item > > Class Template Reference

#include <option.hpp>

Static Public Member Functions

static bool has_argument ()
 
static void parse_default (const vector< Item > &default_value, vector< Item > &value)
 
static void parse (const string &arg, vector< Item > &value)
 
static string unparse (const vector< Item > &value)
 

Detailed Description

template<typename Item>
class vg::OptionValueParser< vector< Item > >

For vector options, we recurse.

Member Function Documentation

◆ has_argument()

template<typename Item >
static bool vg::OptionValueParser< vector< Item > >::has_argument ( )
inlinestatic

Return true if we need an argument and false otherwise.

◆ parse()

template<typename Item >
static void vg::OptionValueParser< vector< Item > >::parse ( const string &  arg,
vector< Item > &  value 
)
inlinestatic

Parse from an argument.

◆ parse_default()

template<typename Item >
static void vg::OptionValueParser< vector< Item > >::parse_default ( const vector< Item > &  default_value,
vector< Item > &  value 
)
inlinestatic

Parse from no argument, but a default value.

◆ unparse()

template<typename Item >
static string vg::OptionValueParser< vector< Item > >::unparse ( const vector< Item > &  value)
inlinestatic

Stringify a default value.


The documentation for this class was generated from the following file: