libpsynth 0.2.1
Public Member Functions
psynth::base::option Class Reference

The interface of an option of the argument parser. More...

#include <arg_parser.hpp>

Inheritance diagram for psynth::base::option:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~option ()
 Virtual destructor.
virtual bool parse (const char *arg)
 Define this function to make this option receive an argument.
virtual bool parse ()
 Define this function to make the option be a toggle.

Detailed Description

The interface of an option of the argument parser.


Constructor & Destructor Documentation

virtual psynth::base::option::~option ( ) [inline, virtual]

Virtual destructor.


Member Function Documentation

virtual bool psynth::base::option::parse ( const char *  arg) [inline, virtual]

Define this function to make this option receive an argument.

Parameters:
argThe argument being parsed.
Returns:
true if you where able to parse the argument or false if you could not or the option does not receive arguments.

Reimplemented in psynth::base::option_generic< T, ConvFunc >, psynth::base::option_stream< T >, psynth::base::option_conf< T >, and psynth::base::option_conf< std::string >.

virtual bool psynth::base::option::parse ( ) [inline, virtual]

Define this function to make the option be a toggle.

Returns:
true if you where able to toggle or false if the option must receive an argument.

Reimplemented in psynth::base::option_flag, psynth::base::option_not_flag, and psynth::base::option_conf_value< T >.


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