3#include <NDEVR/Connection.h>
4#include <NDEVR/Translator.h>
19 virtual bool open(
bool start_forward_thread =
true);
33 virtual void _close();
38 bool m_forward_a_to_b =
true;
39 bool m_forward_b_to_a =
true;
40 bool m_is_open =
false;
41 bool m_request_close =
false;
Logic for taking all rx data from one Connection and sending it through another Connection and vice-v...
Definition ConnectionForwarding.h:12
bool forwardAToB() const
Definition ConnectionForwarding.h:28
TimeSpan updateInterval() const override
void setBConnectionInfo(const ConnectionInfo &info)
ConnectionForwarding(Connection *a, Connection *b, ProgressInfo *log=nullptr)
void setForwardBToA(bool forward)
Connection * b() const
Definition ConnectionForwarding.h:22
Connection * a() const
Definition ConnectionForwarding.h:21
bool forwardBToA() const
Definition ConnectionForwarding.h:29
ConnectionForwarding(ConnectionInfo a, ConnectionInfo b, ProgressInfo *log=nullptr)
void setForwardAToB(bool forward)
virtual bool open(bool start_forward_thread=true)
void setAConnectionInfo(const ConnectionInfo &info)
ConnectionForwarding(ProgressInfo *log=nullptr)
void setUpdateInterval(const TimeSpan &span)
virtual bool isOpen() const
virtual void update() override
A standard interface for all types of connections that allow transmitting and recieving of data betwe...
Definition Connection.h:198
A root class which describes some physical object, such as a Motor, Sensor, or Connection....
Definition Device.h:52
A light-weight base class for Log that allows processes to update, without the need for additional in...
Definition ProgressInfo.hpp:48
Stores a time span, or difference between two times, with an optional start time.
Definition TimeSpan.h:46
A structure designed to store information about a specific Connection.
Definition Connection.h:97