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

An arg_parser option that receives an argument and stores it in a conf_node. More...

#include <option_conf.hpp>

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

List of all members.

Public Member Functions

 option_conf (conf_node &node)
 Constructor.
bool parse (const char *arg)
 Parse an argument.

Detailed Description

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

An arg_parser option that receives an argument and stores it in a conf_node.

The conf_node will be of type T. The only requirement for T is that it must be a valid type for a conf_node and that it must have defined its flow input operator for istreams.


Constructor & Destructor Documentation

template<class T >
psynth::base::option_conf< T >::option_conf ( conf_node &  node) [inline]

Constructor.

Parameters:
nodeThe node to fill with the option argument.

Member Function Documentation

template<class T >
bool psynth::base::option_conf< T >::parse ( const char *  arg) [inline, virtual]

Parse an argument.

Returns:
true.

Reimplemented from psynth::base::option.


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