CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FRDEventFileWriter.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_FRDEventFileWriter_h
2 #define IOPool_Streamer_FRDEventFileWriter_h
3 
4 // $Id: FRDEventFileWriter.h,v 1.3 2010/02/18 09:19:02 mommsen Exp $
5 
8 
9 #include <fstream>
10 
12 {
13  public:
14 
15  explicit FRDEventFileWriter(edm::ParameterSet const& ps);
16  explicit FRDEventFileWriter(std::string const& fileName);
18 
19  void doOutputEvent(FRDEventMsgView const& msg);
20  void doOutputEventFragment(unsigned char* dataPtr,
21  unsigned long dataSize);
22 
23  uint32 adler32() const { return (adlerb_ << 16) | adlera_; }
24 
25  void start() {}
26  void stop() {}
27 
28  private:
29 
30  void initialize(std::string const& name);
31 
32  std::auto_ptr<std::ofstream> ost_;
33  std::string fileName_;
34 
37 
38 };
39 #endif
FRDEventFileWriter(edm::ParameterSet const &ps)
std::auto_ptr< std::ofstream > ost_
void doOutputEventFragment(unsigned char *dataPtr, unsigned long dataSize)
void initialize(std::string const &name)
unsigned int uint32
Definition: MsgTools.h:13
void doOutputEvent(FRDEventMsgView const &msg)
uint32 adler32() const