Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
MtbFileCommunicator Class Reference

A class that is used for the communcation with a mtb file. More...

#include <mtbfilecommunicator.h>

Inheritance diagram for MtbFileCommunicator:
Inheritance graph
[legend]

Public Member Functions

void abortLoadLogFile () override
 Abort a process that takes a long time to complete. More...
 
void addProtocolHandler (IProtocolHandler *handler) override
 Add the protocol handler. More...
 
void closeLogFile () override
 Close the log file. More...
 
void closePort () override
 Closes the open port. More...
 
bool doTransaction (const XsMessage &msg, XsMessage &rcv, uint32_t timeout) override
 Pretend to be a live system. More...
 
void flushPort () override
 Flushes all remaining data on the open port. More...
 
XsResultValue getDeviceId () override
 Request a device to get device ID. More...
 
XsResultValue gotoConfig (bool detectRs485=false) override
 Request a device to go to config mode. More...
 
XsResultValue gotoMeasurement () override
 Request a device to go to measurement mode. More...
 
bool isDockedAt (Communicator *other) const override
 Returns true if the other device is docked at this device. More...
 
bool isLoadLogFileInProgress () const override
 
bool isPortOpen () const override
 
bool isReadingFromFile () const override
 Return whether we are reading from file. More...
 
void loadLogFile (XsDevice *device) override
 Load a log file with thread pool. More...
 
XsTimeStamp logFileDate () const override
 Retrieve the date of the open log file. More...
 
XsString logFileName () const override
 Retrieve the name of the open log file or an empty string if no log file is open. More...
 
XsFilePos logFileReadPosition () const override
 Retrieve the read position of the log file. More...
 
XsFilePos logFileSize () const override
 Retrieve the size of the open log file in bytes. More...
 
 MtbFileCommunicator ()
 Default constructor. More...
 
bool openLogFile (const XsString &filename) override
 Open a log file for input. More...
 
bool openPort (const XsPortInfo &portInfo, OpenPortStage stage=OPS_Full, bool detectRs485=false) override
 Opens a port. More...
 
XsPortInfo portInfo () const override
 
XsMessage readMessage (uint8_t msgId=0) override
 Read a message from the open file. More...
 
XsMessage readMessageFromStartOfFile (uint8_t msgId, int maxMsgs=0) override
 Read a message from the start of the open file. More...
 
std::deque< XsMessagereadMessagesFromStartOfFile (uint8_t msgId, int maxMsgs=0) override
 Read multiple similar messages from the start of the open file. More...
 
bool reopenPort (OpenPortStage stage=OPS_Full, bool skipDeviceIdCheck=false) override
 Reopens the port. More...
 
void resetLogFileReadPosition (void) override
 Restart reading from the start of the open log file. More...
 
void setGotoConfigTimeout (uint32_t timeout) override
 Set the timeout for the gotoConfig function. More...
 
void setKeepAlive (bool enable) override
 Either disable or enable (default) the keep alive mechanism (if supported by the device) More...
 
bool writeMessage (const XsMessage &message) override
 Write message to the device. More...
 
- Public Member Functions inherited from Communicator
std::shared_ptr< ReplyObjectaddReplyObject (ReplyObject *obj)
 Add a custom ReplyObject. More...
 
std::shared_ptr< ReplyObjectaddReplyObject (uint8_t mid)
 Add a MidReplyObject. More...
 
std::shared_ptr< ReplyObjectaddReplyObject (uint8_t mid, XsSize offset, XsSize size, uint8_t const *data)
 Add a MidAndDataReplyObject. More...
 
virtual bool allowReprocessing () const
 
XsSize childDeviceCount () const
 
 Communicator (void)
 Constructor, creates some management objects and clears the rest by calling initialize() More...
 
uint32_t defaultTimeout () const
 
void destroy ()
 Destroys the communicator. More...
 
bool doTransaction (const XsMessage &message)
 Write a message and await the reply. More...
 
bool doTransaction (const XsMessage &message, uint32_t timeout)
 Write a message and await the reply. More...
 
bool doTransaction (const XsMessage &message, XsMessage &rcv)
 Write a message and await the reply. More...
 
virtual void handleMessage (const XsMessage &message)
 Handles a message. More...
 
bool hasProtocol (XsProtocolType type) const
 
XsResultValue lastResult () const
 Get the result value of the last operation. More...
 
XsString lastResultText () const
 Get the accompanying error text for the value returned by lastResult() It may provide situation-specific information instead. More...
 
