15 typedef boost::shared_ptr<std::ofstream>
OutPtr;
20 std::ostringstream ost;
21 ost << base << num <<
".dat";
33 <<
"cannot open file " <<
name;
51 void saveReg(
void* buf,
int len);
80 int len =
reg_.size();
81 ost_->write((
const char*)(&len),
sizeof(
int));
82 ost_->write((
const char*)&
reg_[0],len);
89 memcpy(&
reg_[0],buf,len);
97 worker_(new
Worker(ps.getParameter<std::
string>(
"fileName"),
98 ps.getUntrackedParameter<int>(
"numPerFile",1<<31))),
116 worker_->ost_->write((
const char*)(&sz),
sizeof(
int));
std::string makeFileName(const std::string &base, int num)
TestConsumer(edm::ParameterSet const &ps, edm::EventBuffer *buf)
boost::shared_ptr< Worker > worker_
boost::shared_ptr< std::ofstream > OutPtr
std::vector< char > SaveArea
OutPtr makeFile(const std::string name, int num)
void sendRegistry(void *buf, int len)
void saveReg(void *buf, int len)
Worker(ModuleDescription const &iMD, WorkerParams const &iWP)