glove::devices::local::LocalDeviceManager Class Reference

#include <LocalDeviceManager.hpp>

List of all members.

Public Member Functions

 LocalDeviceManager (const std::string &config)
virtual ~LocalDeviceManager ()
const std::string & getType (const std::string &key)
const std::string & getType (const int key)

Protected Member Functions

LocalDevicecreateDevice (std::map< std::string, std::string > &parameters)


Detailed Description

This class stores and manages generic Devices.

Author:
Christian Wressnegger
Date:
2009-2010

Constructor & Destructor Documentation

glove::devices::local::LocalDeviceManager::LocalDeviceManager ( const std::string &  config  ) 

The constructor.

Parameters:
config The configuration file that specifies the available hardware. The format of that file is as follows:
 [<name>]
 type = <type>
        <type> might be one of (only one supported up to know):
          - cyberglove
          - ...
 device = <device>

whereas the angle brackets indicate properties and don't appear in the output as such.

virtual glove::devices::local::LocalDeviceManager::~LocalDeviceManager (  )  [virtual]

The destructor.


Member Function Documentation

LocalDevice* glove::devices::local::LocalDeviceManager::createDevice ( std::map< std::string, std::string > &  parameters  )  [protected]

Creates a LocalDevice according to the provided parameters. This function never throws an exception.

Parameters:
parameters The parameters the LocalDevice is going to be base on.
Returns:
The newly created LocalDevice.

const std::string& glove::devices::local::LocalDeviceManager::getType ( const int  key  ) 

Returns the type of the Device with the given id.

Exceptions:
std::invalid_argument If there is not Device with the given id.
Returns:
The type of the Device with the given id.

const std::string& glove::devices::local::LocalDeviceManager::getType ( const std::string &  key  ) 

Returns the type of the Device with the given key.

Exceptions:
std::invalid_argument If there is not Device with the given key.
Returns:
The type of the Device with the given key.


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

Generated on Thu Feb 4 12:36:54 2010 for libglove by  doxygen 1.5.8