XsDeviceId masterDeviceId () const
 
void removeProtocolHandler (XsProtocolType type)
 Removes a protocol handler. More...
 
bool sanityCheck (XsMessage const &msg) const
 Do a sanity check on a potential message. More...
 
virtual void scheduleClosePort ()
 Schedules to close the open port. More...
 
virtual void setCredentials (XsString const &id, XsString const &key)
 Set the credentials required for using the device. More...
 
void setDefaultTimeout (uint32_t timeout)
 Sets a default timeout. More...
 
void setMasterDevice (XsDevice *masterDevice)
 Sets a master device. More...
 
- Public Member Functions inherited from CallbackManagerXda
void addCallbackHandler (XsCallbackPlainC *cb, bool chain=true)
 Add a handler to the list. More...
 
void addChainedManager (CallbackManagerXda *cm)
 Add a chained manager to the list. More...
 
 CallbackManagerXda ()
 Constructor, initializes the callback list. More...
 
void clearCallbackHandlers (bool chain=true)
 Clear the callback list. More...
 
void clearChainedManagers ()
 Clear the chained manager list. More...
 
void copyCallbackHandlersFrom (CallbackManagerXda *cm, bool chain=true)
 Copy all handlers from cm into this manager. More...
 
void copyCallbackHandlersTo (CallbackManagerXda *cm, bool chain=true)
 Copy all handlers from this manager into cm. More...
 
void onAllBufferedDataAvailable (XsDevicePtrArray *devs, const XsDataPacketPtrArray *packets) override
 The XsCallback::onAllBufferedDataAvailable() callback forwarding function. More...
 
void onAllDataAvailable (XsDevicePtrArray *devs, const XsDataPacketPtrArray *packets) override
 The XsCallback::onAllDataAvailable() callback forwarding function. More...
 
void onAllLiveDataAvailable (XsDevicePtrArray *devs, const XsDataPacketPtrArray *packets) override
 The XsCallback::onAllLiveDataAvailable() callback forwarding function. More...
 
void onAllRecordedDataAvailable (XsDevicePtrArray *devs, const XsDataPacketPtrArray *packets) override
 The XsCallback::onAllRecordedDataAvailable() callback forwarding function. More...
 
void onBufferedDataAvailable (XsDevice *dev, const XsDataPacket *data) override
 The XsCallback::onBufferedDataAvailable() callback forwarding function. More...
 
void onConnectivityChanged (XsDevice *dev, XsConnectivityState newState) override
 The XsCallback::onConnectivityChanged() callback forwarding function. More...
 
void onDataAvailable (XsDevice *dev, const XsDataPacket *data) override
 The XsCallback::onDataAvailable() callback forwarding function. More...
 
void onDataUnavailable (XsDevice *dev, int64_t packetId) override
 The XsCallback::onDataUnavailable() callback forwarding function. More...
 
void onDeviceStateChanged (XsDevice *dev, XsDeviceState newState, XsDeviceState oldState) override
 The XsCallback::onDeviceStateChanged() callback forwarding function. More...
 
void onError (XsDevice *dev, XsResultValue error) override
 The Xscallback::onError() callback forwarding function. More...
 
void onInfoResponse (XsDevice *dev, XsInfoRequest request) override
 The XsCallback::onInfoResponse() callback forwarding function. More...
 
void onLiveDataAvailable (XsDevice *dev, const XsDataPacket *packet) override
 The XsCallback::onLiveDataAvailable() callback forwarding function. More...
 
void onMessageDetected (XsDevice *dev, XsProtocolType type, XsByteArray const *rawMessage) override
 The Xscallback::onMessageReceivedFromDevice() callback forwarding function. More...
 
void onMessageReceivedFromDevice (XsDevice *dev, XsMessage const *message) override
 The Xscallback::onMessageReceivedFromDevice() callback forwarding function. More...
 
void onMessageSentToDevice (XsDevice *dev, XsMessage const *message) override
 The Xscallback::onMessageSentToDevice() callback forwarding function. More...
 
void onMissedPackets (XsDevice *dev, int count, int first, int last) override
 The XsCallback::onMissedPackets() callback forwarding function. More...
 
void onNonDataMessage (XsDevice *dev, XsMessage const *message) override
 The Xscallback::onNonDataMessage() callback forwarding function. More...
 
void onProgressUpdated (XsDevice *dev, int current, int total, const XsString *identifier) override
 The XsCallback::onProgressUpdated() callback forwarding function. More...
 
