MIDAS
Loading...
Searching...
No Matches
WriterInterface Class Referenceabstract
Inheritance diagram for WriterInterface:

Public Member Functions

virtual int wr_open (LOG_CHN *log_chn, int run_number)=0
 
virtual int wr_write (LOG_CHN *log_chn, const void *data, const int size)=0
 
virtual int wr_close (LOG_CHN *log_chn, int run_number)=0
 
 WriterInterface ()
 
virtual ~WriterInterface ()
 
virtual std::string wr_get_file_ext ()
 
virtual std::string wr_get_chain ()=0
 

Public Attributes

bool fTrace
 
double fBytesIn
 
double fBytesOut
 

Detailed Description

Definition at line 406 of file mlogger.cxx.

Constructor & Destructor Documentation

◆ WriterInterface()

WriterInterface::WriterInterface ( )

Definition at line 422 of file mlogger.cxx.

423{
424 //fTrace = true; // <------ to enable (disable) tracing printout, set to "true" ("false")
425 fTrace = false; // <------ to enable (disable) tracing printout, set to "true" ("false")
426 fBytesIn = 0;
427 fBytesOut = 0;
428
429 if (fTrace)
430 printf("WriterInterface: default constructor!\n");
431}
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)
Definition rmidas.h:24
Here is the call graph for this function:

◆ ~WriterInterface()

virtual WriterInterface::~WriterInterface ( )
inlinevirtual

Definition at line 413 of file mlogger.cxx.

413{}; // dtor

Member Function Documentation

◆ wr_close()

virtual int WriterInterface::wr_close ( LOG_CHN log_chn,
int  run_number 
)
pure virtual

Implemented in WriterNull, WriterFile, WriterGzip, WriterPopen, WriterCRC32Zlib, WriterCRC32C, WriterSHA256, WriterSHA512, WriterLZ4, and WriterFtp.

Here is the caller graph for this function:

◆ wr_get_chain()

virtual std::string WriterInterface::wr_get_chain ( )
pure virtual

Implemented in WriterNull, WriterFile, WriterGzip, WriterPopen, WriterCRC32Zlib, WriterCRC32C, WriterSHA256, WriterSHA512, WriterLZ4, and WriterFtp.

Here is the caller graph for this function:

◆ wr_get_file_ext()

virtual std::string WriterInterface::wr_get_file_ext ( )
inlinevirtual

Reimplemented in WriterNull, WriterGzip, WriterPopen, WriterCRC32Zlib, WriterCRC32C, WriterSHA256, WriterSHA512, WriterLZ4, and WriterFtp.

Definition at line 414 of file mlogger.cxx.

414{ return ""; }
Here is the caller graph for this function:

◆ wr_open()

virtual int WriterInterface::wr_open ( LOG_CHN log_chn,
int  run_number 
)
pure virtual

Implemented in WriterNull, WriterFile, WriterGzip, WriterPopen, WriterCRC32Zlib, WriterCRC32C, WriterSHA256, WriterSHA512, WriterLZ4, and WriterFtp.

Here is the caller graph for this function:

◆ wr_write()

virtual int WriterInterface::wr_write ( LOG_CHN log_chn,
const void data,
const int  size 
)
pure virtual

Implemented in WriterNull, WriterFile, WriterGzip, WriterPopen, WriterCRC32Zlib, WriterCRC32C, WriterSHA256, WriterSHA512, WriterLZ4, and WriterFtp.

Here is the caller graph for this function:

Member Data Documentation

◆ fBytesIn

double WriterInterface::fBytesIn

Definition at line 418 of file mlogger.cxx.

◆ fBytesOut

double WriterInterface::fBytesOut

Definition at line 419 of file mlogger.cxx.

◆ fTrace

bool WriterInterface::fTrace

Definition at line 417 of file mlogger.cxx.


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