34 SeqFile(
const std::string& filename,
const std::string& rwflag,
35 char* streamerinfo =
nullptr,
int streamerinfo_size = 0,
36 bool filenameIsPattern =
false);
47 int write(
const char* buf);
49 int read(
char* buf,
int max);
53 void openFile(std::string filename,
bool readonly);
A class to manage I/O for a chain of blocked files.
std::string m_filenamePattern
Pattern for creating the file from the sequence number.
SeqFile(const SeqFile &)=delete
No copying.
SeqFile & operator=(const SeqFile &)=delete
No assignment.
int m_nb
when saving a file, the total number of bytes written, 0 when reading.
void openFile(std::string filename, bool readonly)
actually open the file
int m_streamerinfo_size
size(bytes) of StreamerInfo
std::unique_ptr< std::ios > m_stream
pointer to the filtering input or output stream
bool m_compressed
is file gzipped compressed?
int status() const
Returns status after constructor call.
static const int c_MaxFileSize
maximal size of one file (in Bytes).
std::string m_filename
Name of the opened file.
int m_nfile
file counter, starting at 0 (files are split after c_MaxFileSize bytes).
int write(const char *buf)
Write a record to a file.
char * m_streamerinfo
StreamerInfo.
int read(char *buf, int max)
Read a record from a file.
Abstract base class for different kinds of events.