void onRecordedDataAvailable (XsDevice *dev, const XsDataPacket *data) override
 The XsCallback::onRecordedDataAvailable() callback forwarding function. More...
 
void onRestoreCommunication (const XsString *portName, XsResultValue result) override
 The Xscallback::onRestoreCommunication callback forwarding function. More...
 
void onTransmissionRequest (int channelId, const XsByteArray *data) override
 
void onWakeupReceived (XsDevice *dev) override
 The XsCallback::onWakeupReceived() callback forwarding function. More...
 
int onWriteMessageToLogFile (XsDevice *dev, const XsMessage *message) override
 The XsCallback::onWriteMessageToLogFile() callback forwarding function. More...
 
void removeCallbackHandler (XsCallbackPlainC *cb, bool chain=true)
 Remove a handler from the list. More...
 
void removeChainedManager (CallbackManagerXda *cm)
 Remove achained manager from the list. More...
 
 ~CallbackManagerXda ()
 Destructor, clears the callback list. More...
 

Static Public Member Functions

static Communicatorconstruct ()
 Constructs new MtbFileCommunicator. More...
 
- Static Public Member Functions inherited from Communicator
static int configurationMessageSearchLimit ()
 
template<typename T >
static UniquePtr< T > createUniquePtr ()
 Constructs a new Communicator of type T and returns it as a UniquePtr<T> More...
 
template<typename T >
static UniquePtr< T > createUniquePtr (T *communicator)
 Creates a UniquePtr<T> from a Communicator*. More...
 

Protected Member Functions

 MtbFileCommunicator (std::shared_ptr< IoInterfaceFile > const &ioInterfaceFile)
 Constructor that uses ioInterfaceFile. More...
 
void prepareForDestruction () override
 Prepares for the destruction. More...
 
virtual XsResultValue readLogFile (XsDevice *device) override
 Read a log file into cache. More...
 
virtual XsMessage readNextMessage ()
 Read the next message from the open file. More...
 
virtual XsResultValue readSinglePacketFromFile () override
 Read a single XsDataPacket from an open log file. More...
 
void waitForLastTaskCompletion () override
 Wait for the last processing task to complete in the threadpool. More...
 
 ~MtbFileCommunicator ()
 
- Protected Member Functions inherited from Communicator
XsDevicemasterDevice () const
 
std::shared_ptr< ProtocolManagerprotocolManager () const
 
XsResultValue setAndReturnLastResult (XsResultValue lastResult, XsString const &text=XsString()) const
 Sets the last result and returns it. More...
 
void setLastResult (XsResultValue lastResult, XsString const &text=XsString()) const
 Sets the last result. More...
 
void setMasterDeviceId (const XsDeviceId &deviceId)
 Sets a master device ID. More...
 
virtual ~Communicator ()
 Destructor, waits for the last scheduled task to complete and then cleans up the object by calling clear() More...
 
- Protected Member Functions inherited from FileLoader
virtual ~FileLoader ()
 

Private Member Functions

void completeAllThreadedWork ()
 Completes all threaded work. More...
 
uint32_t timeoutToMaxMessages (uint32_t timeout) const
 A rather stupid function that tries to convert a live timeout into a number of messages. More...
 

Private Attributes

bool m_abortLoadLogFile
 
std::deque< XsMessage > * m_extractedMessages
 
MessageExtractorm_extractor
 
std::shared_ptr< IoInterfaceFilem_ioInterfaceFile
 
xsens::ThreadPool::TaskId m_loadFileTaskId
 

Additional Inherited Members

- Public Types inherited from Communicator
template<typename T >
using UniquePtr = std::unique_ptr< T, Deleter >
 Initializes of UniquePtr<T> More...
 
- Protected Attributes inherited from Communicator
uint32_t m_defaultTimeout
 A default timeout variable. More...
 
xsens::Mutex m_handleMux
 A handle mutex. More...
 
XsResultValue m_lastResult
 A last result variable. More...
 
XsString m_lastResultText
 A last result string. More...
 
XsDeviceId m_masterDeviceId
 A master device ID. More...
 
XsDevicem_masterInfo
 A master device object. More...
 
bool m_preparedForDestruction
 Prepared for destruction boolean variable. More...
 
std::shared_ptr< ProtocolManagerm_protocolManager
 A shared pointer to protocl manager. More...
 
std::unique_ptr< xsens::ReplyMonitorm_replyMonitor
 An unique pointer to a reply monitor. More...
 

Detailed Description

A class that is used for the communcation with a mtb file.

