#include <RawFileUtil.h>
◆ FileEndRecord() [1/2]
FileEndRecord::FileEndRecord |
( |
| ) |
|
◆ FileEndRecord() [2/2]
FileEndRecord::FileEndRecord |
( |
| ) |
|
◆ dump() [1/2]
void FileEndRecord::dump |
( |
std::ostream & |
os = std::cout | ) |
const |
Definition at line 337 of file RawFileUtil.cxx.
337 {
338 os << "[RawFile] FileEndRecord:" << std::endl << std::hex
339 <<
"[RawFile] \tmarker : 0x" << m_record.
marker << std::endl
340 <<
"[RawFile] \trecord_size : 0x" << m_record.
record_size << std::endl
341 <<
"[RawFile] \tdate : 0x" << m_record.
date << std::endl
342 <<
"[RawFile] \ttime : 0x" << m_record.
time << std::endl
343 <<
"[RawFile] \tevents_in_file : 0x" << m_record.
events_in_file << std::endl
344 <<
"[RawFile] \tdata_in_file : 0x" << m_record.
data_in_file << std::endl
345 <<
"[RawFile] \tevents_in_run : 0x" << m_record.
events_in_run << std::endl
346 <<
"[RawFile] \tdata_in_run : 0x" << m_record.
data_in_run << std::endl
347 <<
"[RawFile] \tstatus : 0x" << m_record.
status << std::endl
348 <<
"[RawFile] \tend_marker : 0x" << m_record.
end_marker
349 << std::dec << std::endl;
350}
◆ dump() [2/2]
void FileEndRecord::dump |
( |
std::ostream & |
os = std::cout | ) |
const |
◆ getRecord() [1/2]
◆ getRecord() [2/2]
◆ setDataInFile() [1/2]
void FileEndRecord::setDataInFile |
( |
uint32_t |
file_size | ) |
|
|
inline |
◆ setDataInFile() [2/2]
void FileEndRecord::setDataInFile |
( |
uint32_t |
file_size | ) |
|
|
inline |
◆ setDataInRun() [1/2]
void FileEndRecord::setDataInRun |
( |
uint32_t |
run_size | ) |
|
|
inline |
◆ setDataInRun() [2/2]
void FileEndRecord::setDataInRun |
( |
uint32_t |
run_size | ) |
|
|
inline |
◆ setEventsInFile() [1/2]
void FileEndRecord::setEventsInFile |
( |
uint32_t |
file_nevt | ) |
|
|
inline |
◆ setEventsInFile() [2/2]
void FileEndRecord::setEventsInFile |
( |
uint32_t |
file_nevt | ) |
|
|
inline |
◆ setEventsInRun() [1/2]
void FileEndRecord::setEventsInRun |
( |
uint32_t |
run_nevt | ) |
|
|
inline |
◆ setEventsInRun() [2/2]
void FileEndRecord::setEventsInRun |
( |
uint32_t |
run_nevt | ) |
|
|
inline |
◆ setStatus() [1/2]
void FileEndRecord::setStatus |
( |
uint32_t |
status | ) |
|
|
inline |
◆ setStatus() [2/2]
void FileEndRecord::setStatus |
( |
uint32_t |
status | ) |
|
|
inline |
◆ makeEndRecord [1/2]
Definition at line 146 of file RawFileUtil.cxx.
146 {
147
149
152 )).fail()) {
153
155 }
156
157
158 if (record.m_record.
marker != 0x1234dddd) {
159
161 }
162 if (record.m_record.
end_marker != 0x1234eeee) {
163
165 }
166
168
170 }
171
172 return is;
173}
const data_separator_record & getRecord() const
◆ makeEndRecord [2/2]
Definition at line 146 of file RawFileUtil.cxx.
146 {
147
149
152 )).fail()) {
153
155 }
156
157
158 if (record.m_record.
marker != 0x1234dddd) {
159
161 }
162 if (record.m_record.
end_marker != 0x1234eeee) {
163
165 }
166
168
170 }
171
172 return is;
173}
◆ operator<< [1/2]
Definition at line 222 of file RawFileUtil.cxx.
222 {
223
224 if (os.write((
char*)(&record.m_record),
sizeof(
file_end_record)).fail()) {
225 std::cerr << "[RawFile] Error occurred while writing file" << std::endl;
227 }
228
229 return os;
230}
◆ operator<< [2/2]
Definition at line 222 of file RawFileUtil.cxx.
222 {
223
224 if (os.write((
char*)(&record.m_record),
sizeof(
file_end_record)).fail()) {
225 std::cerr << "[RawFile] Error occurred while writing file" << std::endl;
227 }
228
229 return os;
230}
◆ operator>> [1/2]
Definition at line 121 of file RawFileUtil.cxx.
121 {
122
123 if (is.read((
char*)(&record.m_record),
sizeof(
file_end_record)).fail()) {
124
126 }
127
128
129 if (record.m_record.
marker != 0x1234dddd) {
130
132 }
133 if (record.m_record.
end_marker != 0x1234eeee) {
134
136 }
137
139
141 }
142
143 return is;
144}
◆ operator>> [2/2]
Definition at line 121 of file RawFileUtil.cxx.
121 {
122
123 if (is.read((
char*)(&record.m_record),
sizeof(
file_end_record)).fail()) {
124
126 }
127
128
129 if (record.m_record.
marker != 0x1234dddd) {
130
132 }
133 if (record.m_record.
end_marker != 0x1234eeee) {
134
136 }
137
139
141 }
142
143 return is;
144}
The documentation for this class was generated from the following files: