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
InitMsgBuilder
Definition: InitMsgBuilder.h:9
StreamerOutputFile::~StreamerOutputFile
~StreamerOutputFile()
Definition: StreamerOutputFile.cc:4
StreamerOutputFile::streamerfile_
edm::propagate_const< std::shared_ptr< OutputFile > > streamerfile_
Definition: StreamerOutputFile.h:64
propagate_const.h
StreamerOutputFile::close
void close()
Definition: StreamerOutputFile.h:57
StreamerFileIO.h
StreamerOutputFile::StreamerOutputFile
StreamerOutputFile(const std::string &name)
Definition: StreamerOutputFile.cc:6
InitMessage.h
EventMsgView
Definition: EventMessage.h:72
uint32
unsigned int uint32
Definition: MsgTools.h:13
EventMsgBuilder
Definition: EventMsgBuilder.h:8
edm::propagate_const
Definition: propagate_const.h:32
InitMsgBuilder.h
EventMsgBuilder.h
StreamerOutputFile::write
void write(const InitMsgBuilder &)
Definition: StreamerOutputFile.cc:51
StreamerOutputFile
Definition: StreamerOutputFile.h:23
StreamerOutputFile::writeStart
void writeStart(const InitMsgView &inview)
Definition: StreamerOutputFile.cc:75
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MsgTools.h
StreamerOutputFile::writeEventFragment
uint64 writeEventFragment(uint32 fragIndex, uint32 fragCount, const char *dataPtr, uint32 dataSize)
Definition: StreamerOutputFile.cc:29
uint64
unsigned long long uint64
Definition: MsgTools.h:14
EventMessage.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
StreamerOutputFile::writeEventHeader
void writeEventHeader(const EventMsgView &ineview)
Definition: StreamerOutputFile.cc:42
StreamerOutputFile::adler32
uint32 adler32() const
Definition: StreamerOutputFile.h:55
StreamerOutputFile::writeInitFragment
void writeInitFragment(uint32 fragIndex, uint32 fragCount, const char *dataPtr, uint32 dataSize)
Definition: StreamerOutputFile.cc:66
InitMsgView
Definition: InitMessage.h:61