TwiceAsNice
2019-02-18
|
Public Member Functions | |
FakeIoDevice (const Nice::JointPtr &_config) | |
virtual void | open () |
open device More... | |
unsigned | getInvocationCount_open () |
virtual void | close () |
close device More... | |
virtual bool | isReachable () |
reachability More... | |
unsigned | getInvocationCount_close () |
virtual void | reset (Basda::DeviceAsync &) |
reset the device More... | |
virtual void | version () |
version More... | |
virtual void | init (Basda::DeviceAsync &) |
init the device More... | |
unsigned | getInvocationCount_init () |
virtual void | deinit (Basda::DeviceAsync &) |
deinit the device More... | |
unsigned | getInvocationCount_deinit () |
virtual void | activate (Basda::DeviceAsync &) |
activate the device More... | |
unsigned | getInvocationCount_activate () |
virtual void | deactivate (Basda::DeviceAsync &) |
deactivate the device More... | |
unsigned | getInvocationCount_deactivate () |
virtual std::vector< double > | read () |
read from the device all ports. More... | |
unsigned | getInvocationCount_read () |
void | write (std::vector< double >) |
virtual Basda::AnalogIODevice::PortState | readOutputPort (int) |
virtual void | setOutputPort (int, enum AnalogIODevice::PortState) |
virtual Nice::JointPtrVector | description () |
read description More... | |
FakeIoDevice (const Nice::JointPtr &_config) | |
virtual void | open () |
open device More... | |
unsigned | getInvocationCount_open () |
virtual void | close () |
close device More... | |
virtual bool | isReachable () |
reachability More... | |
unsigned | getInvocationCount_close () |
virtual void | reset (Basda::DeviceAsync &) |
reset the device More... | |
virtual void | version () |
version More... | |
virtual void | init (Basda::DeviceAsync &) |
init the device More... | |
unsigned | getInvocationCount_init () |
virtual void | deinit (Basda::DeviceAsync &) |
deinit the device More... | |
unsigned | getInvocationCount_deinit () |
virtual void | activate (Basda::DeviceAsync &) |
activate the device More... | |
unsigned | getInvocationCount_activate () |
virtual void | deactivate (Basda::DeviceAsync &) |
deactivate the device More... | |
unsigned | getInvocationCount_deactivate () |
virtual std::vector< double > | read () |
read from the device all ports. More... | |
unsigned | getInvocationCount_read () |
void | write (std::vector< double >) |
virtual Basda::AnalogIODevice::PortState | readOutputPort (int) |
virtual void | setOutputPort (int, enum AnalogIODevice::PortState) |
virtual Nice::JointPtrVector | description () |
read description More... | |
![]() | |
AnalogIODevice (const Nice::JointPtr &_config) | |
virtual void | setOutputPort (int portIndex, enum PortState desiredState)=0 |
AnalogIODevice (const Nice::JointPtr &_config) | |
virtual void | setOutputPort (int portIndex, enum PortState desiredState)=0 |
AnalogIODevice (const Nice::JointPtr &_config) | |
virtual void | setOutputPort (int portIndex, enum PortState desiredState)=0 |
![]() | |
Device (const Nice::JointPtr &_config) | |
constructor. This is an elementary (lazy) action which stores the name and gets configuration. More... | |
virtual | ~Device () |
destructor Does nothing More... | |
virtual void | setConfig (const Nice::JointPtr &_config) |
init with config tree ptr More... | |
Nice::JointPtr & | config () |
retrieve the property tree More... | |
std::string & | name () |
retrieve the name set at ctor time. More... | |
Device (const Nice::JointPtr &_config) | |
constructor. This is an elementary (lazy) action which stores the name and gets configuration. More... | |
virtual | ~Device () |
destructor Does nothing More... | |
virtual void | setConfig (const Nice::JointPtr &_config) |
init with config tree ptr More... | |
Nice::JointPtr & | config () |
retrieve the property tree More... | |
std::string & | name () |
retrieve the name set at ctor time. More... | |
Private Attributes | |
unsigned | initCount_ |
unsigned | openCount_ |
unsigned | closeCount_ |
unsigned | deinitCount_ |
unsigned | activateCount_ |
unsigned | deactivateCount_ |
unsigned | readCount_ |
Additional Inherited Members | |
![]() | |
enum | PortState { PORT_STATE_OFF = 0, PORT_STATE_ON = 1, PORT_STATE_UNKNOWN = -1, PORT_STATE_OFF = 0, PORT_STATE_ON = 1, PORT_STATE_UNKNOWN = -1, PORT_STATE_OFF = 0, PORT_STATE_ON = 1, PORT_STATE_UNKNOWN = -1 } |
enum | PortState { PORT_STATE_OFF = 0, PORT_STATE_ON = 1, PORT_STATE_UNKNOWN = -1, PORT_STATE_OFF = 0, PORT_STATE_ON = 1, PORT_STATE_UNKNOWN = -1, PORT_STATE_OFF = 0, PORT_STATE_ON = 1, PORT_STATE_UNKNOWN = -1 } |
enum | PortState { PORT_STATE_OFF = 0, PORT_STATE_ON = 1, PORT_STATE_UNKNOWN = -1, PORT_STATE_OFF = 0, PORT_STATE_ON = 1, PORT_STATE_UNKNOWN = -1, PORT_STATE_OFF = 0, PORT_STATE_ON = 1, PORT_STATE_UNKNOWN = -1 } |
![]() | |
static DeviceAsyncImpl | s_async |
![]() | |
Nice::JointPtr | m_config |
Nice::JointPtr | m_cfg |
Nice::JointPtr | m_var |
std::string | m_name |
|
inline |
|
inline |
|
inlinevirtual |
activate the device
Implements Basda::Device.
|
inlinevirtual |
activate the device
Implements Basda::Device.
|
inlinevirtual |
close device
Implements Basda::Device.
|
inlinevirtual |
close device
Implements Basda::Device.
|
inlinevirtual |
deactivate the device
Implements Basda::Device.
|
inlinevirtual |
deactivate the device
Implements Basda::Device.
|
inlinevirtual |
deinit the device
Implements Basda::Device.
|
inlinevirtual |
deinit the device
Implements Basda::Device.
|
inlinevirtual |
read description
Implements Basda::AnalogIODevice.
|
inlinevirtual |
read description
Implements Basda::AnalogIODevice.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
init the device
Implements Basda::Device.
|
inlinevirtual |
init the device
Implements Basda::Device.
|
inlinevirtual |
reachability
Implements Basda::AnalogIODevice.
|
inlinevirtual |
reachability
Implements Basda::AnalogIODevice.
|
inlinevirtual |
open device
Implements Basda::Device.
|
inlinevirtual |
open device
Implements Basda::Device.
|
inlinevirtual |
read from the device all ports.
Implements Basda::AnalogIODevice.
|
inlinevirtual |
read from the device all ports.
Implements Basda::AnalogIODevice.
|
inlinevirtual |
Implements Basda::AnalogIODevice.
|
inlinevirtual |
Implements Basda::AnalogIODevice.
|
inlinevirtual |
reset the device
Implements Basda::Device.
|
inlinevirtual |
reset the device
Implements Basda::Device.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
version
Implements Basda::Device.
|
inlinevirtual |
version
Implements Basda::Device.
|
inlinevirtual |
Implements Basda::AnalogIODevice.
|
inlinevirtual |
Implements Basda::AnalogIODevice.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |