16 ost_(new
std::ofstream(
name.c_str(),
std::ios_base::binary |
std::ios_base::
out)),
18 if (!
ost_->is_open()) {
19 throw cms::Exception(
"OutputFile",
"OutputFile") <<
"Error Opening Output File: " <<
name <<
"\n";
21 ost_->rdbuf()->pubsetbuf(
nullptr, 0);
58 <<
"Error writing padding to the output file: " <<
filename_ <<
": " << std::strerror(errno);
ret
prodAgent to be discontinued
OutputFile(const std::string &name, uint32 padding=0)
edm::propagate_const< std::shared_ptr< std::ofstream > > ost_
void Adler32(char const *data, size_t len, uint32_t &a, uint32_t &b)
bool write(const char *ptr, size_t n, bool doPadding=false)
unsigned long long uint64
std::unique_ptr< char[]> paddingBuf_
T mod(const T &a, const T &b)