DABC (Data Acquisition Backbone Core)
2.9.9
|
Interface for implementing any kind of data input. More...
#include <dabc/DataIO.h>
Public Member Functions | |
virtual unsigned | Read_Complete (Buffer &buf) |
Complete reading of the buffer from source,. More... | |
virtual bool | Read_Init (const WorkerRef &wrk, const Command &cmd) |
Initialize data input, using port and command. More... | |
virtual unsigned | Read_Size () |
Defines required buffer size for next operation. More... | |
virtual unsigned | Read_Start (Buffer &buf) |
Prepare buffer for reading (if required) More... | |
virtual bool | Read_Stat (dabc::Command cmd) |
Provide timeout value. More... | |
virtual double | Read_Timeout () |
Provide timeout value. More... | |
Buffer | ReadBuffer () |
Reads complete buffer. More... | |
virtual | ~DataInput () |
Protected Member Functions | |
virtual WorkerAddon * | Read_GetAddon () |
Returns addon, provided by data input If specified, supposed that I/O object is double-deriver from DataInput and Addon. More... | |
Friends | |
class | InputTransport |
Interface for implementing any kind of data input.
dabc::DataInput object used by dabc::InputTransport to perform data reading. Input consists from sequence of following calls:
|
inlineprotectedvirtual |
Returns addon, provided by data input If specified, supposed that I/O object is double-deriver from DataInput and Addon.
Reimplemented in mbs::ClientTransport.
|
inlinevirtual |
Initialize data input, using port and command.
This is generic virtual method to initialize input, using configurations from Port and (or) from the Command
[in] | wrk | reference on input port |
[in] | cmd | reference on command object |
Reimplemented in dabc::FileInput, dabc::BinaryFileInput, user::Input, saftdabc::Input, mbs::TextInput, mbs::LmdInput, mbs::GeneratorInput, hadaq::HldInput, and ezca::EpicsInput.
|
inlinevirtual |
Defines required buffer size for next operation.
Reimplemented in user::Input, saftdabc::Input, mbs::TextInput, mbs::LmdInput, mbs::GeneratorInput, mbs::ClientTransport, hadaq::HldInput, ezca::EpicsInput, and dabc::BinaryFileInput.
|
inlinevirtual |
Prepare buffer for reading (if required)
Reimplemented in user::Input, saftdabc::Input, and mbs::ClientTransport.
|
inlinevirtual |
Complete reading of the buffer from source,.
Reimplemented in user::Input, saftdabc::Input, mbs::TextInput, mbs::LmdInput, mbs::GeneratorInput, mbs::ClientTransport, hadaq::HldInput, ezca::EpicsInput, and dabc::BinaryFileInput.
|
inlinevirtual |
Provide timeout value.
When Read_Size or Read_Complete operations returns di_RepeatTimeout argument, specified timeout will be used before next operation will be done
Reimplemented in user::Input, saftdabc::Input, mbs::GeneratorInput, mbs::ClientTransport, and ezca::EpicsInput.
|
inlinevirtual |
dabc::Buffer dabc::DataInput::ReadBuffer | ( | ) |
Reads complete buffer.
Perform consequent call of Read_Size(), Read_Start() and Read_Complete() methods
Definition at line 21 of file DataIO.cxx.
|
friend |