ATLAS Offline Software
Loading...
Searching...
No Matches
ByteStreamDataWriterV5.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef BYTESTREAMCNVSVC_BYTESTREAMDATAWRITERV5_H
6#define BYTESTREAMCNVSVC_BYTESTREAMDATAWRITERV5_H
7
12
14
16class DataWriter;
17}
18
23
25public:
26
27 ByteStreamDataWriterV5(const std::string& writingPath,
28 const std::string& fileNameCore,
29 const EventStorage::run_parameters_record& rPar,
30 const std::vector<std::string>& fmdStrings,
31 unsigned int maxFileNE,
32 unsigned int maxFileMB,
33 unsigned int startIndex,
34 EventStorage::CompressionType compression,
35 unsigned int compLevel);
36
37 ByteStreamDataWriterV5(const std::string& writingPath,
38 boost::shared_ptr<EventStorage::FileNameCallback> theFNCB,
39 const EventStorage::run_parameters_record& rPar,
40 const std::string& project,
41 const std::string& streamType,
42 const std::string& streamName,
43 const std::string& stream,
44 unsigned int lumiBlockNumber,
45 const std::string& applicationName,
46 const std::vector<std::string>& fmdStrings,
47 unsigned int maxFileNE,
48 unsigned int maxFileMB,
49 EventStorage::CompressionType compression,
50 unsigned int compLevel);
51
53
54 // cannot be copied
57
58 virtual EventStorage::DWError putData(unsigned int dataSize, const void *data) override;
59
60 virtual bool good() const override;
61
62private:
63
64 std::unique_ptr<offline_EventStorage_v5::DataWriter> m_writer;
65};
66
67
68#endif // BYTESTREAMCNVSVC_BYTESTREAMDATAWRITERV5_H
This file contains the class definition for the ByteStreamDataWriter class.
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
T_ResultType project(ParameterMapping::type< N > parameter_map, const T_Matrix &matrix)
virtual EventStorage::DWError putData(unsigned int dataSize, const void *data) override
Write a single block of data.
ByteStreamDataWriterV5(const ByteStreamDataWriterV5 &)=delete
virtual bool good() const override
Feedback to user, check if open and last write went OK.
ByteStreamDataWriterV5 & operator=(const ByteStreamDataWriterV5 &)=delete
ByteStreamDataWriterV5(const std::string &writingPath, const std::string &fileNameCore, const EventStorage::run_parameters_record &rPar, const std::vector< std::string > &fmdStrings, unsigned int maxFileNE, unsigned int maxFileMB, unsigned int startIndex, EventStorage::CompressionType compression, unsigned int compLevel)
std::unique_ptr< offline_EventStorage_v5::DataWriter > m_writer