libpsynth 0.2.1
Public Types | Public Member Functions | Public Attributes
psynth::base::conf_subject Class Reference

The psynth class of an observable configuration node. More...

#include <config.hpp>

Inheritance diagram for psynth::base::conf_subject:
Inheritance graph
[legend]
Collaboration diagram for psynth::base::conf_subject:
Collaboration graph
[legend]

List of all members.

Public Types

typedef boost::signal< void(conf_node &)> signal

Public Member Functions

void add_listener (conf_listener &l)
 Register a new listener in the subject connecting all the signals.
void del_listener (conf_listener &l)
 Unregister a new listener on this object disconnectin all the signals.

Public Attributes

signal on_change
 Event emitted whenever the node value is changed.
signal on_nudge
 Generic event to notify changes on the node subchilds.
signal on_add_child
 Generic event to notify the addition of a child to the config node.
signal on_del_child
 Generic event to notify the removal of a child to the config node.

Detailed Description

The psynth class of an observable configuration node.


Member Typedef Documentation

typedef boost::signal<void (conf_node&)> psynth::base::conf_subject::signal

Member Function Documentation

void psynth::base::conf_subject::add_listener ( conf_listener &  l) [virtual]

Register a new listener in the subject connecting all the signals.

Implements psynth::base::subject_base< conf_listener >.

void psynth::base::conf_subject::del_listener ( conf_listener &  l) [virtual]

Unregister a new listener on this object disconnectin all the signals.

Implements psynth::base::subject_base< conf_listener >.


Member Data Documentation

Generic event to notify the addition of a child to the config node.

Event emitted whenever the node value is changed.

Generic event to notify the removal of a child to the config node.

Generic event to notify changes on the node subchilds.

It should be emitted by the user with the nudge () method.


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