vg
tools for working with variation graphs
Public Member Functions | List of all members
vg::Option< Value, Parser > Class Template Reference

#include <option.hpp>

Inheritance diagram for vg::Option< Value, Parser >:
vg::BaseOption< Value, OptionValueParser< Value > > vg::OptionInterface

Public Member Functions

 Option ()=delete
 
virtual ~Option ()=default
 
- Public Member Functions inherited from vg::BaseOption< Value, OptionValueParser< Value > >
 BaseOption ()=delete
 
 BaseOption (Configurable *owner, const string &long_opt, const string &short_opts, const Value &default_value, const string &description)
 
virtual ~BaseOption ()=default
 
BaseOption< Value, OptionValueParser< Value > > & operator= (const BaseOption< Value, OptionValueParser< Value > > &other)=default
 
BaseOption< Value, OptionValueParser< Value > > & operator= (const Value &other)
 
 operator Value & ()
 
virtual const string & get_long_option () const
 
virtual const string & get_short_options () const
 
virtual const string & get_description () const
 
virtual string get_default_value () const
 
virtual bool has_argument () const
 
virtual void parse ()
 
virtual void parse (const string &arg)
 
- Public Member Functions inherited from vg::OptionInterface
virtual const string & get_long_option () const =0
 
virtual const string & get_short_options () const =0
 
virtual const string & get_description () const =0
 
virtual string get_default_value () const =0
 
virtual bool has_argument () const =0
 
virtual ~OptionInterface ()=default
 

Additional Inherited Members

- Protected Attributes inherited from vg::BaseOption< Value, OptionValueParser< Value > >
string long_opt
 What is the options's long option name. More...
 
string short_opts
 What is the option's short option name. More...
 
string description
 How is this option described to the user? More...
 
Value value
 
Value default_value
 

Detailed Description

template<typename Value, typename Parser = OptionValueParser<Value>>
class vg::Option< Value, Parser >

Represents an option for a type with no extra methods.

Constructor & Destructor Documentation

◆ Option()

template<typename Value , typename Parser = OptionValueParser<Value>>
vg::Option< Value, Parser >::Option ( )
delete

◆ ~Option()

template<typename Value , typename Parser = OptionValueParser<Value>>
virtual vg::Option< Value, Parser >::~Option ( )
virtualdefault

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