#include <PsInputConnectionEventListener.h>
Inheritance diagram for PsInputConnectionEventListener< Type >:


Public Methods | |
| PsInputConnectionEventListener (PsSimulatedObject &owner, PsInput< Type > *associatedInput) | |
| constructor | |
| virtual | ~PsInputConnectionEventListener () |
| destructor | |
| virtual void | registerEvents () |
| redefine to register the event emitted by the control parameter when new values are suggested | |
| virtual bool | processEvent (PsEvent *event) |
| process the suggested changes | |
Protected Attributes | |
| PsInput< Type > * | _associatedInput |
| the control parameter this event listener is montoring the change of | |
Definition at line 30 of file PsInputConnectionEventListener.h.
|
||||||||||||||||
|
constructor
Definition at line 59 of file PsInputConnectionEventListener.h.
00061 : 00062 PsEventListener ( owner ), 00063 _associatedInput( associatedInput ) 00064 { 00065 } |
|
|||||||||
|
destructor
Definition at line 71 of file PsInputConnectionEventListener.h.
00073 {
00074
|
|
||||||||||
|
process the suggested changes
Implements PsEventListener. Definition at line 86 of file PsInputConnectionEventListener.h. References PsInputConnectionEventListener< Type >::_associatedInput, PsEvent::eventId, PsEvent::sender, and PsValuedEvent< UserType >::value.
00088 {
00089 PsValuedEvent<PsName > * realEvent = dynamic_cast<PsValuedEvent<PsName > *>(event) ;
00090 assert ( realEvent != NULL );
00091 if ( realEvent->eventId == _associatedInput->getConnectionEventId() )
00092 {
00093 _associatedInput-> connect ( realEvent->sender, realEvent->value ) ;
00094 }
00095 else
00096 {
00097 _associatedInput-> connectToControlParameter ( realEvent->sender, realEvent->value ) ;
00098 }
00099 return true ;
|
|
|||||||||
|
redefine to register the event emitted by the control parameter when new values are suggested
Reimplemented from PsEventListener. Definition at line 78 of file PsInputConnectionEventListener.h. References PsInputConnectionEventListener< Type >::_associatedInput, PsEventListener::_owner, and PsSimulatedObject::registerEventListenerForEvent().
00080 {
00081 _owner.registerEventListenerForEvent ( *this, _associatedInput->getConnectionEventId() ) ;
00082 _owner.registerEventListenerForEvent ( *this, _associatedInput->getConnectionToControlParameterEventId() ) ;
|
|
|||||
|
the control parameter this event listener is montoring the change of
Definition at line 51 of file PsInputConnectionEventListener.h. Referenced by PsInputConnectionEventListener< Type >::processEvent(), and PsInputConnectionEventListener< Type >::registerEvents(). |
| Documentation generated on Mon Nov 25 15:26:05 2002 |
Generated with doxygen 1.2.12 by Dimitri van Heesch , 1997-2001 |