TwiceAsNice  2019-02-18
Public Types | Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
Basda::Tempo::PfeifferDualGaugeDevice Class Reference

#include <PfeifferDualGaugeDevice.h>

Inheritance diagram for Basda::Tempo::PfeifferDualGaugeDevice:
Inheritance graph
Collaboration diagram for Basda::Tempo::PfeifferDualGaugeDevice:
Collaboration graph

Public Types

typedef ::Basda::DeviceAsync DeviceAsync
 
typedef ::Basda::DeviceAsync DeviceAsync
 

Public Member Functions

 PfeifferDualGaugeDevice (const Nice::JointPtr &config)
 
virtual ~PfeifferDualGaugeDevice ()
 
virtual void open (void)
 function to open the connection to the device. More...
 
virtual void close (void)
 function to close the connection to the device. More...
 
virtual void reset (DeviceAsync &=::Basda::Device::s_async)
 function to reset the device. More...
 
virtual void init (DeviceAsync &=Basda::Device::s_async)
 function to init the device. More...
 
virtual void deinit (DeviceAsync &=::Basda::Device::s_async)
 function to deinit the device. More...
 
virtual void activate (DeviceAsync &=::Basda::Device::s_async)
 activate the device More...
 
virtual void deactivate (DeviceAsync &=::Basda::Device::s_async)
 deactivate the device More...
 
virtual void updateProperties ()
 
virtual void version ()
 return the library version More...
 
virtual Nice::JointPtrVectordescription (void)
 function to read the description More...
 
virtual bool isReachable ()
 function to check wheter the device is reachable or not More...
 
virtual double getSensorData (int sensorID)
 
virtual std::vector< double > getAllData ()
 
 PfeifferDualGaugeDevice (const Nice::JointPtr &config)
 
virtual ~PfeifferDualGaugeDevice ()
 
virtual void open (void)
 function to open the connection to the device. More...
 
virtual void close (void)
 function to close the connection to the device. More...
 
virtual void reset (DeviceAsync &=::Basda::Device::s_async)
 function to reset the device. More...
 
virtual void init (DeviceAsync &=Basda::Device::s_async)
 function to init the device. More...
 
virtual void deinit (DeviceAsync &=::Basda::Device::s_async)
 function to deinit the device. More...
 
virtual void activate (DeviceAsync &=::Basda::Device::s_async)
 activate the device More...
 
virtual void deactivate (DeviceAsync &=::Basda::Device::s_async)
 deactivate the device More...
 
virtual void updateProperties ()
 
virtual void version ()
 return the library version More...
 
virtual Nice::JointPtrVectordescription (void)
 function to read the description More...
 
virtual bool isReachable ()
 function to check wheter the device is reachable or not More...
 
virtual double getSensorData (int sensorID)
 
virtual std::vector< double > getAllData ()
 
- Public Member Functions inherited from Basda::Tempo::MonitorDevice
 MonitorDevice (const Nice::JointPtr &config)
 
virtual ~MonitorDevice ()
 
 MonitorDevice (const Nice::JointPtr &config)
 
virtual ~MonitorDevice ()
 
 MonitorDevice (const Nice::JointPtr &config)
 
virtual ~MonitorDevice ()
 
- Public Member Functions inherited from Basda::Tempo::TempoDevice
 TempoDevice (const Nice::JointPtr &config)
 
virtual ~TempoDevice ()
 
 TempoDevice (const Nice::JointPtr &config)
 
virtual ~TempoDevice ()
 
 TempoDevice (const Nice::JointPtr &config)
 
virtual ~TempoDevice ()
 
- 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...
 

Protected Attributes

Nice::JointPtrVector m_partNodes
 
gaugeSensorVector m_sensor
 vector containing the data of the different inputs More...
 
gaugeSwitchVector m_switch
 vector containing the data of the switching functions More...
 
- Protected Attributes inherited from Basda::Device
Nice::JointPtr m_config
 
Nice::JointPtr m_cfg
 
Nice::JointPtr m_var
 
std::string m_name
 

Private Member Functions

std::string getGaugeStatusText (int status)
 
void getSwitchData (gaugeSwitchVector &gswitch)
 
void getInputData (gaugeSensorVector &ginput)
 
void setReachable (const bool state)
 function to set the reachable flag More...
 
void setPropertiesToUnknown ()
 
void handleErrors ()
 
std::string getGaugeStatusText (int status)
 
void getSwitchData (gaugeSwitchVector &gswitch)
 
void getInputData (gaugeSensorVector &ginput)
 
void setReachable (const bool state)
 function to set the reachable flag More...
 
void setPropertiesToUnknown ()
 
void handleErrors ()
 

Private Attributes

Basda::Tempo::PfeifferDualGaugeTPG262Ptr m_pfeiffer
 instance of the Pfeiffer Dual Gauge driver class More...
 
