#include <dqdumpfile.hh>
Definition at line 65 of file dqdumpfile.hh.
◆ DumpFile() [1/3]
◆ DumpFile() [2/3]
DumpFile::DumpFile |
( |
std::string const & | filename | ) |
|
|
inline |
Definition at line 142 of file dqdumpfile.hh.
143 :
145 {
148 uint32_t pack_size;
149 m_stream.read((
char*) &pack_size,
sizeof(pack_size));
151 }
153 }
std::vector< std::size_t > m_pos
◆ DumpFile() [3/3]
Definition at line 62 of file dump_file.hh.
63 :
67 {}
std::size_t const m_max_file_size
std::size_t m_current_file_size
◆ ~DumpFile()
◆ operator=()
◆ begin()
Definition at line 155 of file dqdumpfile.hh.
156 {
157 return iterator(this, 0);
158 }
◆ end()
◆ operator[]()
Packet DumpFile::operator[] |
( |
std::size_t | n | ) |
|
|
inline |
Definition at line 165 of file dqdumpfile.hh.
166 {
169
170 uint32_t pack_size;
171 m_stream.read((
char*) &pack_size,
sizeof(pack_size));
172
174 m_stream.read(dg.data(), pack_size);
175 return dg;
176 }
◆ size()
std::size_t DumpFile::size |
( |
| ) |
const |
|
inline |
◆ write()
bool DumpFile::write |
( |
const CLBDataGram * | data, |
|
|
unsigned int | detector_id ) |
|
inline |
Definition at line 74 of file dump_file.hh.
75 {
77 {
79 {
82
85 }
86 }
87 else
88 {
91 }
92
94 {
95 return false;
96 }
97
98 unsigned int const packet_size =
data->size();
100 static_cast<const char*>(
101 static_cast<const void*>(
102 &packet_size)),
103 sizeof(packet_size));
104
106 {
109 {
111 return true;
112 }
113 else
114 {
115 return false;
116 }
117 }
118 return false;
119 }
std::string name(std::size_t run_number, unsigned int detector_id) const
◆ m_stream
std::ifstream DumpFile::m_stream |
|
private |
◆ m_pos
◆ m_outfile
std::ofstream DumpFile::m_outfile |
|
private |
◆ m_fg
◆ m_current_file_size
std::size_t DumpFile::m_current_file_size |
|
private |
◆ m_max_file_size
std::size_t const DumpFile::m_max_file_size |
|
private |
The documentation for this class was generated from the following files: