TwiceAsNice  2019-02-18
Public Member Functions | Protected Types | Protected Attributes | List of all members
Basda::MoccaTHDevice Class Referenceabstract

This is a specialization of the IO device class. More...

#include <THDevice.h>

Inheritance diagram for Basda::MoccaTHDevice:
Inheritance graph
Collaboration diagram for Basda::MoccaTHDevice:
Collaboration graph

Public Member Functions

 MoccaTHDevice (const Nice::JointPtr &_config)
 Constructor. More...
 
virtual ~MoccaTHDevice ()
 Constructor. More...
 
virtual bool isReachable ()=0
 
virtual void setLinkTimeout (Nice::Time _tcpConnectionTimeout)=0
 
virtual Nice::SeqTime getLinkTimeout ()=0
 
virtual float readTemperature (std::string _sensorName)=0
 
virtual float readHumidity (std::string _sensorName)=0
 
virtual Nice::SeqFloat read (std::string _sensorName)=0
 
 MoccaTHDevice (const Nice::JointPtr &_config)
 Constructor. More...
 
virtual ~MoccaTHDevice ()
 Constructor. More...
 
virtual bool isReachable ()=0
 
virtual void setLinkTimeout (Nice::Time _tcpConnectionTimeout)=0
 
virtual Nice::SeqTime getLinkTimeout ()=0
 
virtual float readTemperature (std::string _sensorName)=0
 
virtual float readHumidity (std::string _sensorName)=0
 
virtual Nice::SeqFloat read (std::string _sensorName)=0
 
 MoccaTHDevice (const Nice::JointPtr &_config)
 Constructor. More...
 
virtual ~MoccaTHDevice ()
 Constructor. More...
 
virtual bool isReachable ()=0
 
virtual void setLinkTimeout (Nice::Time _tcpConnectionTimeout)=0
 
virtual Nice::SeqTime getLinkTimeout ()=0
 
virtual float readTemperature (std::string _sensorName)=0
 
virtual float readHumidity (std::string _sensorName)=0
 
virtual Nice::SeqFloat read (std::string _sensorName)=0
 
- Public Member Functions inherited from Basda::Tempo::TempoDevice
 TempoDevice (const Nice::JointPtr &config)
 
virtual ~TempoDevice ()
 
virtual void updateProperties ()=0
 
 TempoDevice (const Nice::JointPtr &config)
 
virtual ~TempoDevice ()
 
virtual void updateProperties ()=0
 
 TempoDevice (const Nice::JointPtr &config)
 
virtual ~TempoDevice ()
 
virtual void updateProperties ()=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...
 
virtual void open ()=0
 open device More...
 
virtual void close ()=0
 close device More...
 
virtual void reset (DeviceAsync &=s_async)=0
 reset the device More...
 
virtual void version ()=0
 version More...
 
virtual void init (DeviceAsync &=s_async)=0
 init the device More...
 
virtual void deinit (DeviceAsync &=s_async)=0
 deinit the device More...
 
virtual void activate (DeviceAsync &=s_async)=0
 activate the device More...
 
virtual void deactivate (DeviceAsync &=s_async)=0
 deactivate the device 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...
 
virtual void open ()=0
 open device More...
 
virtual void close ()=0
 close device More...
 
virtual void reset (DeviceAsync &=s_async)=0
 reset the device More...
 
virtual void version ()=0
 version More...
 
virtual void init (DeviceAsync &=s_async)=0
 init the device More...
 
virtual void deinit (DeviceAsync &=s_async)=0
 deinit the device More...
 
virtual void activate (DeviceAsync &=s_async)=0
 activate the device More...
 
virtual void deactivate (DeviceAsync &=s_async)=0
 deactivate the device More...
 

Protected Types

enum  CMDS {
  OPEN, CLOSE, RESET, INIT,
  DEINIT, ACTIVATE, DEACTIVATE, READ,
  WRITE, READOUTPUTPORT, SETOUTPUTPORT, OPEN,
  CLOSE, RESET, INIT, DEINIT,
  ACTIVATE, DEACTIVATE, READ, WRITE,
  READOUTPUTPORT, SETOUTPUTPORT, OPEN, CLOSE,
  RESET, INIT, DEINIT, ACTIVATE,
  DEACTIVATE, READ, WRITE, READOUTPUTPORT,
  SETOUTPUTPORT
}
 
enum  CMDS {
  OPEN, CLOSE, RESET, INIT,
  DEINIT, ACTIVATE, DEACTIVATE, READ,
  WRITE, READOUTPUTPORT, SETOUTPUTPORT, OPEN,
  CLOSE, RESET, INIT, DEINIT,
  ACTIVATE, DEACTIVATE, READ, WRITE,
  READOUTPUTPORT, SETOUTPUTPORT, OPEN, CLOSE,
  RESET, INIT, DEINIT, ACTIVATE,
  DEACTIVATE, READ, WRITE, READOUTPUTPORT,
  SETOUTPUTPORT
}
 