std::string m_connection
 stores the connection address of the device currently connected to More...
 
IceUtil::RecMutex m_syncMutex
 
bool m_isReachable
 reachable flag More...
 
Nice::Time m_logFreq
 
Nice::Timer m_logUpdate
 

Additional Inherited Members

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

Detailed Description


Author
trowitzsch
Since
2011–09-01

Member Typedef Documentation

◆ DeviceAsync [1/2]

◆ DeviceAsync [2/2]

Constructor & Destructor Documentation

◆ PfeifferDualGaugeDevice() [1/2]

Basda::Tempo::PfeifferDualGaugeDevice::PfeifferDualGaugeDevice ( const Nice::JointPtr config)

◆ ~PfeifferDualGaugeDevice() [1/2]

Basda::Tempo::PfeifferDualGaugeDevice::~PfeifferDualGaugeDevice ( )
virtual

◆ PfeifferDualGaugeDevice() [2/2]

Basda::Tempo::PfeifferDualGaugeDevice::PfeifferDualGaugeDevice ( const Nice::JointPtr config)

◆ ~PfeifferDualGaugeDevice() [2/2]

virtual Basda::Tempo::PfeifferDualGaugeDevice::~PfeifferDualGaugeDevice ( )
virtual

Member Function Documentation

◆ activate() [1/2]

virtual void Basda::Tempo::PfeifferDualGaugeDevice::activate ( DeviceAsync = ::Basda::Device::s_async)
inlinevirtual

activate the device

Implements Basda::Device.

◆ activate() [2/2]

virtual void Basda::Tempo::PfeifferDualGaugeDevice::activate ( DeviceAsync = ::Basda::Device::s_async)
inlinevirtual

activate the device

Implements Basda::Device.

◆ close() [1/2]

virtual void Basda::Tempo::PfeifferDualGaugeDevice::close ( void  )
virtual

function to close the connection to the device.

Implements Basda::Device.

◆ close() [2/2]

void Basda::Tempo::PfeifferDualGaugeDevice::close ( void  )
virtual

function to close the connection to the device.

Implements Basda::Device.

◆ deactivate() [1/2]

virtual void Basda::Tempo::PfeifferDualGaugeDevice::deactivate ( DeviceAsync = ::Basda::Device::s_async)
inlinevirtual

deactivate the device

Implements Basda::Device.

◆ deactivate() [2/2]

virtual void Basda::Tempo::PfeifferDualGaugeDevice::deactivate ( DeviceAsync = ::Basda::Device::s_async)
inlinevirtual

deactivate the device

Implements Basda::Device.

◆ deinit() [1/2]

void Basda::Tempo::PfeifferDualGaugeDevice::deinit ( DeviceAsync s_async = ::Basda::Device::s_async)
virtual

function to deinit the device.

Implements Basda::Device.

◆ deinit() [2/2]

virtual void Basda::Tempo::PfeifferDualGaugeDevice::deinit ( DeviceAsync = ::Basda::Device::s_async)
virtual

function to deinit the device.

Implements Basda::Device.

◆ description() [1/2]

virtual Nice::JointPtrVector& Basda::Tempo::PfeifferDualGaugeDevice::description ( void  )
inlinevirtual

function to read the description

Returns
vector containing all informations

◆ description() [2/2]

virtual Nice::JointPtrVector& Basda::Tempo::PfeifferDualGaugeDevice::description ( void  )
inlinevirtual

function to read the description

Returns
vector containing all informations

◆ getAllData() [1/2]

virtual std::vector<double> Basda::Tempo::PfeifferDualGaugeDevice::getAllData ( )
virtual

◆ getAllData() [2/2]

std::vector< double > Basda::Tempo::PfeifferDualGaugeDevice::getAllData ( )
virtual

◆ getGaugeStatusText() [1/2]

std::string Basda::Tempo::PfeifferDualGaugeDevice::getGaugeStatusText ( int  status)
private

◆ getGaugeStatusText() [2/2]

std::string Basda::Tempo::PfeifferDualGaugeDevice::getGaugeStatusText ( int  status)
private

◆ getInputData() [1/2]

void Basda::Tempo::PfeifferDualGaugeDevice::getInputData ( gaugeSensorVector ginput)
private

◆ getInputData() [2/2]

void Basda::Tempo::PfeifferDualGaugeDevice::getInputData ( gaugeSensorVector ginput)
private

◆ getSensorData() [1/2]

double Basda::Tempo::PfeifferDualGaugeDevice::getSensorData ( int  sensorID)
virtual

◆ getSensorData() [2/2]

virtual double Basda::Tempo::PfeifferDualGaugeDevice::getSensorData ( int  sensorID)
virtual

◆ getSwitchData() [1/2]

void Basda::Tempo::PfeifferDualGaugeDevice::getSwitchData ( gaugeSwitchVector gswitch)
private

