Buffers between events and sensors. More...
#include <eventline.h>
Inheritance diagram for april::EventLine:Public Member Functions | |
| EventLine (World *w, ID id, unsigned int max_count=100) | |
| constructor; | |
| World * | world (void) const |
| the world where this belongs | |
| ID | identificator (void) const |
| the ID of this line | |
| unsigned int | dataCount (void) const |
| tell the number of packets | |
| bool | postActivity (EventData *ed) |
| post activity on this event line | |
| void | discardOldEntries (void) |
| iterate and discard old entries | |
| EventData * | firstEventData (void) const |
| get first (newest) packet | |
| EventData * | lastEventData (void) |
| get last (oldest) packet | |
| unsigned int | maxEntries (void) const |
| maximum number of entries to keep | |
| virtual bool | save (QSettings &s) const |
| save to a QSettings object | |
| virtual bool | load (QSettings &s) |
| load from a QSettings object | |
Public Member Functions inherited from april::Component | |
| Component (void) | |
| constructor; | |
| Amorph & | payload (void) |
| associated data | |
| virtual Factory * | factory (void) const |
| associated factory, if any | |
Static Public Member Functions | |
| static EventLine * | fromStg (World *w, QSettings &s) |
| constructor method; creates and loads an event line from QSettings | |
Protected Member Functions | |
| EventLine (World *w) | |
| constructor; used by the fromStg() method | |
| virtual | ~EventLine (void) |
| destructor; | |
Protected Member Functions inherited from april::Component | |
| virtual | ~Component (void) |
| destructor; | |
| virtual void | inserted (void) |
| the instance is informed that the parent attached it | |
Friends | |
| class | World |
Buffers between events and sensors.
| void EventLine::discardOldEntries | ( | void | ) |
iterate and discard old entries
the world may be running or not
| bool EventLine::postActivity | ( | EventData * | ed | ) |
post activity on this event line
The method fails if the world is not started.
| ed | the data to post (asserted to be non-null) |