Gaudi Framework, version v25r2

Home   Generated: Wed Jun 4 2014
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OutputStream.h
Go to the documentation of this file.
1 #ifndef GAUDISVC_PERSISTENCYSVC_OUTPUTSTREAM_H
2 #define GAUDISVC_PERSISTENCYSVC_OUTPUTSTREAM_H
3 
4 // Required for inheritance
7 #include "GaudiKernel/Property.h"
8 
9 // STL include files
10 #include <memory>
11 #include <vector>
12 #include <string>
13 
14 // forward declarations
15 class IIncidentSvc;
16 class IRegistry;
17 class IConversionSvc;
18 class IDataManagerSvc;
19 class OutputStreamAgent;
20 class DataStoreItem;
21 
27 class OutputStream : public Algorithm {
28 public:
29  typedef std::vector<DataStoreItem*> Items;
30  typedef std::vector<std::string> ItemNames;
31 protected:
41  std::string m_storeName;
43  std::string m_persName;
45  std::string m_output;
47  std::string m_outputName;
49  std::string m_outputType;
71  int m_events;
79  std::vector<Algorithm*>* m_acceptAlgs;
81  std::vector<Algorithm*>* m_requireAlgs;
83  std::vector<Algorithm*>* m_vetoAlgs;
84 
85 public:
87  OutputStream(const std::string& name, ISvcLocator* pSvcLocator);
89  virtual ~OutputStream();
90 protected:
94  void acceptAlgsHandler( Property& theProp );
98  void requireAlgsHandler( Property& theProp );
102  void vetoAlgsHandler( Property& theProp );
105  std::vector<Algorithm*>* theAlgs );
107  bool isEventAccepted() const;
109  DataStoreItem* findItem(const std::string& path);
111  virtual StatusCode writeObjects();
112 
115 
117  virtual bool hasInput() const;
118 
119 public:
121  virtual StatusCode initialize();
123  virtual StatusCode finalize();
125  virtual StatusCode execute();
126  // Connect to proper conversion service
129  virtual bool collect(IRegistry* dir, int level);
131  virtual StatusCode collectObjects();
133  void clearItems(Items& itms);
135  void addItem(Items& itms, const std::string& descriptor);
137  void clearSelection();
140 };
141 
142 #endif // GAUDISVC_PERSISTENCYSVC_OUTPUTSTREAM_H

Generated at Wed Jun 4 2014 14:48:56 for Gaudi Framework, version v25r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004