VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrf::DtFileCommChannel Class Reference

The DtFileCommChannel class is a simple class that will use two files based on the given output file for communication. An Output file to place messages to be "sent" to a listening application and an Input file that can be used for the listening application to send messages to this channel. Once the messages are received a signal will be emitted and the file in question erased. This object is run as a thread so it can check file contents every so often.

Inheritance diagram for makVrf::DtFileCommChannel:
Inheritance graph
[legend]

Public Member Functions

 DtFileCommChannel (const QString &file, bool listener=false)
 
virtual ~DtFileCommChannel ()
 
virtual void sendMessage (const QString &)
 
virtual void done ()
 

Public Attributes

boost::signals2::signal< void(const
QStringList &)> 
signal_commFileMessagesReceived
 

Protected Member Functions

virtual void run ()
 

Protected Attributes

QString myFileCommChannel
 
bool myIsListener
 
bool myIsDone
 

Constructor & Destructor Documentation

makVrf::DtFileCommChannel::DtFileCommChannel ( const QString &  file,
bool  listener = false 
)

Constructor.

virtual makVrf::DtFileCommChannel::~DtFileCommChannel ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrf::DtFileCommChannel::sendMessage ( const QString &  )
virtual

Writes a message to the output channel.

virtual void makVrf::DtFileCommChannel::done ( )
virtual

Call when done to cleanup cleanly.

virtual void makVrf::DtFileCommChannel::run ( )
protectedvirtual

Member Data Documentation

boost::signals2::signal<void (const QStringList&)> makVrf::DtFileCommChannel::signal_commFileMessagesReceived
QString makVrf::DtFileCommChannel::myFileCommChannel
protected
bool makVrf::DtFileCommChannel::myIsListener
protected
bool makVrf::DtFileCommChannel::myIsDone
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)