Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

gadget::InputManager Class Reference

The Input Manager holds an manages all Gadgeteer Input devices. More...

#include <InputManager.h>

List of all members.

Protected Methods

 InputManager ()
 InputManager Constructor. More...

virtual ~InputManager ()
 InputManager Destructor. More...

 InputManager (const gadget::InputManager &obj)
 Constructor is hidden, so no copying is allowed. More...

void operator= (const gadget::InputManager &k)


Detailed Description

The Input Manager holds an manages all Gadgeteer Input devices.

The Input Manager, handles all the details behind organizing the input devices in the library. It provides an API for adding devices by their JCCL config element and deleting them by their element (or just their string name).

Proxies are used to abstract away from the devices so any type and number of devices may be accessed in the same way. These proxies are also set up by config elements and should be accessed by number, rather than name (for speed).

Definition at line 71 of file InputManager.h.


Constructor & Destructor Documentation

gadget::InputManager::InputManager   [protected]
 

InputManager Constructor.

Definition at line 74 of file InputManager.cpp.

00075 {
00076    
00077 }

gadget::InputManager::~InputManager   [protected, virtual]
 

InputManager Destructor.

Definition at line 82 of file InputManager.cpp.

00083 {
00084    for (tDevTableType::iterator a = mDevTable.begin(); a != mDevTable.end(); ++a)    // Stop all devices
00085    {
00086       if ((*a).second != NULL)
00087       {
00088          (*a).second->stopSampling();
00089          delete (*a).second;
00090       }
00091    }
00092 
00093    // Delete all the proxies
00094    for ( std::map<std::string, Proxy*>::iterator j = mProxyTable.begin();
00095          j != mProxyTable.end();
00096          ++j )
00097    {
00098       delete (*j).second;
00099    }
00100 }

gadget::InputManager::InputManager const gadget::InputManager &    obj [inline, protected]
 

Constructor is hidden, so no copying is allowed.

Definition at line 82 of file InputManager.h.

00083       : jccl::ConfigElementHandler(obj)
00084    {
00085       /* Do nothing. */ ;
00086    }


Member Function Documentation

void gadget::InputManager::operator= const gadget::InputManager &    k [inline, protected]
 

Definition at line 88 of file InputManager.h.

00089    {
00090       /* Do nothing. */ ;
00091    }


The documentation for this class was generated from the following files:
Generated on Sun May 2 14:26:53 2004 for Gadgeteer by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002