test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
StreamerOutputFile.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_StreamerOutputFile_h
2 #define IOPool_Streamer_StreamerOutputFile_h
3 
7 
9 
12 
15 
17 #include <memory>
18 
19 #include <exception>
20 #include <fstream>
21 #include <iostream>
22 
27  {
28  public:
29  explicit StreamerOutputFile(const std::string& name);
34 
35  void write(const InitMsgBuilder&);
40  void write(const InitMsgView&);
41 
42  void writeInitFragment(uint32 fragIndex, uint32 fragCount,
43  const char *dataPtr, uint32 dataSize);
44 
52  uint64 write(const EventMsgView&);
53 
54  uint64 writeEventFragment(uint32 fragIndex, uint32 fragCount,
55  const char *dataPtr, uint32 dataSize);
56 
57  uint32 adler32() const { return streamerfile_->adler32(); }
58 
59  private:
60  void writeEventHeader(const EventMsgView& ineview);
61  void writeStart(const InitMsgView& inview);
62 
63  private:
65 };
66 
67 #endif
uint64 writeEventFragment(uint32 fragIndex, uint32 fragCount, const char *dataPtr, uint32 dataSize)
void write(const InitMsgBuilder &)
void writeEventHeader(const EventMsgView &ineview)
edm::propagate_const< std::shared_ptr< OutputFile > > streamerfile_
unsigned int uint32
Definition: MsgTools.h:13
uint32 adler32() const
StreamerOutputFile(const std::string &name)
unsigned long long uint64
Definition: MsgTools.h:14
void writeInitFragment(uint32 fragIndex, uint32 fragCount, const char *dataPtr, uint32 dataSize)
void writeStart(const InitMsgView &inview)