The Gaudi Framework  master (37c0b60a)
SequentialOutputStream.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDISVC_PERSISTENCYSVC_SEQUENTIALOUTPUTSTREAM_H
12 #define GAUDISVC_PERSISTENCYSVC_SEQUENTIALOUTPUTSTREAM_H
13 
14 #include <string>
15 // Required for inheritance
16 #include "OutputStream.h"
17 
25 
26 protected:
28  StatusCode writeObjects() override;
29 
30 public:
31  using OutputStream::OutputStream;
32 
33  StatusCode execute() override;
34 
35 private:
37  Gaudi::Property<bool> m_numericFilename{ this, "NumericFilename", false };
38  Gaudi::Property<unsigned int> m_nNumbersAdded{ this, "NumbersAdded", 6 };
39 
40  // Data members
41  unsigned int m_events = 0;
42  unsigned int m_iFile = 1;
43 
44  // Helper Methods
45  void makeFilename();
46 };
47 
48 #endif // GAUDISVC_PERSISTENCYSVC_SEQUENTIALOUTPUTSTREAM_H
OutputStream
A small to stream Data I/O.
Definition: OutputStream.h:38
SequentialOutputStream::m_events
unsigned int m_events
Definition: SequentialOutputStream.h:41
SequentialOutputStream::execute
StatusCode execute() override
Working entry point.
Definition: SequentialOutputStream.cpp:45
SequentialOutputStream
Definition: SequentialOutputStream.h:24
SequentialOutputStream::writeObjects
StatusCode writeObjects() override
OutputStream override: Select the different objects and write them to file.
Definition: SequentialOutputStream.cpp:34
SequentialOutputStream::makeFilename
void makeFilename()
Definition: SequentialOutputStream.cpp:59
SequentialOutputStream::m_numericFilename
Gaudi::Property< bool > m_numericFilename
Definition: SequentialOutputStream.h:37
SequentialOutputStream::m_eventsPerFile
Gaudi::Property< unsigned int > m_eventsPerFile
Definition: SequentialOutputStream.h:36
SequentialOutputStream::m_iFile
unsigned int m_iFile
Definition: SequentialOutputStream.h:42
StatusCode
Definition: StatusCode.h:65
SequentialOutputStream::m_nNumbersAdded
Gaudi::Property< unsigned int > m_nNumbersAdded
Definition: SequentialOutputStream.h:38
OutputStream.h
std::numeric_limits::max
T max(T... args)
Gaudi::Property< unsigned int >