OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::ButtonOpNode Class Reference

#include <ButtonOpNode.h>

Inheritance diagram for ot::ButtonOpNode:

Inheritance graph
[legend]
Collaboration diagram for ot::ButtonOpNode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual int isEventGenerator ()
virtual void onEventGenerated (Event &event, Node &generator)

Protected Types

 OR
 AND
enum  Op { OR, AND }

Protected Member Functions

 ButtonOpNode (const Op &op_)

Protected Attributes

Event result
unsigned short arg1
unsigned short arg2
enum ot::ButtonOpNode::Op operation

Friends

class CommonNodeFactory

Detailed Description

Definition at line 85 of file ButtonOpNode.h.


Member Enumeration Documentation

enum ot::ButtonOpNode::Op [protected]

the operation to perform

Enumerator:
OR 
AND 

Definition at line 95 of file ButtonOpNode.h.


Constructor & Destructor Documentation

ot::ButtonOpNode::ButtonOpNode ( const Op op_  )  [protected]

constructor method

Definition at line 59 of file ButtonOpNode.cxx.


Member Function Documentation

int ot::ButtonOpNode::isEventGenerator (  )  [virtual]

tests for EventGenerator interface being present.

Returns the result of the childs implementation of this method.

Returns:
1 if child implements EventGenerator, 0 otherwise

Reimplemented from ot::Node.

Definition at line 64 of file ButtonOpNode.cxx.

void ot::ButtonOpNode::onEventGenerated ( Event event,
Node generator 
) [virtual]

this method is called by the EventGenerator to update it's observers.

Reimplemented from ot::Node.

Definition at line 71 of file ButtonOpNode.cxx.

References AND, arg1, arg2, ot::Event::getButton(), ot::Node::getType(), ot::Node::isNodePort(), operation, OR, result, and ot::Node::updateObservers().


Friends And Related Function Documentation

friend class CommonNodeFactory [friend]

Definition at line 116 of file ButtonOpNode.h.


Member Data Documentation

unsigned short ot::ButtonOpNode::arg1 [protected]

last button events

Definition at line 93 of file ButtonOpNode.h.

Referenced by onEventGenerated().

unsigned short ot::ButtonOpNode::arg2 [protected]

Definition at line 93 of file ButtonOpNode.h.

Referenced by onEventGenerated().

the operation to perform

Referenced by onEventGenerated().

last saved event variable

Definition at line 91 of file ButtonOpNode.h.

Referenced by onEventGenerated().


The documentation for this class was generated from the following files:

copyright (c) 2006 Graz University of Technology