Definition at line 884 of file mlogger.cxx.
◆ WriterCRC32Zlib()
Definition at line 887 of file mlogger.cxx.
888 {
890 printf(
"WriterCRC32Zlib: path [%s], level %d\n", log_chn->
path.c_str(), level);
891
892 assert(wr != NULL);
893
897 }
◆ ~WriterCRC32Zlib()
| WriterCRC32Zlib::~WriterCRC32Zlib |
( |
| ) |
|
|
inline |
Definition at line 899 of file mlogger.cxx.
900 {
902 printf("WriterCRC32Zlib: destructor\n");
904 }
◆ wr_close()
| int WriterCRC32Zlib::wr_close |
( |
LOG_CHN * |
log_chn, |
|
|
int |
run_number |
|
) |
| |
|
inlinevirtual |
Implements WriterInterface.
Definition at line 948 of file mlogger.cxx.
949 {
951 std::string f = x + ".crc32zlib";
952
954 printf(
"WriterCRC32Zlib: close path [%s], level %d, file [%s]\n", log_chn->
path.c_str(),
fLevel, f.c_str());
955
957
958 cm_msg(
MLOG,
"CRC32Zlib",
"File \'%s\' CRC32-zlib checksum: 0x%08lx, %.0f bytes", x.c_str(), (
unsigned long)
fCrc32,
fBytesIn);
959
962 cm_msg(
MERROR,
"WriterCRC32Zlib::wr_close",
"Cannot write CRC32Zlib to file \'%s\', fopen() errno %d (%s)", f.c_str(), errno, strerror(errno));
963 } else {
966 }
967
968
969
971
974
977 }
978
980 }
virtual int wr_close(LOG_CHN *log_chn, int run_number)=0
INT cm_msg(INT message_type, const char *filename, INT line, const char *routine, const char *format,...)
static FILE * fopen_wx(const char *filename)
static std::string xpathname(const char *xpath, int level)
◆ wr_get_chain()
| std::string WriterCRC32Zlib::wr_get_chain |
( |
| ) |
|
|
inlinevirtual |
◆ wr_get_file_ext()
| std::string WriterCRC32Zlib::wr_get_file_ext |
( |
| ) |
|
|
inlinevirtual |
◆ wr_open()
| int WriterCRC32Zlib::wr_open |
( |
LOG_CHN * |
log_chn, |
|
|
int |
run_number |
|
) |
| |
|
inlinevirtual |
Implements WriterInterface.
Definition at line 906 of file mlogger.cxx.
907 {
909
911 printf(
"WriterCRC32Zlib: open path [%s], level %d\n", log_chn->
path.c_str(),
fLevel);
912
914
917
920 }
921
923
924 fCrc32 = crc32(0, Z_NULL, 0);
925
927 }
virtual int wr_open(LOG_CHN *log_chn, int run_number)=0
◆ wr_write()
| int WriterCRC32Zlib::wr_write |
( |
LOG_CHN * |
log_chn, |
|
|
const void * |
data, |
|
|
const int |
size |
|
) |
| |
|
inlinevirtual |
Implements WriterInterface.
Definition at line 929 of file mlogger.cxx.
930 {
932 printf(
"WriterCRC32Zlib: write path [%s], size %d\n", log_chn->
path.c_str(), size);
933
935
937
940
943 }
944
946 }
virtual int wr_write(LOG_CHN *log_chn, const void *data, const int size)=0
◆ fCrc32
| uLong WriterCRC32Zlib::fCrc32 |
|
private |
◆ fLevel
| int WriterCRC32Zlib::fLevel |
|
private |
◆ fWr
The documentation for this class was generated from the following file: