00001 #ifndef BESIII_RAWFILE_WRITER_H 00002 #define BESIII_RAWFILE_WRITER_H 00003 00004 #include "RawFile/raw_ofstream.h" 00005 00006 class RawFileWriter 00007 { 00008 public : 00009 00010 // all public interfaces should be thread safe 00011 RawFileWriter(const std::string& fname); 00012 virtual ~RawFileWriter(); 00013 00014 int writeEvent(const uint32_t* pevt); 00015 00016 00017 private : 00018 00019 RawFileWriter(); //stop default 00020 00021 00022 private : 00023 00024 raw_ofstream* m_wfs; 00025 }; 00026 00027 #endif