The Gaudi Framework  v30r3 (a5ef0a68)
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 
24  StatusCode execute() override;
25 
26 private:
28  Gaudi::Property<bool> m_numericFilename{this, "NumericFilename", false};
30 
31  // Data members
32  unsigned int m_events = 0;
33  unsigned int m_iFile = 1;
34 
35  // Helper Methods
36  void makeFilename();
37 };
38 
39 #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:381
Gaudi::Property< bool > m_numericFilename
A small to stream Data I/O.
Definition: OutputStream.h:29
StatusCode execute() override
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:51
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