DABC (Data Acquisition Backbone Core)
2.9.9
|
Interface for implementing file inputs. More...
#include <dabc/DataIO.h>
Public Member Functions | |
virtual bool | Read_Init (const WorkerRef &wrk, const Command &cmd) |
Initialize data input, using port and command. More... | |
virtual bool | Read_Stat (dabc::Command cmd) |
Provide timeout value. More... | |
void | SetIO (dabc::FileInterface *io) |
virtual | ~FileInput () |
Public Member Functions inherited from dabc::DataInput | |
virtual unsigned | Read_Complete (Buffer &buf) |
Complete reading of the buffer from source,. 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 double | Read_Timeout () |
Provide timeout value. More... | |
Buffer | ReadBuffer () |
Reads complete buffer. More... | |
virtual | ~DataInput () |
Protected Member Functions | |
void | ClearCurrentFileName () |
const std::string & | CurrentFileName () const |
FileInput (const dabc::Url &url) | |
bool | InitFilesList () |
bool | TakeNextFileName () |
Protected Member Functions inherited from dabc::DataInput | |
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... | |
Protected Attributes | |
std::string | fCurrentName |
std::string | fFileName |
dabc::Reference | fFilesList |
dabc::FileInterface * | fIO |
bool | fLoop |
read file(s) in endless loop More... | |
double | fReduce |
factor to reduce buffer size when reading More... | |
Interface for implementing file inputs.
Provide convenient way for managing list of files as inputs.
|
protected |
Definition at line 92 of file DataIO.cxx.
|
virtual |
Definition at line 105 of file DataIO.cxx.
|
protected |
Definition at line 125 of file DataIO.cxx.
|
protected |
Definition at line 155 of file DataIO.cxx.
|
inlineprotected |
|
inlineprotected |
void dabc::FileInput::SetIO | ( | dabc::FileInterface * | io | ) |
Definition at line 115 of file DataIO.cxx.
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 from dabc::DataInput.
Reimplemented in dabc::BinaryFileInput, mbs::TextInput, mbs::LmdInput, and hadaq::HldInput.
Definition at line 139 of file DataIO.cxx.
|
virtual |
Provide timeout value.
Take statistic from DataInput object
Reimplemented from dabc::DataInput.
Definition at line 167 of file DataIO.cxx.
|
protected |
|
protected |
|
protected |
|
protected |