16 #ifndef DABC_Transport
17 #define DABC_Transport
19 #ifndef DABC_ModuleAsync
24 #include "dabc/Device.h"
85 virtual const char*
ClassName()
const {
return "Transport"; }
#define DABC_REFERENCE(RefClass, ParentClass, T)
Represents command with its arguments.
Reference on dabc::Device class
Base class for device implementation.
Reference on dabc::ModuleAsync class
Base class for user-derived code, implementing event-processing.
PortRef FindPort(const std::string &name)
Return reference on the port.
Reference on the dabc::Port class
Object * GetObject() const
Return pointer on the object.
Reference on dabc::Transport class
Base class for transport implementations.
Transport(dabc::Command cmd, const PortRef &inpport=0, const PortRef &outport=0)
bool IsInputTransport() const
virtual bool StopTransport()
virtual bool StartTransport()
Methods activated by Port, when transport starts/stops.
bool isTransportError() const
TimeStamp fTransportInfoTm
virtual void ProcessConnectionActivated(const std::string &name, bool on)
Method called when module on other side is started.
virtual int ExecuteCommand(Command cmd)
Main method where commands are executed.
virtual void CloseTransport(bool witherr=false)
std::string fTransportInfoName
virtual void ProcessConnectEvent(const std::string &name, bool on)
Method called by framework when connection state of the item is changed.
virtual void ModuleCleanup()
Reimplemented method from module.
ETransportState GetTransportState() const
DeviceRef fTransportDevice
device, used to create transport
bool isTransportRunning() const
static std::string MakeName(const PortRef &inpport, const PortRef &outport)
bool IsOutputTransport() const
void ProvideInfo(int lvl, const std::string &info)
Method provides transport info to specified parameter.
double fTransportInfoInterval
ETransportState fTransportState
bool InfoExpected() const
Returns true when next info can be provided If info parameter was configured, one could use it regula...
virtual void TransportCleanup()
virtual const char * ClassName() const
Returns class name of the object.
const unsigned AcknoledgeQueueLength
Class for acquiring and holding timestamps.