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 {
21  {
23  const char* headerPtr;
25 
28  const char* dataPtr;
30  };
31 
33  {
34  const char* headerPtr;
36 
39  const char* dataPtr;
41  };
42 
45  {
46  public:
47 
48  explicit StreamerFileWriter(edm::ParameterSet const& ps);
49  explicit StreamerFileWriter(std::string const& fileName);
51 
52  static void fillDescription(ParameterSetDescription& desc);
53 
54  void doOutputHeader(InitMsgBuilder const& init_message);
55  void doOutputHeader(InitMsgView const& init_message);
57 
58  void doOutputEvent(EventMsgBuilder const& msg);
59  void doOutputEvent(EventMsgView const& msg);
61 
62  void start(){}
63  void stop(){};
64 
65  uint32 get_adler32() const { return stream_writer_->adler32();}
66 
67  private:
68 
69  std::auto_ptr<StreamerOutputFile> stream_writer_;
70 
71  };
72 }
73 #endif
void doOutputHeaderFragment(StreamerFileWriterHeaderParams const &)
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)
void doOutputEventFragment(StreamerFileWriterEventParams const &)
std::auto_ptr< StreamerOutputFile > stream_writer_