Definition at line 79 of file mtbfilecommunicator.h.

Constructor & Destructor Documentation

◆ MtbFileCommunicator() [1/2]

MtbFileCommunicator::MtbFileCommunicator ( )

Default constructor.

Definition at line 98 of file mtbfilecommunicator.cpp.

◆ MtbFileCommunicator() [2/2]

MtbFileCommunicator::MtbFileCommunicator ( std::shared_ptr< IoInterfaceFile > const &  ioInterfaceFile)
protected

Constructor that uses ioInterfaceFile.

Definition at line 112 of file mtbfilecommunicator.cpp.

◆ ~MtbFileCommunicator()

MtbFileCommunicator::~MtbFileCommunicator ( )
protected

Destructor

Definition at line 127 of file mtbfilecommunicator.cpp.

Member Function Documentation

◆ abortLoadLogFile()

void MtbFileCommunicator::abortLoadLogFile ( )
overridevirtual

Abort a process that takes a long time to complete.

This currently only includes readLogFile()

Implements Communicator.

Definition at line 499 of file mtbfilecommunicator.cpp.

◆ addProtocolHandler()

void MtbFileCommunicator::addProtocolHandler ( IProtocolHandler handler)
overridevirtual

Add the protocol handler.

Parameters
handler: The protocol hanlder to add

Reimplemented from Communicator.

Definition at line 719 of file mtbfilecommunicator.cpp.

◆ closeLogFile()

void MtbFileCommunicator::closeLogFile ( )
overridevirtual

Close the log file.

Returns
true if the log file was successfully closed or never open

Implements Communicator.

Definition at line 197 of file mtbfilecommunicator.cpp.

◆ closePort()

void MtbFileCommunicator::closePort ( )
overridevirtual

Closes the open port.

Implements Communicator.

◆ completeAllThreadedWork()

void MtbFileCommunicator::completeAllThreadedWork ( )
private

Completes all threaded work.

Definition at line 181 of file mtbfilecommunicator.cpp.

◆ construct()

Communicator * MtbFileCommunicator::construct ( )
static

Constructs new MtbFileCommunicator.

Definition at line 91 of file mtbfilecommunicator.cpp.

◆ doTransaction()

bool MtbFileCommunicator::doTransaction ( const XsMessage msg,
XsMessage rcv,
uint32_t  timeout 
)
overridevirtual

Pretend to be a live system.

Parameters
msgThe message to send
rcvThe message to receive
timeoutThe timeout in ms

This one is nowhere near finished, but it does the trick for simple systems if a reply is available.

Returns
True if successful

Implements Communicator.

Definition at line 147 of file mtbfilecommunicator.cpp.

◆ flushPort()

void MtbFileCommunicator::flushPort ( )
overridevirtual

Flushes all remaining data on the open port.

Implements Communicator.

◆ getDeviceId()

XsResultValue MtbFileCommunicator::getDeviceId ( )
overridevirtual

Request a device to get device ID.

Returns
XRV_OK if succeeded

Implements Communicator.

◆ gotoConfig()

XsResultValue MtbFileCommunicator::gotoConfig ( bool  detectRs485 = false)
overridevirtual

Request a device to go to config mode.

Parameters
detectRs485when set to true it will try to detect and use an RS485 interface
Returns
XRV_OK if succeeded

Implements Communicator.

◆ gotoMeasurement()

XsResultValue MtbFileCommunicator::gotoMeasurement ( )
overridevirtual

Request a device to go to measurement mode.

Returns
XRV_OK if succeeded

Implements Communicator.

◆ isDockedAt()

bool MtbFileCommunicator::isDockedAt ( Communicator other) const
overridevirtual

Returns true if the other device is docked at this device.

Implements Communicator.

◆ isLoadLogFileInProgress()

bool MtbFileCommunicator::isLoadLogFileInProgress ( ) const
overridevirtual
Returns
True if load log file is in progress

Reimplemented from Communicator.

Definition at line 711 of file mtbfilecommunicator.cpp.

◆ isPortOpen()

bool MtbFileCommunicator::isPortOpen ( ) const
overridevirtual
Returns
true if the port is open

Implements Communicator.

◆ isReadingFromFile()

bool MtbFileCommunicator::isReadingFromFile ( ) const
overridevirtual

Return whether we are reading from file.

Implements Communicator.

Definition at line 649 of file mtbfilecommunicator.cpp.

◆ loadLogFile()

