TwiceAsNice  2019-02-18
Public Member Functions | Private Attributes | List of all members
mpia::FakeIoDevice Class Reference
Inheritance diagram for mpia::FakeIoDevice:
Inheritance graph
Collaboration diagram for mpia::FakeIoDevice:
Collaboration graph

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...
 
- Public Member Functions inherited from Basda::AnalogIODevice
 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
 
- Public Member Functions inherited from Basda::Device
 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::JointPtrconfig ()
 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::JointPtrconfig ()
 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

- Public Types inherited from Basda::AnalogIODevice
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 Public Attributes inherited from Basda::Device
static DeviceAsyncImpl s_async
 
- Protected Attributes inherited from Basda::Device
Nice::JointPtr m_config
 
Nice::JointPtr m_cfg
 
Nice::JointPtr m_var
 
std::string m_name
 

Constructor & Destructor Documentation

◆ FakeIoDevice() [1/2]

mpia::FakeIoDevice::FakeIoDevice ( const Nice::JointPtr _config)
inline

◆ FakeIoDevice() [2/2]

mpia::FakeIoDevice::FakeIoDevice ( const Nice::JointPtr _config)
inline

Member Function Documentation

◆ activate() [1/2]

virtual void mpia::FakeIoDevice::activate ( Basda::DeviceAsync )
inlinevirtual

activate the device

Implements Basda::Device.

◆ activate() [2/2]

virtual void mpia::FakeIoDevice::activate ( Basda::DeviceAsync )
inlinevirtual

activate the device

Implements Basda::Device.

◆ close() [1/2]

virtual void mpia::FakeIoDevice::close ( )
inlinevirtual

close device

Implements Basda::Device.

◆ close() [2/2]

virtual void mpia::FakeIoDevice::close ( )
inlinevirtual

close device

Implements Basda::Device.

◆ deactivate() [1/2]

virtual void mpia::FakeIoDevice::deactivate ( Basda::DeviceAsync )
inlinevirtual

deactivate the device

Implements Basda::Device.

◆ deactivate() [2/2]

virtual void mpia::FakeIoDevice::deactivate ( Basda::DeviceAsync )
inlinevirtual

deactivate the device

Implements Basda::Device.

◆ deinit() [1/2]

virtual void mpia::FakeIoDevice::deinit ( Basda::DeviceAsync )
inlinevirtual

deinit the device

Implements Basda::Device.

◆ deinit() [2/2]

virtual void mpia::FakeIoDevice::deinit ( Basda::DeviceAsync )
inlinevirtual

deinit the device

Implements Basda::Device.

◆ description() [1/2]

virtual Nice::JointPtrVector mpia::FakeIoDevice::description ( )
inlinevirtual

read description

Implements Basda::AnalogIODevice.

◆ description() [2/2]

virtual Nice::JointPtrVector mpia::FakeIoDevice::description ( )
inlinevirtual

read description

Implements Basda::AnalogIODevice.

◆ getInvocationCount_activate() [1/2]

unsigned mpia::FakeIoDevice::getInvocationCount_activate ( )
inline

◆ getInvocationCount_activate() [2/2]

unsigned mpia::FakeIoDevice::getInvocationCount_activate ( )
inline

◆ getInvocationCount_close() [1/2]

unsigned mpia::FakeIoDevice::getInvocationCount_close ( )
inline

◆ getInvocationCount_close() [2/2]

unsigned mpia::FakeIoDevice::getInvocationCount_close ( )
inline

◆ getInvocationCount_deactivate() [1/2]

unsigned mpia::FakeIoDevice::getInvocationCount_deactivate ( )
inline

◆ getInvocationCount_deactivate() [2/2]

unsigned mpia::FakeIoDevice::getInvocationCount_deactivate ( )
inline

◆ getInvocationCount_deinit() [1/2]

unsigned mpia::FakeIoDevice::getInvocationCount_deinit ( )
inline

◆ getInvocationCount_deinit() [2/2]

unsigned mpia::FakeIoDevice::getInvocationCount_deinit ( )
inline

◆ getInvocationCount_init() [1/2]

unsigned mpia::FakeIoDevice::getInvocationCount_init ( )
inline

◆ getInvocationCount_init() [2/2]

