This class holds events to send to output streams so that external programs are notified when something happens in Anatomist.
More...
#include <anatomist/processor/event.h>
This class holds events to send to output streams so that external programs are notified when something happens in Anatomist.
Definition at line 45 of file event.h.
◆ OutputEvent() [1/2]
anatomist::OutputEvent::OutputEvent |
( |
const std::string & |
evname, |
|
|
carto::Object |
contents, |
|
|
bool |
allocIDs = true , |
|
|
const std::set< std::string > & |
discrimintantAttribs = std::set< std::string >() |
|
) |
| |
Builds an Event.
- Parameters
-
evname | event type |
contents | event attributes. Attributes beginning with a '_' (underscore), of types AObject* , AWindow* , Referential* , Transformation *, or containers types built on these types (list , set , vector ) are converted to IDs before the event is sent to an output stream. |
allocIDs | specifies if new IDs must be generated for 'unnamed' objects or if the corresponding objects are ignored |
discrimintantAttribs | is a list of attributes that are mandatory for the event to be significant: if these attributes are all empty, the event is just not sent to the corresponding output stream |
◆ ~OutputEvent()
virtual anatomist::OutputEvent::~OutputEvent |
( |
| ) |
|
|
virtual |
◆ OutputEvent() [2/2]
anatomist::OutputEvent::OutputEvent |
( |
| ) |
|
|
protected |
◆ contents()
◆ eventType()
std::string anatomist::OutputEvent::eventType |
( |
| ) |
const |
|
inline |
◆ send()
virtual void anatomist::OutputEvent::send |
( |
| ) |
|
|
virtual |
sends the event to all output streams
The documentation for this class was generated from the following file: