#include <LocalDeviceManager.hpp>
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 | |
LocalDevice * | createDevice (std::map< std::string, std::string > ¶meters) |
glove::devices::local::LocalDeviceManager::LocalDeviceManager | ( | const std::string & | config | ) |
The constructor.
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.
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 | The parameters the LocalDevice is going to be base on. |
const std::string& glove::devices::local::LocalDeviceManager::getType | ( | const int | key | ) |
const std::string& glove::devices::local::LocalDeviceManager::getType | ( | const std::string & | key | ) |