Definition at line 1000 of file mlogger.cxx.
◆ WriterCRC32C()
Definition at line 1003 of file mlogger.cxx.
1004 {
1006 printf(
"WriterCRC32C: path [%s], level %d\n", log_chn->
path.c_str(), level);
1007
1008 assert(wr != NULL);
1009
1013 }
◆ ~WriterCRC32C()
| WriterCRC32C::~WriterCRC32C |
( |
| ) |
|
|
inline |
Definition at line 1015 of file mlogger.cxx.
1016 {
1018 printf("WriterCRC32C: destructor\n");
1020 }
◆ wr_close()
| int WriterCRC32C::wr_close |
( |
LOG_CHN * |
log_chn, |
|
|
int |
run_number |
|
) |
| |
|
inlinevirtual |
Implements WriterInterface.
Definition at line 1064 of file mlogger.cxx.
1065 {
1067 std::string f = x + ".crc32c";
1068
1070 printf(
"WriterCRC32C: close path [%s], level %d, file [%s]\n", log_chn->
path.c_str(),
fLevel, f.c_str());
1071
1073
1074 cm_msg(
MLOG,
"CRC32C",
"File \'%s\' CRC32C checksum: 0x%08lx, %.0f bytes", x.c_str(), (
unsigned long)
fCrc32,
fBytesIn);
1075
1078 cm_msg(
MERROR,
"WriterCRC32C::wr_close",
"Cannot write CRC32C to file \'%s\', fopen() errno %d (%s)", f.c_str(), errno, strerror(errno));
1079 } else {
1080 fprintf(
fp,
"%08lx %.0f %s\n", (
unsigned long)
fCrc32,
fBytesIn, x.c_str());
1082 }
1083
1084
1085
1087
1090
1093 }
1094
1096 }
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 WriterCRC32C::wr_get_chain |
( |
| ) |
|
|
inlinevirtual |
◆ wr_get_file_ext()
| std::string WriterCRC32C::wr_get_file_ext |
( |
| ) |
|
|
inlinevirtual |
◆ wr_open()
| int WriterCRC32C::wr_open |
( |
LOG_CHN * |
log_chn, |
|
|
int |
run_number |
|
) |
| |
|
inlinevirtual |
Implements WriterInterface.
Definition at line 1022 of file mlogger.cxx.
1023 {
1025
1027 printf(
"WriterCRC32C: open path [%s], level %d\n", log_chn->
path.c_str(),
fLevel);
1028
1030
1033
1036 }
1037
1039
1041
1043 }
virtual int wr_open(LOG_CHN *log_chn, int run_number)=0
◆ wr_write()
| int WriterCRC32C::wr_write |
( |
LOG_CHN * |
log_chn, |
|
|
const void * |
data, |
|
|
const int |
size |
|
) |
| |
|
inlinevirtual |
Implements WriterInterface.
Definition at line 1045 of file mlogger.cxx.
1046 {
1048 printf(
"WriterCRC32C: write path [%s], size %d\n", log_chn->
path.c_str(), size);
1049
1051
1053
1056
1059 }
1060
1062 }
virtual int wr_write(LOG_CHN *log_chn, const void *data, const int size)=0
uint32_t crc32c(uint32_t crc, const void *buf, size_t len)
◆ fCrc32
| uint32_t WriterCRC32C::fCrc32 |
|
private |
◆ fLevel
◆ fWr
The documentation for this class was generated from the following file: