| Home | Download | Screen shots | Discussion | Documentation |
|---|
Abstract base for event_emitter implementations.
More...
#include <openvrml/node_impl_util.h>

Public Member Functions | |
| virtual | ~event_emitter_base ()=0 throw () |
| Destroy. More... | |
| openvrml::node & | node () const throw () |
The node with which the event_emitter is associated. More... | |
Public Member Functions inherited from openvrml::event_emitter | |
| virtual | ~event_emitter ()=0 throw () |
| Destroy. More... | |
| const field_value & | value () const throw () |
A reference to the field_value for the event_emitter. More... | |
| const std::string | eventout_id () const throw () |
The associated eventOut identifier. More... | |
| double | last_time () const throw () |
| The timestamp of the last event emitted. More... | |
| template<typename FieldValue > | |
| bool | add (field_value_listener< FieldValue > &listener) throw ( std::bad_alloc ) |
| Add an event listener. More... | |
| template<typename FieldValue > | |
| bool | remove (field_value_listener< FieldValue > &listener) throw () |
| Remove an event listener. More... | |
Protected Member Functions | |
| event_emitter_base (openvrml::node &n, const field_value &value) throw () | |
| Construct. More... | |
Protected Member Functions inherited from openvrml::event_emitter | |
| event_emitter (const field_value &value) throw () | |
| Construct. More... | |
| template<typename FieldValue > | |
| const std::set < field_value_listener < FieldValue > * > | listeners () const throw ( std::bad_alloc ) |
| The event listeners currently listening to the emitter. More... | |
| template<typename FieldValue > | |
| void | emit_event (double timestamp) throw ( std::bad_alloc ) |
| Emit an event. More... | |
Private Member Functions | |
| virtual const std::string | do_eventout_id () const throw () |
The associated eventOut identifier. More... | |
Additional Inherited Members | |
Public Types inherited from openvrml::event_emitter | |
| typedef std::set < event_listener * > | listener_set |
Set of event_listeners. More... | |
Abstract base for event_emitter implementations.
event_emitter_base implements openvrml::event_emitter::do_eventout_id.
| Node | a concrete node type. |
|
pure virtual | |||||||||||||
Destroy.
|
protected | ||||||||||||||||||||
Construct.
| [in] | n | the node associated with the event_emitter. |
| [in] | value | the field value associated with the event_emitter. |
| openvrml::node & openvrml::node_impl_util::event_emitter_base< Node >::node | ( | ) | const | |
| throw | ( | |||
| ) | ||||
The node with which the event_emitter is associated.
|
privatevirtual | |||||||||||||
The associated eventOut identifier.
eventOut identifier. Implements openvrml::event_emitter.