An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::LinmouseModule Class Reference

#include <LinmouseModule.h>

Inheritance diagram for ot::LinmouseModule:

Inheritance graph
Collaboration diagram for ot::LinmouseModule:

Collaboration graph
List of all members.

Public Member Functions

 LinmouseModule ()
virtual ~LinmouseModule ()
virtual NodecreateNode (const std::string &name, StringTable &attributes)
virtual void close ()
virtual void start ()
virtual void pushEvent ()
virtual void init (StringTable &attributes, ConfigNode *localTree)

Protected Member Functions

void run ()

Protected Attributes

NodeVector sources
int fd
int stop

Detailed Description

Definition at line 86 of file LinmouseModule.h.

Constructor & Destructor Documentation

ot::LinmouseModule::LinmouseModule (  ) 

constructor method.

virtual ot::LinmouseModule::~LinmouseModule (  )  [virtual]

Destructor method, clears nodes member.

Member Function Documentation

virtual void ot::LinmouseModule::close (  )  [virtual]

closes the X keyboard source

Reimplemented from ot::ThreadModule.

virtual Node* ot::LinmouseModule::createNode ( const std::string &  name,
StringTable attributes 
) [virtual]

This method is called to construct a new Node.

It compares name to the TargusSource element name, and if it matches creates a new TargusSource node.

name reference to string containing element name refenrence to StringTable containing attribute values
pointer to new Node or NULL. The new Node must be allocated with new !

Implements ot::NodeFactory.

virtual void ot::LinmouseModule::init ( StringTable attributes,
ConfigNode localTree 
) [virtual]

initializes the LinmouseModule.

attributes StringMap of elements attribute values. Should be possibly , but is not for convenience.
localTree pointer to root of configuration nodes tree

Reimplemented from ot::Module.

virtual void ot::LinmouseModule::pushEvent (  )  [virtual]

pushes events into the tracker tree.

Checks all TargusSources and pushes new events, if a TargusSource fires. The events store structure with position and status of the buttons.

Reimplemented from ot::Module.

void ot::LinmouseModule::run (  )  [protected, virtual]


Reimplemented from ot::ThreadModule.

virtual void ot::LinmouseModule::start (  )  [virtual]

opens the X keyboard source

Reimplemented from ot::ThreadModule.

Member Data Documentation

int ot::LinmouseModule::fd [protected]

Definition at line 94 of file LinmouseModule.h.

list of LinmouseSource nodes in the tree

Definition at line 91 of file LinmouseModule.h.

int ot::LinmouseModule::stop [protected]

Definition at line 96 of file LinmouseModule.h.

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

copyright (c) 2006 Graz University of Technology