Home | Download | Screen shots | Discussion | Documentation |
---|
Concrete event listener template. More...
#include <openvrml/event.h>
Public Member Functions | |
virtual | ~field_value_listener ()=0 throw () |
Destroy. | |
void | process_event (const FieldValue &value, double timestamp) throw ( std::bad_alloc ) |
Process an event. | |
virtual field_value::type_id | type () const throw () |
FieldValue::field_value_type_id . | |
![]() | |
virtual | ~event_listener ()=0 throw () |
Destroy. |
Protected Member Functions | |
field_value_listener () throw () | |
Construct. | |
![]() | |
event_listener () throw () | |
Construct. |
Private Member Functions | |
virtual void | do_process_event (const FieldValue &value, double timestamp)=0 throw ( std::bad_alloc ) |
Called by field_value_listener<FieldValue>::do_process_event . |
Concrete event listener template.
FieldValue | a Field Value. |
|
pure virtual |
Destroy.
FieldValue | a Field Value. |
|
explicitprotected |
Construct.
FieldValue | a Field Value. |
void openvrml::field_value_listener< FieldValue >::process_event | ( | const FieldValue & | value, |
double | timestamp | ||
) | throw ( std::bad_alloc ) |
Process an event.
FieldValue | a Field Value. |
[in] | value | the event value. |
[in] | timestamp | the current time. |
std::bad_alloc | if memory allocation fails. |
|
virtual |
FieldValue::field_value_type_id
.
FieldValue | a Field Value. |
FieldValue::field_value_type_id
. Implements openvrml::event_listener.
|
privatepure virtual |
Called by field_value_listener<FieldValue>::do_process_event
.
Subclasses must implement this function.
FieldValue | a Field Value. |
[in] | value | the event value. |
[in] | timestamp | the current time. |
std::bad_alloc | if memory allocation fails. |