option< T > Class Template Reference

#include <option_parser.h>

Inheritance diagram for option< T >:
abstract_option

Public Member Functions

 option (const value_container< T > &value, const std::string &flag, const std::string &help)
 
virtual ~option ()
 
void set_value (const std::string &str)
 
std::string get_value () const
 
- Public Member Functions inherited from abstract_option
 abstract_option (const std::string &flag, const std::string &help)
 
virtual ~abstract_option ()
 
const std::string & flag () const
 
const std::string & help () const
 

Detailed Description

template<typename T>
class illumina::interop::util::option< T >

Option template

This performs the parsing of the value from the string

Constructor & Destructor Documentation

option ( const value_container< T > &  value,
const std::string &  flag,
const std::string &  help 
)
inline

Constructor

Parameters
valuepointer to value
flagoption name
helpdescriptoin of the option
virtual ~option ( )
inlinevirtual

Destructor

Member Function Documentation

std::string get_value ( ) const
inlinevirtual

Get the current value of the option

Returns
value as a string

Implements abstract_option.

void set_value ( const std::string &  str)
inlinevirtual

Parse the value from a string

Parameters
strvalue as a string

Implements abstract_option.


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