#include <RawFileWriter.h>
Public Member Functions | |
RawFileWriter (const std::string &fname) | |
RawFileWriter (const std::string &fname) | |
int | writeEvent (const uint32_t *pevt) |
int | writeEvent (const uint32_t *pevt) |
virtual | ~RawFileWriter () |
virtual | ~RawFileWriter () |
Private Member Functions | |
RawFileWriter () | |
RawFileWriter () | |
Private Attributes | |
raw_ofstream * | m_wfs |
raw_ofstream * | m_wfs |
|
00004 { 00005 m_wfs = raw_ofstream::instance(fname); 00006 }
|
|
00009 { 00010 raw_ofstream::release(); 00011 }
|
|
|
|
|
|
|
|
|
|
|
|
00014 { 00015 const char* pbuf = reinterpret_cast<const char*>(pevt); 00016 int sizeBytes = pevt[1] * 4; //unit of size is word 00017 00018 raw_ofstream::lock(); 00019 int nfile = m_wfs->write_event(pbuf, sizeBytes); 00020 raw_ofstream::unlock(); 00021 00022 return nfile; 00023 }
|
|
|
|
|