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

Option that parses the param using a stringstream. More...

#include <arg_parser.hpp>

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

List of all members.

Public Member Functions

 option_stream (T *data)
 Constructor.
bool parse (const char *arg)
 Receives a string.

Detailed Description

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

Option that parses the param using a stringstream.

Note that template param T mus have defined its flow input operator.


Constructor & Destructor Documentation

template<class T >
psynth::base::option_stream< T >::option_stream ( T *  data) [inline]

Constructor.

Parameters:
TA pointer where to store the read value.

Member Function Documentation

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

Receives a string.

Parameters:
argThe string to receive.
Returns:
true.

Reimplemented from psynth::base::option.


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