IOPool
Streamer
interface
StreamerFileIO.h
Go to the documentation of this file.
1
#ifndef IOPool_Streamer_StreamerFileIO_h
2
#define IOPool_Streamer_StreamerFileIO_h
3
9
#include "
IOPool/Streamer/interface/MsgTools.h
"
10
#include "
FWCore/Utilities/interface/propagate_const.h
"
11
#include <memory>
12
#include <iosfwd>
13
#include <string>
14
15
//-------------------------------------------------------
16
17
class
OutputFile
21
{
22
public
:
23
explicit
OutputFile
(
const
std::string
&
name
);
27
~OutputFile
();
28
29
bool
write
(
const
char
* ptr,
size_t
n
);
30
31
std::string
fileName
()
const
{
return
filename_
; }
32
uint64
current_offset
()
const
{
return
current_offset_
; }
33
uint32
adler32
()
const
{
return
(
adlerb_
<< 16) |
adlera_
; }
34
35
void
set_do_adler
(
bool
v
) {
do_adler_
=
v
; }
36
void
set_current_offset
(
uint64
v
) {
current_offset_
=
v
; }
37
void
close
();
38
39
private
:
40
uint64
current_offset_
;
42
bool
do_adler_
;
43
uint32
adlera_
;
44
uint32
adlerb_
;
45
46
edm::propagate_const<std::shared_ptr<std::ofstream>
>
ost_
;
47
std::string
filename_
;
48
};
49
50
#endif
OutputFile::~OutputFile
~OutputFile()
Definition:
StreamerFileIO.cc:20
OutputFile::adlera_
uint32 adlera_
Definition:
StreamerFileIO.h:43
dqmiodumpmetadata.n
n
Definition:
dqmiodumpmetadata.py:28
OutputFile::OutputFile
OutputFile(const std::string &name)
Definition:
StreamerFileIO.cc:7
OutputFile::do_adler_
bool do_adler_
Definition:
StreamerFileIO.h:42
propagate_const.h
OutputFile::current_offset
uint64 current_offset() const
Definition:
StreamerFileIO.h:32
OutputFile::write
bool write(const char *ptr, size_t n)
Definition:
StreamerFileIO.cc:22
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
OutputFile::set_current_offset
void set_current_offset(uint64 v)
Definition:
StreamerFileIO.h:36
uint32
unsigned int uint32
Definition:
MsgTools.h:13
edm::propagate_const
Definition:
propagate_const.h:32
OutputFile::set_do_adler
void set_do_adler(bool v)
Definition:
StreamerFileIO.h:35
OutputFile::filename_
std::string filename_
Definition:
StreamerFileIO.h:47
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
OutputFile
Definition:
StreamerFileIO.h:17
MsgTools.h
OutputFile::current_offset_
uint64 current_offset_
Definition:
StreamerFileIO.h:40
OutputFile::ost_
edm::propagate_const< std::shared_ptr< std::ofstream > > ost_
Definition:
StreamerFileIO.h:46
OutputFile::fileName
std::string fileName() const
Definition:
StreamerFileIO.h:31
uint64
unsigned long long uint64
Definition:
MsgTools.h:14
OutputFile::adler32
uint32 adler32() const
Definition:
StreamerFileIO.h:33
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
OutputFile::close
void close()
Definition:
StreamerFileIO.cc:33
OutputFile::adlerb_
uint32 adlerb_
Definition:
StreamerFileIO.h:44
Generated for CMSSW Reference Manual by
1.8.16