enum  CMDS {
  OPEN, CLOSE, RESET, INIT,
  DEINIT, ACTIVATE, DEACTIVATE, READ,
  WRITE, READOUTPUTPORT, SETOUTPUTPORT, OPEN,
  CLOSE, RESET, INIT, DEINIT,
  ACTIVATE, DEACTIVATE, READ, WRITE,
  READOUTPUTPORT, SETOUTPUTPORT, OPEN, CLOSE,
  RESET, INIT, DEINIT, ACTIVATE,
  DEACTIVATE, READ, WRITE, READOUTPUTPORT,
  SETOUTPUTPORT
}
 

Protected Attributes

Nice::Completion m_completion
 
- Protected Attributes inherited from Basda::Device
Nice::JointPtr m_config
 
Nice::JointPtr m_cfg
 
Nice::JointPtr m_var
 
std::string m_name
 

Additional Inherited Members

- Static Public Attributes inherited from Basda::Device
static DeviceAsyncImpl s_async
 

Detailed Description

This is a specialization of the IO device class.

Author
Frank Kittmann
Version
02.12.14
Date
2014.12.02

Member Enumeration Documentation

◆ CMDS [1/3]

Enumerator
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 

◆ CMDS [2/3]

Enumerator
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 

◆ CMDS [3/3]

Enumerator
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 
OPEN 
CLOSE 
RESET 
INIT 
DEINIT 
ACTIVATE 
DEACTIVATE 
READ 
WRITE 
READOUTPUTPORT 
SETOUTPUTPORT 

Constructor & Destructor Documentation

◆ MoccaTHDevice() [1/3]

Basda::MoccaTHDevice::MoccaTHDevice ( const Nice::JointPtr _config)
inline

Constructor.

Parameters
_configthe root of the configuration tree

◆ ~MoccaTHDevice() [1/3]

virtual Basda::MoccaTHDevice::~MoccaTHDevice ( )
inlinevirtual

Constructor.

◆ MoccaTHDevice() [2/3]

Basda::MoccaTHDevice::MoccaTHDevice ( const Nice::JointPtr _config)
inline

Constructor.

Parameters
_configthe root of the configuration tree

◆ ~MoccaTHDevice() [2/3]

virtual Basda::MoccaTHDevice::~MoccaTHDevice ( )
inlinevirtual

Constructor.

◆ MoccaTHDevice() [3/3]

Basda::MoccaTHDevice::MoccaTHDevice ( const Nice::JointPtr _config)
inline

Constructor.

Parameters
_configthe root of the configuration tree

◆ ~MoccaTHDevice() [3/3]

virtual Basda::MoccaTHDevice::~MoccaTHDevice ( )
inlinevirtual

Constructor.

Member Function Documentation

◆ getLinkTimeout() [1/3]

virtual Nice::SeqTime Basda::MoccaTHDevice::getLinkTimeout ( )
pure virtual

◆ getLinkTimeout() [2/3]

virtual Nice::SeqTime Basda::MoccaTHDevice::getLinkTimeout ( )
pure virtual

◆ getLinkTimeout() [3/3]

virtual Nice::SeqTime Basda::MoccaTHDevice::getLinkTimeout ( )
pure virtual

◆ isReachable() [1/3]

virtual bool Basda::MoccaTHDevice::isReachable ( )
pure virtual

◆ isReachable() [2/3]

virtual bool Basda::MoccaTHDevice::isReachable ( )
pure virtual

◆ isReachable() [3/3]

virtual bool Basda::MoccaTHDevice::isReachable ( )
pure virtual

◆ read() [1/3]

virtual Nice::SeqFloat Basda::MoccaTHDevice::read ( std::string  _sensorName)
pure virtual

◆ read() [2/3]

virtual Nice::SeqFloat Basda::MoccaTHDevice::read ( std::string  _sensorName)
pure virtual

◆ read() [3/3]

virtual Nice::SeqFloat Basda::MoccaTHDevice::read ( std::string  _sensorName)
pure virtual

◆ readHumidity() [1/3]

virtual float Basda::MoccaTHDevice::readHumidity ( std::string  _sensorName)
pure virtual

◆ readHumidity() [2/3]

virtual float Basda::MoccaTHDevice::readHumidity ( std::string  _sensorName)
pure virtual

◆ readHumidity() [3/3]

virtual float Basda::MoccaTHDevice::readHumidity ( std::string  _sensorName)
pure virtual

◆ readTemperature() [1/3]

virtual float Basda::MoccaTHDevice::readTemperature ( std::string  _sensorName)
pure virtual

◆ readTemperature() [2/3]

virtual float Basda::MoccaTHDevice::readTemperature ( std::string  _sensorName)
pure virtual

◆ readTemperature() [3/3]

virtual float Basda::MoccaTHDevice::readTemperature ( std::string  _sensorName)
pure virtual

◆ setLinkTimeout() [1/3]

virtual void Basda::MoccaTHDevice::setLinkTimeout ( Nice::Time  _tcpConnectionTimeout)
pure virtual

◆ setLinkTimeout() [2/3]

virtual void Basda::MoccaTHDevice::setLinkTimeout ( Nice::Time  _tcpConnectionTimeout)
pure virtual

◆ setLinkTimeout() [3/3]

virtual void Basda::MoccaTHDevice::setLinkTimeout ( Nice::Time  _tcpConnectionTimeout)
pure virtual

Member Data Documentation

◆ m_completion

Nice::Completion Basda::MoccaTHDevice::m_completion
protected

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