MotionProxyHelper
Helper library for accessing motors Tango devices
Public Member Functions | Protected Attributes | List of all members
mph::MotionProxyHelper Class Reference
Inheritance diagram for mph::MotionProxyHelper:

Public Member Functions

 MotionProxyHelper (const string sProxyName, const string sDescription, Tango::DeviceImpl *_device) throw (Tango::DevFailed)
 
 MotionProxyHelper (const string sProxyName, const string sDescription, const string sAttributePositionName, const string sCommandStateName, const string sCommandStopName, Tango::DeviceImpl *_device) throw (Tango::DevFailed)
 
virtual void Move (double) throw (Tango::DevFailed)
 
virtual void Stop (void) throw (Tango::DevFailed)
 
virtual void Forward (void) throw (Tango::DevFailed)
 
virtual void Backward (void) throw (Tango::DevFailed)
 
virtual double Read (void) throw (Tango::DevFailed)
 
virtual double ReadW (void) throw (Tango::DevFailed)
 
bool ReadBLSW (void) throw (Tango::DevFailed)
 
bool ReadFLSW (void) throw (Tango::DevFailed)
 
virtual Tango::DevState State (void) throw (Tango::DevFailed)
 return the state of the device More...
 
string Status (void) throw (Tango::DevFailed)
 return the current status status of the motor More...
 
void AllowMove (const bool bAllowMove)
 
void Command (const string &cmd) throw (Tango::DevFailed)
 Execute a command of the device. More...
 
template<typename T >
void Command (const string &cmd, T value) throw (Tango::DevFailed)
 
template<typename T >
void WriteAttribute (const string &cmd, T value) throw (Tango::DevFailed)
 
template<typename T >
ReadAttribute (const string &cmd) throw (Tango::DevFailed)
 

Protected Attributes

Tango::DeviceProxyHelper * _mProxy
 
string _sProxyName
 
string _sDescription
 
string _sAttributePositionName
 
string _sAttributeBLSWName
 
string _sAttributeFLSWName
 
string _sCommandStateName
 
string _sCommandStatusName
 
string _sCommandStopName
 
string _sCommandForwardName
 
string _sCommandBackwardName
 

Member Function Documentation

◆ AllowMove()

void mph::MotionProxyHelper::AllowMove ( const bool  bAllowMove)

Change the value of _bAllowMove. This boolean controls wether or not any motor will be actually set in motion.

◆ Command()

void mph::MotionProxyHelper::Command ( const string &  cmd_name)
throw (Tango::DevFailed
)

Execute a command of the device.

Parameters
[in]cmd_namename of the command to execute

◆ State()

Tango::DevState mph::MotionProxyHelper::State ( void  )
throw (Tango::DevFailed
)
virtual

return the state of the device

Returns
DevState value

◆ Status()

string mph::MotionProxyHelper::Status ( void  )
throw (Tango::DevFailed
)

return the current status status of the motor

Returns
status message string

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