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  protected:
17 
19  StatusCode writeObjects() override;
20 
21  public:
22 
24  SequentialOutputStream(const std::string& nam, ISvcLocator* svc);
26  ~SequentialOutputStream() override = default;
27 
28  StatusCode execute() override;
29 
30  private:
31 
32  // Properties
33  unsigned int m_eventsPerFile;
34  unsigned int m_nNumbersAdded;
36 
37  // Data members
38  unsigned int m_events = 0;
39  unsigned int m_iFile = 1;
40 
41  // Helper Methods
42  void makeFilename();
43 
44 };
45 
46 #endif // GAUDISVC_PERSISTENCYSVC_SEQUENTIALOUTPUTSTREAM_H
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
StatusCode writeObjects() override
OutputStream override: Select the different objects and write them to file.
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:26
SequentialOutputStream(const std::string &nam, ISvcLocator *svc)
Standard algorithm Constructor.
Extension of OutputStream to write run records after last event.