◆ getSwitchData() [2/2]

void Basda::Tempo::PfeifferDualGaugeDevice::getSwitchData ( gaugeSwitchVector gswitch)
private

◆ handleErrors() [1/2]

void Basda::Tempo::PfeifferDualGaugeDevice::handleErrors ( )
private

◆ handleErrors() [2/2]

void Basda::Tempo::PfeifferDualGaugeDevice::handleErrors ( )
private

◆ init() [1/2]

void Basda::Tempo::PfeifferDualGaugeDevice::init ( DeviceAsync s_async = Basda::Device::s_async)
virtual

function to init the device.

Implements Basda::Device.

◆ init() [2/2]

virtual void Basda::Tempo::PfeifferDualGaugeDevice::init ( DeviceAsync = Basda::Device::s_async)
virtual

function to init the device.

Implements Basda::Device.

◆ isReachable() [1/2]

virtual bool Basda::Tempo::PfeifferDualGaugeDevice::isReachable ( )
virtual

function to check wheter the device is reachable or not

Returns
true if reachable, false otherwise

Implements Basda::Tempo::TempoDevice.

◆ isReachable() [2/2]

bool Basda::Tempo::PfeifferDualGaugeDevice::isReachable ( )
virtual

function to check wheter the device is reachable or not

Returns
true if reachable, false otherwise

Implements Basda::Tempo::TempoDevice.

◆ open() [1/2]

void Basda::Tempo::PfeifferDualGaugeDevice::open ( void  )
virtual

function to open the connection to the device.

Implements Basda::Device.

◆ open() [2/2]

virtual void Basda::Tempo::PfeifferDualGaugeDevice::open ( void  )
virtual

function to open the connection to the device.

Implements Basda::Device.

◆ reset() [1/2]

void Basda::Tempo::PfeifferDualGaugeDevice::reset ( DeviceAsync s_async = ::Basda::Device::s_async)
virtual

function to reset the device.

Implements Basda::Device.

◆ reset() [2/2]

virtual void Basda::Tempo::PfeifferDualGaugeDevice::reset ( DeviceAsync = ::Basda::Device::s_async)
virtual

function to reset the device.

Implements Basda::Device.

◆ setPropertiesToUnknown() [1/2]

void Basda::Tempo::PfeifferDualGaugeDevice::setPropertiesToUnknown ( )
private

◆ setPropertiesToUnknown() [2/2]

void Basda::Tempo::PfeifferDualGaugeDevice::setPropertiesToUnknown ( )
private

◆ setReachable() [1/2]

void Basda::Tempo::PfeifferDualGaugeDevice::setReachable ( const bool  state)
private

function to set the reachable flag

◆ setReachable() [2/2]

void Basda::Tempo::PfeifferDualGaugeDevice::setReachable ( const bool  state)
private

function to set the reachable flag

◆ updateProperties() [1/2]

virtual void Basda::Tempo::PfeifferDualGaugeDevice::updateProperties ( )
virtual

◆ updateProperties() [2/2]

void Basda::Tempo::PfeifferDualGaugeDevice::updateProperties ( )
virtual

◆ version() [1/2]

virtual void Basda::Tempo::PfeifferDualGaugeDevice::version ( )
virtual

return the library version

Implements Basda::Device.

◆ version() [2/2]

void Basda::Tempo::PfeifferDualGaugeDevice::version ( void  )
virtual

return the library version

Implements Basda::Device.

Member Data Documentation

◆ m_connection

std::string Basda::Tempo::PfeifferDualGaugeDevice::m_connection
private

stores the connection address of the device currently connected to

◆ m_isReachable

bool Basda::Tempo::PfeifferDualGaugeDevice::m_isReachable
private

reachable flag

◆ m_logFreq

Nice::Time Basda::Tempo::PfeifferDualGaugeDevice::m_logFreq
private

◆ m_logUpdate

Nice::Timer Basda::Tempo::PfeifferDualGaugeDevice::m_logUpdate
private

◆ m_partNodes

Nice::JointPtrVector Basda::Tempo::PfeifferDualGaugeDevice::m_partNodes
protected

◆ m_pfeiffer

Basda::Tempo::PfeifferDualGaugeTPG262Ptr Basda::Tempo::PfeifferDualGaugeDevice::m_pfeiffer
private

instance of the Pfeiffer Dual Gauge driver class

◆ m_sensor

gaugeSensorVector Basda::Tempo::PfeifferDualGaugeDevice::m_sensor
protected

vector containing the data of the different inputs

◆ m_switch

gaugeSwitchVector Basda::Tempo::PfeifferDualGaugeDevice::m_switch
protected

vector containing the data of the switching functions

◆ m_syncMutex

IceUtil::RecMutex Basda::Tempo::PfeifferDualGaugeDevice::m_syncMutex
private

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