The Gaudi Framework  v29r0 (ff2e7097)
SequentialOutputStream.h
Go to the documentation of this file.
1 #ifndef GAUDISVC_PERSISTENCYSVC_SEQUENTIALOUTPUTSTREAM_H
2 #define GAUDISVC_PERSISTENCYSVC_SEQUENTIALOUTPUTSTREAM_H
3 
4 #include <string>
5 // Required for inheritance
6 #include "OutputStream.h"
7 
15 {
16 
17 protected:
19  StatusCode writeObjects() override;
20 
21 public:
23 
25  ~SequentialOutputStream() override = default;
26 
27  StatusCode execute() override;
28 
29 private:
31  Gaudi::Property<bool> m_numericFilename{this, "NumericFilename", false};
33 
34  // Data members
35  unsigned int m_events = 0;
36  unsigned int m_iFile = 1;
37 
38  // Helper Methods
39  void makeFilename();
40 };
41 
42 #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:319
Gaudi::Property< bool > m_numericFilename
A small to stream Data I/O.
Definition: OutputStream.h:29
~SequentialOutputStream() override=default
Standard Destructor.
StatusCode execute() override
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
Gaudi::Property< unsigned int > m_eventsPerFile
Extension of OutputStream to write run records after last event.
OutputStream(const std::string &name, ISvcLocator *pSvcLocator)
Standard algorithm Constructor.
Gaudi::Property< unsigned int > m_nNumbersAdded