void MtbFileCommunicator::loadLogFile ( XsDevice device)
overridevirtual

Load a log file with thread pool.

Implements Communicator.

Definition at line 419 of file mtbfilecommunicator.cpp.

◆ logFileDate()

XsTimeStamp MtbFileCommunicator::logFileDate ( ) const
overridevirtual

Retrieve the date of the open log file.

Implements Communicator.

Definition at line 600 of file mtbfilecommunicator.cpp.

◆ logFileName()

XsString MtbFileCommunicator::logFileName ( ) const
overridevirtual

Retrieve the name of the open log file or an empty string if no log file is open.

Implements Communicator.

Definition at line 577 of file mtbfilecommunicator.cpp.

◆ logFileReadPosition()

XsFilePos MtbFileCommunicator::logFileReadPosition ( ) const
overridevirtual

Retrieve the read position of the log file.

This function will return the current read position in the open log file in bytes from the start.

Note
The read and write positions of log files are completely independent of each other.
There is a look-ahead cache in place so even when the read position is already at the end of the file, there may still be some messages left to be read. For this reason, this function will at most return filesize-1 until the message queue is empty.
Remarks
To reset the read position, use resetLogFileReadPosition.
See also
resetLogFileReadPosition
Returns
The file read position

Implements Communicator.

Definition at line 617 of file mtbfilecommunicator.cpp.

◆ logFileSize()

XsFilePos MtbFileCommunicator::logFileSize ( ) const
overridevirtual

Retrieve the size of the open log file in bytes.

Implements Communicator.

Definition at line 590 of file mtbfilecommunicator.cpp.

◆ openLogFile()

bool MtbFileCommunicator::openLogFile ( const XsString filename)
overridevirtual

Open a log file for input.

This function opens the supplied log file for reading. The function will fail if a serial connection is currently open.

Parameters
filenameThe name of the file to open. It is recommended to use a fully qualified path+filename.
Note
This function is only available in configuration mode.
See also
closeLogFile
Returns
True if successful

Implements Communicator.

Definition at line 511 of file mtbfilecommunicator.cpp.

◆ openPort()

bool MtbFileCommunicator::openPort ( const XsPortInfo portInfo,
OpenPortStage  stage = OPS_Full,
bool  detectRs485 = false 
)
overridevirtual

Opens a port.

Parameters
portInfoA port information that you want to open
stageA openning stage of a communication port
detectRs485When set to true it will try to detect and use an RS485 interface
Returns
true if port is successfully open

Implements Communicator.

◆ portInfo()

XsPortInfo MtbFileCommunicator::portInfo ( ) const
overridevirtual
Returns
XsPortInfo of the current port

Implements Communicator.

◆ prepareForDestruction()

void MtbFileCommunicator::prepareForDestruction ( )
overrideprotectedvirtual

Prepares for the destruction.

Reimplemented from Communicator.

Definition at line 168 of file mtbfilecommunicator.cpp.

◆ readLogFile()

XsResultValue MtbFileCommunicator::readLogFile ( XsDevice device)
overrideprotectedvirtual

Read a log file into cache.

Parameters
device: The device to read log from

Read all data for inf into the cache

See also
XsControl::loadLogFile
Returns
XRV_OK if successful

Implements FileLoader.

Definition at line 437 of file mtbfilecommunicator.cpp.

◆ readMessage()

XsMessage MtbFileCommunicator::readMessage ( uint8_t  msgId = 0)
overridevirtual

Read a message from the open file.

This function will attempt to read a full message from the open device (file or COM port or USB port). If msgId is non-0, the function will look for a specific message ID. The function will read from the device, but it won't wait for data to become available.

Parameters
msgIdEither 0 to read the first available message or non-0 to look for a specific message with this ID.
Returns
The message that was read or if no matching message was found a cleared message.

Implements Communicator.

Definition at line 662 of file mtbfilecommunicator.cpp.

◆ readMessageFromStartOfFile()

XsMessage MtbFileCommunicator::readMessageFromStartOfFile ( uint8_t  msgId,
int  maxMsgs = 0 
)
overridevirtual

Read a message from the start of the open file.

This function will reset the read position in the file to the start and will then search for the message with the given message ID. After the message has been found (or not) the read position will be restored to its original position.

Parameters
msgIdThe ID of the message to search for
maxMsgsOptional parameter to limit the maximum number of messages to search. When 0, the function will continue until the message has been found or the end of the file has been reached.
Returns
The messsage that was read

Implements Communicator.

Definition at line 211 of file mtbfilecommunicator.cpp.

