CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
StreamerFileWriter.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_StreamerFileWriter_h
2 #define IOPool_Streamer_StreamerFileWriter_h
3 
5 
12 
13 #include <iostream>
14 #include <vector>
15 #include <memory>
16 #include <string>
17 
18 namespace edm
19 {
22  {
23  public:
24 
25  explicit StreamerFileWriter(edm::ParameterSet const& ps);
26  explicit StreamerFileWriter(std::string const& fileName);
28 
29  static void fillDescription(ParameterSetDescription& desc);
30 
31  void doOutputHeader(InitMsgBuilder const& init_message);
32  void doOutputHeader(InitMsgView const& init_message);
33 
34  void doOutputEvent(EventMsgBuilder const& msg);
35  void doOutputEvent(EventMsgView const& msg);
36 
37  void start(){}
38  void stop(){};
39 
40  uint32 get_adler32() const { return stream_writer_->adler32();}
41 
42  private:
43 
44  std::auto_ptr<StreamerOutputFile> stream_writer_;
45 
46  };
47 }
48 #endif
StreamerFileWriter(edm::ParameterSet const &ps)
void doOutputHeader(InitMsgBuilder const &init_message)
unsigned int uint32
Definition: MsgTools.h:13
static void fillDescription(ParameterSetDescription &desc)
void doOutputEvent(EventMsgBuilder const &msg)
std::auto_ptr< StreamerOutputFile > stream_writer_