| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
14 class SequentialOutputStream : public OutputStream {
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;
35 bool m_numericFilename;
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
SequentialOutputStream::makeFilename
void makeFilename()
Definition: SequentialOutputStream.cpp:62
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
SequentialOutputStream::m_events
unsigned int m_events
Definition: SequentialOutputStream.h:38
SequentialOutputStream::writeObjects
StatusCode writeObjects() override
OutputStream override: Select the different objects and write them to file.
Definition: SequentialOutputStream.cpp:35
OutputStream
A small to stream Data I/O.
Definition: OutputStream.h:29
std::string
STL class.
SequentialOutputStream::~SequentialOutputStream
~SequentialOutputStream() override=default
Standard Destructor.
SequentialOutputStream::execute
StatusCode execute() override
Definition: SequentialOutputStream.cpp:47
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
SequentialOutputStream::m_iFile
unsigned int m_iFile
Definition: SequentialOutputStream.h:39
SequentialOutputStream::SequentialOutputStream
SequentialOutputStream(const std::string &nam, ISvcLocator *svc)
Standard algorithm Constructor.
Definition: SequentialOutputStream.cpp:24
SequentialOutputStream
Extension of OutputStream to write run records after last event.
Definition: SequentialOutputStream.h:14
SequentialOutputStream::m_numericFilename
bool m_numericFilename
Definition: SequentialOutputStream.h:35
SequentialOutputStream::m_nNumbersAdded
unsigned int m_nNumbersAdded
Definition: SequentialOutputStream.h:34
OutputStream.h
SequentialOutputStream::m_eventsPerFile
unsigned int m_eventsPerFile
Definition: SequentialOutputStream.h:33