◆ readMessagesFromStartOfFile()

std::deque< XsMessage > MtbFileCommunicator::readMessagesFromStartOfFile ( uint8_t  msgId,
int  maxMsgs = 0 
)
overridevirtual

Read multiple similar messages from the start of the open file.

This function will reset the read position in the file to the start and will then search for all messages with the given message ID. Afterwards the read position will be restored to its original position.

Parameters
msgIdThe ID of the message to search for.
maxMsgsOptional parameter to limit the maximum number of messages to search. When 0, the function will continue until the end of the file has been reached.
Returns
The messsage that was read

Implements Communicator.

Definition at line 264 of file mtbfilecommunicator.cpp.

◆ readNextMessage()

XsMessage MtbFileCommunicator::readNextMessage ( )
protectedvirtual

Read the next message from the open file.

Returns
The message that was read or an empty message if no message was found (end-of-file for example).

Definition at line 687 of file mtbfilecommunicator.cpp.

◆ readSinglePacketFromFile()

XsResultValue MtbFileCommunicator::readSinglePacketFromFile ( )
overrideprotectedvirtual

Read a single XsDataPacket from an open log file.

Read a single XsDataPacket from the log file and place it in the correct data cache(s)

Returns
XRV_OK if successful

Implements FileLoader.

Definition at line 485 of file mtbfilecommunicator.cpp.

◆ reopenPort()

bool MtbFileCommunicator::reopenPort ( OpenPortStage  stage = OPS_Full,
bool  skipDeviceIdCheck = false 
)
overridevirtual

Reopens the port.

Parameters
stageA openning stage of a communication port
skipDeviceIdCheckWhen set to true it will skip device ID check
Returns
true if port is successfully reopened

Implements Communicator.

◆ resetLogFileReadPosition()

void MtbFileCommunicator::resetLogFileReadPosition ( void  )
overridevirtual

Restart reading from the start of the open log file.

This function resets the read position to the start of the open log file. Only the read position is affected, the write position remains the same.

See also
openLogFile

Implements Communicator.

Definition at line 636 of file mtbfilecommunicator.cpp.

◆ setGotoConfigTimeout()

void MtbFileCommunicator::setGotoConfigTimeout ( uint32_t  timeout)
overridevirtual

Set the timeout for the gotoConfig function.

Parameters
timeoutThe desired timeout value in ms, if 0 the default value is used

Implements Communicator.

◆ setKeepAlive()

void MtbFileCommunicator::setKeepAlive ( bool  enable)
overridevirtual

Either disable or enable (default) the keep alive mechanism (if supported by the device)

Implements Communicator.

◆ timeoutToMaxMessages()

uint32_t MtbFileCommunicator::timeoutToMaxMessages ( uint32_t  timeout) const
private

A rather stupid function that tries to convert a live timeout into a number of messages.

Definition at line 135 of file mtbfilecommunicator.cpp.

◆ waitForLastTaskCompletion()

void MtbFileCommunicator::waitForLastTaskCompletion ( )
overrideprotectedvirtual

Wait for the last processing task to complete in the threadpool.

This function is usually called after abort() to make sure that no more processing is going on.

Implements Communicator.

Definition at line 190 of file mtbfilecommunicator.cpp.

◆ writeMessage()

bool MtbFileCommunicator::writeMessage ( const XsMessage message)
overridevirtual

Write message to the device.

Parameters
messagea message
Returns
true on successful write, false otherwise. This doesn't guarantee proper delivery of the message. Use doTransaction for that

Implements Communicator.

Member Data Documentation

◆ m_abortLoadLogFile

bool MtbFileCommunicator::m_abortLoadLogFile
private

Definition at line 134 of file mtbfilecommunicator.h.

◆ m_extractedMessages

std::deque<XsMessage>* MtbFileCommunicator::m_extractedMessages
private

Definition at line 138 of file mtbfilecommunicator.h.

◆ m_extractor

MessageExtractor* MtbFileCommunicator::m_extractor
private

Definition at line 137 of file mtbfilecommunicator.h.

◆ m_ioInterfaceFile

std::shared_ptr<IoInterfaceFile> MtbFileCommunicator::m_ioInterfaceFile
private

Definition at line 133 of file mtbfilecommunicator.h.

◆ m_loadFileTaskId

xsens::ThreadPool::TaskId MtbFileCommunicator::m_loadFileTaskId
private

Definition at line 135 of file mtbfilecommunicator.h.


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


xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:21