unsigned mpia::FakeIoDevice::getInvocationCount_init ( )
inline

◆ getInvocationCount_open() [1/2]

unsigned mpia::FakeIoDevice::getInvocationCount_open ( )
inline

◆ getInvocationCount_open() [2/2]

unsigned mpia::FakeIoDevice::getInvocationCount_open ( )
inline

◆ getInvocationCount_read() [1/2]

unsigned mpia::FakeIoDevice::getInvocationCount_read ( )
inline

◆ getInvocationCount_read() [2/2]

unsigned mpia::FakeIoDevice::getInvocationCount_read ( )
inline

◆ init() [1/2]

virtual void mpia::FakeIoDevice::init ( Basda::DeviceAsync )
inlinevirtual

init the device

Implements Basda::Device.

◆ init() [2/2]

virtual void mpia::FakeIoDevice::init ( Basda::DeviceAsync )
inlinevirtual

init the device

Implements Basda::Device.

◆ isReachable() [1/2]

virtual bool mpia::FakeIoDevice::isReachable ( )
inlinevirtual

reachability

Implements Basda::AnalogIODevice.

◆ isReachable() [2/2]

virtual bool mpia::FakeIoDevice::isReachable ( )
inlinevirtual

reachability

Implements Basda::AnalogIODevice.

◆ open() [1/2]

virtual void mpia::FakeIoDevice::open ( )
inlinevirtual

open device

Implements Basda::Device.

◆ open() [2/2]

virtual void mpia::FakeIoDevice::open ( )
inlinevirtual

open device

Implements Basda::Device.

◆ read() [1/2]

virtual std::vector<double> mpia::FakeIoDevice::read ( )
inlinevirtual

read from the device all ports.

Implements Basda::AnalogIODevice.

◆ read() [2/2]

virtual std::vector<double> mpia::FakeIoDevice::read ( )
inlinevirtual

read from the device all ports.

Implements Basda::AnalogIODevice.

◆ readOutputPort() [1/2]

virtual Basda::AnalogIODevice::PortState mpia::FakeIoDevice::readOutputPort ( int  )
inlinevirtual

Implements Basda::AnalogIODevice.

◆ readOutputPort() [2/2]

virtual Basda::AnalogIODevice::PortState mpia::FakeIoDevice::readOutputPort ( int  )
inlinevirtual

Implements Basda::AnalogIODevice.

◆ reset() [1/2]

virtual void mpia::FakeIoDevice::reset ( Basda::DeviceAsync )
inlinevirtual

reset the device

Implements Basda::Device.

◆ reset() [2/2]

virtual void mpia::FakeIoDevice::reset ( Basda::DeviceAsync )
inlinevirtual

reset the device

Implements Basda::Device.

◆ setOutputPort() [1/2]

virtual void mpia::FakeIoDevice::setOutputPort ( int  ,
enum AnalogIODevice::PortState   
)
inlinevirtual

◆ setOutputPort() [2/2]

virtual void mpia::FakeIoDevice::setOutputPort ( int  ,
enum AnalogIODevice::PortState   
)
inlinevirtual

◆ version() [1/2]

virtual void mpia::FakeIoDevice::version ( )
inlinevirtual

version

Implements Basda::Device.

◆ version() [2/2]

virtual void mpia::FakeIoDevice::version ( )
inlinevirtual

version

Implements Basda::Device.

◆ write() [1/2]

void mpia::FakeIoDevice::write ( std::vector< double >  )
inlinevirtual

Implements Basda::AnalogIODevice.

◆ write() [2/2]

void mpia::FakeIoDevice::write ( std::vector< double >  )
inlinevirtual

Implements Basda::AnalogIODevice.

Member Data Documentation

◆ activateCount_

unsigned mpia::FakeIoDevice::activateCount_
private

◆ closeCount_

unsigned mpia::FakeIoDevice::closeCount_
private

◆ deactivateCount_

unsigned mpia::FakeIoDevice::deactivateCount_
private

◆ deinitCount_

unsigned mpia::FakeIoDevice::deinitCount_
private

◆ initCount_

unsigned mpia::FakeIoDevice::initCount_
private

◆ openCount_

unsigned mpia::FakeIoDevice::openCount_
private

◆ readCount_

unsigned mpia::FakeIoDevice::readCount_
private

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