CMS 3D CMS Logo

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, const char* dataPtr, uint32 dataSize);
43 
51  uint64 write(const EventMsgView&);
52 
53  uint64 writeEventFragment(uint32 fragIndex, uint32 fragCount, const char* dataPtr, uint32 dataSize);
54 
55  uint32 adler32() const { return streamerfile_->adler32(); }
56 
57  void close() { streamerfile_->close(); }
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)
uint32 adler32() const
unsigned int uint32
Definition: MsgTools.h:13
StreamerOutputFile(const std::string &name)
unsigned long long uint64
Definition: MsgTools.h:14
void writeInitFragment(uint32 fragIndex, uint32 fragCount, const char *dataPtr, uint32 dataSize)
edm::propagate_const< std::shared_ptr< edm::streamer::OutputFile > > streamerfile_
void writeStart(const InitMsgView &inview)