libpsynth 0.2.1
Public Member Functions
psynth::base::option_conf_value< T > Class Template Reference

An arg_parser option that sets a conf_node to a given value if the option is parsed. More...

#include <option_conf.hpp>

Inheritance diagram for psynth::base::option_conf_value< T >:
Inheritance graph
[legend]
Collaboration diagram for psynth::base::option_conf_value< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 option_conf_value (const T &val, conf_node &node)
 Constructor.
bool parse ()
 Parse the argument.

Detailed Description

template<class T>
class psynth::base::option_conf_value< T >

An arg_parser option that sets a conf_node to a given value if the option is parsed.

It does not catch any argument so its more a flag type option, it just sets the node to a value if the option is present and leaves it unchanged otherwise.


Constructor & Destructor Documentation

template<class T >
psynth::base::option_conf_value< T >::option_conf_value ( const T &  val,
conf_node &  node 
) [inline]

Constructor.

Parameters:
valThe value to set the node to if the argument is present.
nodeThe node to change if the the argument is present.

Member Function Documentation

template<class T >
bool psynth::base::option_conf_value< T >::parse ( ) [inline, virtual]

Parse the argument.

Returns:
true.

Reimplemented from psynth::base::option.


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