The Gaudi Framework  v33r1 (b1225454)
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};
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
StatusCode writeObjects() override
OutputStream override: Select the different objects and write them to file.
Implementation of property with value of concrete type.
Definition: Property.h:370
Gaudi::Property< bool > m_numericFilename
A small to stream Data I/O.
Definition: OutputStream.h:38
StatusCode execute() override
Working entry point.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:61
T max(T... args)
Gaudi::Property< unsigned int > m_eventsPerFile
Extension of OutputStream to write run records after last event.
Gaudi::Property< unsigned int > m_nNumbersAdded