Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

L1394::Event Class Reference
[L1394_Event]

This class reports changes on the FireWire bus. More...

#include <l1394_event.h>

List of all members.

Public Member Functions

 Event (const L1394::Node *, const L1394::Card *=0)
 Constructor.
 ~Event ()
 Destructor.
void call (const EVENT event)
Functions to add/remove EventHandles
These functions add or remove EventHandles from this object.

void addEventHandle (EventHandle *event_handle, const EVENT event)
void addEventHandle (EventHandle *event_handle)
 This method adds an EventHandle to all events of a node.
void removeEventHandle (EventHandle *event_handle, const EVENT event)
void removeEventHandle (EventHandle *event_handle)
 This method removes an EventHandle from all events.


Detailed Description

This class reports changes on the FireWire bus.

Every Node object has an Event object, where you can add some EventHandle to get information about incoming events on the FireWire bus. In the actual version of this library 5 events are defined.

Event BUSRESET:
This event calls the method busreset() on the connected EventHandle objects. This event happens only to Card objects.

Event NODE_DISABLED:
This event calls the method nodeDisabled() on the connected EventHandle objects. This event occurs, if a Node Object is disconnected from FireWire Bus and stored in the inactive_node_list of the global NodeContainer object. Connected EventHandle objects

Event NODE_ENABLED:
This event call the method nodeEnabled() on the connected EventHandle objects. This event occur, if a Node Object is reconnected from FireWire Bus and removed from the inactive_node_list of the NodeContainer object.Node objects, that connect to this event get also the NODE_DISABLED event.

Event NODE_DESTROY:
This event call the method nodeDestroy() on the connected EventHandle objects. This event happens if the destructor of a Node object is called, what (should ;) ) only happen when a FireWire node is disconnected from the bus.

See the tutorial for examples.

Author:
Michael Repplinger

Definition at line 61 of file l1394_event.h.


Constructor & Destructor Documentation

L1394::Event::Event const L1394::Node ,
const L1394::Card = 0
 

Constructor.

Definition at line 24 of file l1394_event.cpp.

References L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance().

L1394::Event::~Event  ) 
 

Destructor.

Definition at line 29 of file l1394_event.cpp.


Member Function Documentation

L1394::Event::addEventHandle EventHandle handle  ) 
 

This method adds an EventHandle to all events of a node.

Parameters:
event_handle : pointer to the EventHandle object

Definition at line 97 of file l1394_event.cpp.

void L1394::Event::addEventHandle EventHandle event_handle,
const EVENT  event
 

Definition at line 70 of file l1394_event.cpp.

References L1394::BUSRESET, L1394::internal::Message::errorStream(), L1394::NODE_DESTROY, L1394::NODE_DISABLED, and L1394::NODE_ENABLED.

void L1394::Event::call const EVENT  event  ) 
 

Definition at line 33 of file l1394_event.cpp.

References L1394::BUSRESET, L1394::internal::Message::errorStream(), L1394::NODE_DESTROY, L1394::NODE_DISABLED, and L1394::NODE_ENABLED.

L1394::Event::removeEventHandle EventHandle handle  ) 
 

This method removes an EventHandle from all events.

All EventHandle must removed, if the EventHandle is deleted. (So you can call this method in the destructor of your EventHandle.)

Parameters:
event_handle : pointer to the EventHandle object

Definition at line 105 of file l1394_event.cpp.

void L1394::Event::removeEventHandle EventHandle event_handle,
const EVENT  event
 

Definition at line 113 of file l1394_event.cpp.

References L1394::BUSRESET, L1394::internal::Message::errorStream(), and L1394::NODE_DESTROY.


The documentation for this class was generated from the following files:
Generated on Wed Aug 24 00:36:44 2005 for L1394 by doxygen 1.4.2
L1394 library (NMM) grahics.cs.uni-sb.de/~repplix/l1394_home/