#include </home/sspr/src/www/orocos-1.0/export/build/orocos-rtt-1.2.2/build/rtt/EventProcessor.hpp>
Inheritance diagram for EventProcessor:

This class is mostly used internally by Orocos, but users can use it to process asynchronous callbacks in their own implementation. The EventProcessor is an argument in the Event's asynchronous connect method.
Public Types | |
| enum | AsynStorageType { OnlyFirst, OnlyLast } |
| For Asynchronous callbacks, this enum defines how the arguments are stored in case of an overrun, ie, when the event is fired multiple times, before the asynchronous callback can be called. More... | |
Public Member Functions | |
| EventProcessor () | |
| Create a periodic EventProcessor. | |
| bool | initialize () |
| The method that will be called before the first periodical execution of step() ( or non periodical execution of loop() ), when the thread is started. | |
| void | step () |
| The method that will be periodically executed when this class is run in a periodic thread. | |
| void | finalize () |
| The method that will be called after the last periodical execution of step() ( or non periodical execution of loop() ), when the RunnableInterface is stopped. | |
| bool | breakLoop () |
| Force the loop() method to return. | |
| template<class SignalType> | |
| Handle | connect (const typename SignalType::SlotFunction &f, SignalType &sig, AsynStorageType t) |
| Connect a function to an Event and process upon each event the function in this event processor. | |
| template<class SignalType> | |
| Handle | setup (const typename SignalType::SlotFunction &f, SignalType &sig, AsynStorageType t) |
| Setup the processing of an asynchronous event. | |
| ActivityInterface * | getActivity () const |
| Query for the task this interface is run in. | |
| virtual void | setActivity (ActivityInterface *task) |
| Set the task this interface is run in. | |
| virtual void | loop () |
| The method that will be executed once when this class is run in a non periodic thread. | |
| ThreadInterface * | getThread () const |
| Get the thread this object is run in. | |
| virtual void | setThread (ThreadInterface *t) |
| Set the thread this object will be run in. | |
Protected Types | |
| typedef ListLockFree< detail::EventCatcher * > | List |
| The EC is released when the connection it is used in is deleted *and* it is removed from this vector. | |
Protected Member Functions | |
| void | destroyed (detail::EventCatcher *ec) |
Protected Attributes | |
| List | catchers |
Friends | |
| class | detail::EventCatcher |
| enum AsynStorageType |
| Handle connect | ( | const typename SignalType::SlotFunction & | f, | |
| SignalType & | sig, | |||
| AsynStorageType | t | |||
| ) | [inline] |
Connect a function to an Event and process upon each event the function in this event processor.
The returned handle holds the connection between f and sig.
| f | will be called within this EventProcessor when sig is emitted. | |
| sig | The Event to which f will react. | |
| t | specifies the policy in case of over-runs. That is, when sig is emitted multiple times before f could be called. |
| Handle setup | ( | const typename SignalType::SlotFunction & | f, | |
| SignalType & | sig, | |||
| AsynStorageType | t | |||
| ) | [inline] |
Setup the processing of an asynchronous event.
The returned handle does not yet connect f and sig. Use Handle::connect().
| f | will be called within this EventProcessor when sig is emitted. | |
| sig | The Event to which f will react. | |
| t | specifies the policy in case of over-runs. That is, when sig is emitted multiple times before f could be called. |
| ActivityInterface * getActivity | ( | ) | const [inline, inherited] |
Query for the task this interface is run in.
Zero denotes that no task is present to run it, and hence no detailed information is available.
| virtual void setActivity | ( | ActivityInterface * | task | ) | [virtual, inherited] |
Set the task this interface is run in.
A Zero means no task is running it.
| task | The ActivityInterface running this interface. |
Reimplemented in ExecutionEngine.
| virtual void loop | ( | ) | [virtual, inherited] |
The method that will be executed once when this class is run in a non periodic thread.
The default implementation calls step() once.
| ThreadInterface* getThread | ( | ) | const [inherited] |
Get the thread this object is run in.
1.5.1