DABC (Data Acquisition Backbone Core)  2.9.9
Public Member Functions | Protected Attributes
dabc::BlockingOutput Class Reference
Inheritance diagram for dabc::BlockingOutput:

Public Member Functions

 BlockingOutput (const dabc::Url &url)
unsigned Write_Buffer (Buffer &buf)
 Start writing of buffer to output. More...
- Public Member Functions inherited from dabc::DataOutput
virtual std::string ProvideInfo ()
 Method can be used to get debug info about output. More...
void SetInfoParName (const std::string &name)
 Methods set parameter name, which could be used for debug output. More...
virtual unsigned Write_Check ()
 Check if output can be done. More...
virtual unsigned Write_Complete ()
 Complete writing of the buffer. More...
virtual void Write_Flush ()
 Flush output object, called when buffer with EOL type is appeared. More...
virtual bool Write_Init ()
 This is generic virtual method to initialize output before real work is started. More...
virtual bool Write_Restart (dabc::Command cmd)
 Method used to restart output - like recreate new output file. More...
virtual bool Write_Retry ()
 Returns true if output object can be reinitialized for recover error. More...
virtual bool Write_Stat (dabc::Command cmd)
 Fill different statistic parameters into provided command. More...
virtual double Write_Timeout ()
 Timeout in seconds for write operation. More...
bool WriteBuffer (Buffer &buf)
 Write buffer to the output. More...
virtual ~DataOutput ()

Protected Attributes

double fBlockTm
int fErrCounter
 counter till error More...
bool fSleep
- Protected Attributes inherited from dabc::DataOutput
std::string fInfoName

Additional Inherited Members

- Protected Member Functions inherited from dabc::DataOutput
 DataOutput (const dabc::Url &url)
void ShowInfo (int lvl, const std::string &info)
virtual WorkerAddonWrite_GetAddon ()
 Returns addon, provided by data output If specified, supposed that I/O object is double-derived from DataOutput and Addon. More...

Detailed Description

Definition at line 112 of file Manager.cxx.

Constructor & Destructor Documentation

◆ BlockingOutput()

dabc::BlockingOutput::BlockingOutput ( const dabc::Url url)

Definition at line 119 of file Manager.cxx.

Member Function Documentation

◆ Write_Buffer()

unsigned dabc::BlockingOutput::Write_Buffer ( Buffer buf)

Start writing of buffer to output.

Return values: do_Ok - operation is started, Write_Complete() must be called do_Error - error do_Skip - buffer must be skipped do_Close - output is closed

Reimplemented from dabc::DataOutput.

Definition at line 130 of file Manager.cxx.

Field Documentation

◆ fBlockTm

double dabc::BlockingOutput::fBlockTm

Definition at line 114 of file Manager.cxx.

◆ fSleep

bool dabc::BlockingOutput::fSleep

Definition at line 115 of file Manager.cxx.

◆ fErrCounter

int dabc::BlockingOutput::fErrCounter

counter till error

Definition at line 116 of file Manager.cxx.

The documentation for this class was generated from the following file: