#include <Device.hpp>

Public Member Functions | |
| Device () | |
| virtual | ~Device () |
| virtual bool | connect ()=0 |
| virtual bool | disconnect ()=0 |
| virtual bool | isConnected ()=0 |
| virtual const std::string & | getTypeIdentifier () const =0 |
| virtual std::string | toString ()=0 |
| const std::string & | getError () |
Protected Member Functions | |
| void | setError (const std::string &e) |
| void | resetErrorState () |
Protected Attributes | |
| std::string | errorStr |
| glove::devices::Device::Device | ( | ) |
The default constructor.
| virtual glove::devices::Device::~Device | ( | ) | [virtual] |
The destructor.
| virtual bool glove::devices::Device::connect | ( | ) | [pure virtual] |
Connects this Device
Implemented in glove::devices::local::LocalCyberGlove, glove::devices::remote::RemoteCyberGlove, and glove::devices::remote::RemoteDevice.
| virtual bool glove::devices::Device::disconnect | ( | ) | [pure virtual] |
Disconnects this Device
Implemented in glove::devices::local::LocalCyberGlove, glove::devices::remote::RemoteCyberGlove, and glove::devices::remote::RemoteDevice.
| const std::string& glove::devices::Device::getError | ( | ) |
Returns the human-readable description of the error occurred during the call to a function of this object.
| virtual const std::string& glove::devices::Device::getTypeIdentifier | ( | ) | const [pure virtual] |
Returns the type identifier of this Device.
Implemented in glove::devices::CyberGlove, glove::devices::local::LocalCyberGlove, and glove::devices::remote::RemoteCyberGlove.
| virtual bool glove::devices::Device::isConnected | ( | ) | [pure virtual] |
Indicates whether the Device is connected or not.
Implemented in glove::devices::local::LocalCyberGlove, glove::devices::remote::RemoteCyberGlove, and glove::devices::remote::RemoteDevice.
| void glove::devices::Device::resetErrorState | ( | ) | [protected] |
Wipes out the previous error.
| void glove::devices::Device::setError | ( | const std::string & | e | ) | [protected] |
Sets the error string that can be obtained by the getError() function.
| e | The human-readable error string. |
| virtual std::string glove::devices::Device::toString | ( | ) | [pure virtual] |
Returns a human-readable description of this Device.
Implemented in glove::devices::local::LocalCyberGlove, glove::devices::remote::RemoteCyberGlove, and glove::devices::remote::RemoteDevice.
std::string glove::devices::Device::errorStr [protected] |
The error string of the last error.
1.5.8