16 #ifndef DABC_DataTransport
17 #define DABC_DataTransport
19 #ifndef DABC_Transport
23 #ifndef DABC_MemoryPool
Reference on memory from memory pool.
Represents command with its arguments.
Interface for implementing any kind of data output.
Reference on dabc::MemoryPool class
Base class for output transport implementations.
void ChangeState(EOutputStates state)
bool SuitableStateForStartStop()
Returns true if state consider to be suitable to stop transport.
virtual ~OutputTransport()
Buffer fCurrentBuf
currently used buffer
virtual int ExecuteCommand(dabc::Command cmd)
Main method where commands are executed.
std::string StateAsStr() const
Returns state in string form.
void SetDataOutput(DataOutput *out, bool owner)
virtual void ProcessEvent(const EventId &)
bool fStopRequested
if true transport will be stopped when next suitable state is achieved
virtual void TransportCleanup()
double fRetryPeriod
if retry option enabled, transport will try to reinit output
OutputTransport(dabc::Command cmd, const PortRef &outport, DataOutput *out, bool owner)
void Write_CallBack(unsigned arg)
virtual bool StartTransport()
Methods activated by Port, when transport starts/stops.
virtual bool ProcessRecv(unsigned port)
Method called by framework when at least one buffer available in input port.
virtual bool StopTransport()
virtual void ProcessTimerEvent(unsigned)
Method called by framework when timer event is produced.
Reference on the dabc::Port class
Base class for transport implementations.
bool FireEvent(uint16_t evid)
Event structure, exchanged between DABC threads.