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. | |
openvrml::node & | node () const throw () |
The node with which the event_emitter is associated. | |
![]() | |
virtual | ~event_emitter ()=0 throw () |
Destroy. | |
const field_value & | value () const throw () |
A reference to the field_value for the event_emitter . | |
const std::string | eventout_id () const throw () |
The associated eventOut identifier. | |
double | last_time () const throw () |
The timestamp of the last event emitted. | |
template<typename FieldValue > | |
bool | add (field_value_listener< FieldValue > &listener) throw ( std::bad_alloc ) |
Add an event listener. | |
template<typename FieldValue > | |
bool | remove (field_value_listener< FieldValue > &listener) throw () |
Remove an event listener. |
Protected Member Functions | |
event_emitter_base (openvrml::node &n, const field_value &value) throw () | |
Construct. | |
![]() | |
event_emitter (const field_value &value) throw () | |
Construct. | |
template<typename FieldValue > | |
const std::set < field_value_listener < FieldValue > * > | listeners () const throw ( std::bad_alloc ) |
The event listeners currently listening to the emitter. | |
template<typename FieldValue > | |
void | emit_event (double timestamp) throw ( std::bad_alloc ) |
Emit an event. |
Private Member Functions | |
virtual const std::string | do_eventout_id () const throw () |
The associated eventOut identifier. |
Additional Inherited Members | |
![]() | |
typedef std::set < event_listener * > | listener_set |
Set of event_listeners . |
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.