Class Reference for E1039 Core & Analysis Software
PHIOManager.h
Go to the documentation of this file.
1 #ifndef __PHIOMANAGER_H__
2 #define __PHIOMANAGER_H__
3 
4 // Declaration of class PHIOManager
5 // Purpose: Abstract base class for file IO
6 // Author: Matthias Messer
7 
8 #include "phool.h"
9 
10 #include <string>
11 
12 class PHCompositeNode;
13 
14 class PHIOManager {
15 public:
16  virtual ~PHIOManager(){}
17 
18 public:
19  std::string getFilename() const {return filename;}
20  size_t getEventNumber() const { return eventNumber; }
21  void setEventNumber(const size_t evno) { eventNumber = evno; return;}
22  virtual void closeFile() = 0;
24  virtual void print() const = 0;
25 
26 protected:
27  PHIOManager();
28  std::string filename;
29  size_t eventNumber;
30 };
31 
32 #endif /* __PHIOMANAGER_H__ */
virtual void closeFile()=0
std::string filename
Definition: PHIOManager.h:28
virtual ~PHIOManager()
Definition: PHIOManager.h:16
virtual void print() const =0
std::string getFilename() const
Definition: PHIOManager.h:19
virtual PHBoolean write(PHCompositeNode *)=0
size_t eventNumber
Definition: PHIOManager.h:29
void setEventNumber(const size_t evno)
Definition: PHIOManager.h:21
size_t getEventNumber() const
Definition: PHIOManager.h:20
int PHBoolean
Definition: phool.h:13