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

#include <UnimodDevice.h>

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

Public Types

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

Public Member Functions

 UnimodDevice (const Nice::JointPtr &config)
 
virtual ~UnimodDevice ()
 
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 bool isReachable ()
 function to check whether the device is reachable or not More...
 
void setReachable (const bool state)
 
void queryDataFromUnimod ()
 
 UnimodDevice (const Nice::JointPtr &config)
 
virtual ~UnimodDevice ()
 
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 bool isReachable ()
 function to check whether the device is reachable or not More...
 
void setReachable (const bool state)
 
void queryDataFromUnimod ()
 
- 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...
 

Private Member Functions

void setPropertiesToUnknown ()
 
void handleErrors ()
 
void doLog ()
 work-around method for logging data into a file at a certain rate More...
 
void setPropertiesToUnknown ()
 
void handleErrors ()
 
void doLog ()
 work-around method for logging data into a file at a certain rate More...
 

Private Attributes

std::string m_connection
 stores the connection address of the device currently connected to More...
 
IceUtil::RecMutex m_syncMutex
 
std::fstream m_log
 
std::string m_logFile
 
bool m_isLogging
 
Nice::Time m_logFreq
 
Nice::Timer m_logUpdate
 
std::string m_logZabHost
 
std::string m_logZabHostIP
 
bool m_isReachable
 reachable flag More...
 

Additional Inherited Members

- 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
 

Member Typedef Documentation

◆ DeviceAsync [1/2]

◆ DeviceAsync [2/2]

Constructor & Destructor Documentation

◆ UnimodDevice() [1/2]

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

◆ ~UnimodDevice() [1/2]

Basda::Tempo::UnimodDevice::~UnimodDevice ( )
virtual

◆ UnimodDevice() [2/2]

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

◆ ~UnimodDevice() [2/2]

virtual Basda::Tempo::UnimodDevice::~UnimodDevice ( )
virtual

Member Function Documentation

◆ activate() [1/2]

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

activate the device

Implements Basda::Device.

◆ activate() [2/2]

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

activate the device

Implements Basda::Device.

◆ close() [1/2]

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

function to close the connection to the device.

Implements Basda::Device.

◆ close() [2/2]

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

function to close the connection to the device.

Implements Basda::Device.

◆ deactivate() [1/2]

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

deactivate the device

Implements Basda::Device.

◆ deactivate() [2/2]

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

deactivate the device

Implements Basda::Device.

◆ deinit() [1/2]

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

function to deinit the device.

Implements Basda::Device.

◆ deinit() [2/2]

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

function to deinit the device.

Implements Basda::Device.

◆ doLog() [1/2]

void Basda::Tempo::UnimodDevice::doLog ( )
private

work-around method for logging data into a file at a certain rate

◆ doLog() [2/2]

void Basda::Tempo::UnimodDevice::doLog ( )
private

work-around method for logging data into a file at a certain rate

◆ handleErrors() [1/2]

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

◆ handleErrors() [2/2]

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

◆ init() [1/2]

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

function to init the device.

Implements Basda::Device.

◆ init() [2/2]

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

function to init the device.

Implements Basda::Device.

◆ isReachable() [1/2]

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

function to check whether the device is reachable or not

Returns
true if reachable, false otherwise

Implements Basda::Tempo::TempoDevice.

◆ isReachable() [2/2]

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

function to check whether the device is reachable or not

Returns
true if reachable, false otherwise

Implements Basda::Tempo::TempoDevice.

◆ open() [1/2]

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

function to open the connection to the device.

Implements Basda::Device.

◆ open() [2/2]

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

function to open the connection to the device.

Implements Basda::Device.

◆ queryDataFromUnimod() [1/2]

void Basda::Tempo::UnimodDevice::queryDataFromUnimod ( )

◆ queryDataFromUnimod() [2/2]

void Basda::Tempo::UnimodDevice::queryDataFromUnimod ( )

◆ reset() [1/2]

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

function to reset the device.

Implements Basda::Device.

◆ reset() [2/2]

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

function to reset the device.

Implements Basda::Device.

◆ setPropertiesToUnknown() [1/2]

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

◆ setPropertiesToUnknown() [2/2]

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

◆ setReachable() [1/2]

void Basda::Tempo::UnimodDevice::setReachable ( const bool  state)

◆ setReachable() [2/2]

void Basda::Tempo::UnimodDevice::setReachable ( const bool  state)

◆ updateProperties() [1/2]

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

◆ updateProperties() [2/2]

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

◆ version() [1/2]

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

return the library version

Implements Basda::Device.

◆ version() [2/2]

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

return the library version

Implements Basda::Device.

Member Data Documentation

◆ m_connection

std::string Basda::Tempo::UnimodDevice::m_connection
private

stores the connection address of the device currently connected to

◆ m_isLogging

bool Basda::Tempo::UnimodDevice::m_isLogging
private

◆ m_isReachable

bool Basda::Tempo::UnimodDevice::m_isReachable
private

reachable flag

◆ m_log

std::fstream Basda::Tempo::UnimodDevice::m_log
private

◆ m_logFile

std::string Basda::Tempo::UnimodDevice::m_logFile
private

◆ m_logFreq

Nice::Time Basda::Tempo::UnimodDevice::m_logFreq
private

◆ m_logUpdate

Nice::Timer Basda::Tempo::UnimodDevice::m_logUpdate
private

◆ m_logZabHost

std::string Basda::Tempo::UnimodDevice::m_logZabHost
private

◆ m_logZabHostIP

std::string Basda::Tempo::UnimodDevice::m_logZabHostIP
private

◆ m_syncMutex

IceUtil::RecMutex Basda::Tempo::UnimodDevice::m_syncMutex
private

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