This class implements a base class for all devices of the Pattern library.
More...
#include <PatternDevice.h>
|
virtual const std::string & | library () const |
| Returns the name of the owner library.
|
|
const std::string & | name () const |
| Returns the name of this device.
|
|
virtual bool | isStarted () const |
| Returns whether this device is active.
|
|
bool | isValid () const |
| Returns whether this device is valid.
|
|
bool | isExclusive () const |
| Returns whether this device can be use exclusively.
|
|
virtual bool | start () |
| Starts the device.
|
|
virtual bool | pause () |
| Pauses the device.
|
|
virtual bool | stop () |
| Stops the device.
|
|
virtual bool | setParameter (const std::string ¶meter, const Value &value) |
| Sets an abstract parameter of this device.
|
|
virtual bool | parameter (const std::string ¶meter, Value &value) |
| Returns an abstract parameter of this device.
|
|
DeviceType | type () const |
| Returns the major and minor type of this device.
|
|
This class implements a base class for all devices of the Pattern library.
◆ PatternDevice()
Ocean::Devices::Pattern::PatternDevice::PatternDevice |
( |
const std::string & |
name, |
|
|
const DeviceType |
type |
|
) |
| |
|
protected |
Creates a new device by is name.
- Parameters
-
name | The name of the device |
type | Major and minor device type of the device |
◆ library()
virtual const std::string & Ocean::Devices::Pattern::PatternDevice::library |
( |
| ) |
const |
|
virtual |
The documentation for this class was generated from the following file: