#include <StreamerFileIO.h>
Public Member Functions | |
uint32 | adler32 () const |
void | close () |
uint64 | current_offset () const |
std::string | fileName () const |
OutputFile (const std::string &name, uint32 padding=0) | |
void | set_current_offset (uint64 v) |
void | set_do_adler (bool v) |
bool | write (const char *ptr, size_t n, bool doPadding=false) |
bool | writePadding () |
~OutputFile () | |
Private Attributes | |
uint32 | adlera_ |
uint32 | adlerb_ |
uint64 | current_offset_ |
bool | do_adler_ |
std::string | filename_ |
edm::propagate_const< std::shared_ptr< std::ofstream > > | ost_ |
uint32 | padding_ |
std::unique_ptr< char[]> | paddingBuf_ |
Class representing Output (Streamer) file.
Definition at line 17 of file StreamerFileIO.h.
|
explicit |
Definition at line 10 of file StreamerFileIO.cc.
References Exception, Skims_PA_cff::name, ost_, Header::PADDING, padding_, and paddingBuf_.
edm::streamer::OutputFile::~OutputFile | ( | ) |
CTOR, takes file path name as argument
Definition at line 28 of file StreamerFileIO.cc.
References ost_.
|
inline |
void edm::streamer::OutputFile::close | ( | void | ) |
Definition at line 54 of file StreamerFileIO.cc.
References Exception, filename_, ost_, padding_, and writePadding().
Referenced by esMonitoring.AsyncLineReaderMixin::handle_close(), and esMonitoring.FDJsonServer::handle_close().
|
inline |
|
inline |
|
inline |
Definition at line 37 of file StreamerFileIO.h.
References current_offset_, and findQualityFiles::v.
|
inline |
bool edm::streamer::OutputFile::write | ( | const char * | ptr, |
size_t | n, | ||
bool | doPadding = false |
||
) |
Definition at line 30 of file StreamerFileIO.cc.
References cms::Adler32(), adlera_, adlerb_, current_offset_, do_adler_, dqmiodumpmetadata::n, ost_, padding_, and writePadding().
Referenced by writePadding().
bool edm::streamer::OutputFile::writePadding | ( | ) |
Definition at line 44 of file StreamerFileIO.cc.
References mod(), ost_, padding_, paddingBuf_, runTheMatrix::ret, and write().
Referenced by close(), and write().
|
private |
Definition at line 44 of file StreamerFileIO.h.
|
private |
Definition at line 45 of file StreamerFileIO.h.
|
private |
Definition at line 41 of file StreamerFileIO.h.
Referenced by current_offset(), set_current_offset(), and write().
|
private |
Location of current ioptr
Definition at line 43 of file StreamerFileIO.h.
Referenced by set_do_adler(), and write().
|
private |
Definition at line 49 of file StreamerFileIO.h.
Referenced by close(), and fileName().
|
private |
Definition at line 48 of file StreamerFileIO.h.
Referenced by close(), OutputFile(), write(), writePadding(), and ~OutputFile().
|
private |
Definition at line 46 of file StreamerFileIO.h.
Referenced by close(), OutputFile(), write(), and writePadding().
|
private |
Definition at line 50 of file StreamerFileIO.h.
Referenced by OutputFile(), and writePadding().