Public Member Functions | |
void | checkCount () |
void | saveReg (void *buf, int len) |
Worker (const std::string &s, int m) | |
void | writeReg () |
Public Attributes | |
int | cnt_ |
int | file_num_ |
std::string | filename_ |
int | max_ |
OutPtr | ost_ |
SaveArea | reg_ |
Definition at line 40 of file TestConsumer.cc.
edmtest::Worker::Worker | ( | const std::string & | s, | |
int | m | |||
) |
void edmtest::Worker::checkCount | ( | ) |
Definition at line 65 of file TestConsumer.cc.
References edmtest::makeFile().
Referenced by edmtest::TestConsumer::bufferReady().
00066 { 00067 if(cnt_!=0 && (cnt_%max_) == 0) 00068 { 00069 ++file_num_; 00070 ost_ = makeFile(filename_,file_num_); 00071 writeReg(); 00072 } 00073 ++cnt_; 00074 00075 }
Definition at line 87 of file TestConsumer.cc.
References reg_.
Referenced by edmtest::TestConsumer::sendRegistry().
void edmtest::Worker::writeReg | ( | ) |
Definition at line 77 of file TestConsumer.cc.
References len, reg_, and edm::ProductRegistry::size().
Referenced by edmtest::TestConsumer::sendRegistry().
00078 { 00079 if(!reg_.empty()) 00080 { 00081 int len = reg_.size(); 00082 ost_->write((const char*)(&len),sizeof(int)); 00083 ost_->write((const char*)®_[0],len); 00084 } 00085 }
Definition at line 46 of file TestConsumer.cc.
Definition at line 45 of file TestConsumer.cc.
std::string edmtest::Worker::filename_ |
Definition at line 44 of file TestConsumer.cc.
Definition at line 47 of file TestConsumer.cc.
Definition at line 49 of file TestConsumer.cc.