Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v28r2p1 (f1a77ff4)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Selector.h
Go to the documentation of this file.
1 //====================================================================
2 // NTuple name space: Selector class definition
3 //--------------------------------------------------------------------
4 //
5 // Package : Gaudi/NTupleSvc ( The LHCb Offline System)
6 // Author : M.Frank
7 //
8 // +---------+----------------------------------------------+--------+
9 // | Date | Comment | Who |
10 // +---------+----------------------------------------------+--------+
11 // | 10/10/00| Initial version. | MF |
12 // +---------+----------------------------------------------+--------+
13 //====================================================================
14 #ifndef GAUDI_NTUPLESVC_SELECTOR_H
15 #define GAUDI_NTUPLESVC_SELECTOR_H 1
16 
17 // Framework include files
19 
20 // Forward declarations
21 namespace NTuple {
22  class Tuple;
23 }
24 
25 namespace NTuple {
26 
30  protected:
37  public:
39  Selector(IInterface* svc) : m_parent(svc), m_firstCall(true)
40  {
41  }
43  virtual ~Selector() = default;
45  bool firstCall() const {
46  return m_firstCall;
47  }
50  return m_status;
51  }
53  bool operator()(void* nt) override;
55  virtual bool operator()(NTuple::Tuple* nt);
57  virtual StatusCode initialize(NTuple::Tuple* nt);
58  };
59 }
60 #endif // GAUDI_NTUPLESVC_SELECTOR_H
StatusCode initResult() const
Access initialization status.
Definition: Selector.h:49
Selector(IInterface *svc)
Standard constructor.
Definition: Selector.h:39
NTuple name space.
Definition: INTupleSvc.h:10
bool m_firstCall
Boolean to indicate need for initialization.
Definition: Selector.h:34
StatusCode m_status
StatusCode indication initialization result.
Definition: Selector.h:36
IInterface * m_parent
reference to parent interface
Definition: Selector.h:32
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
Definition of the basic interface.
Definition: IInterface.h:234
Abstract base class which allows the user to interact with the actual N tuple implementation.
Definition: NTuple.h:370
NTuple Selector class.
Definition: Selector.h:29
virtual Out operator()(const vector_of_const_< In > &inputs) const =0
bool firstCall() const
Check for first call.
Definition: Selector.h:45
Class of a selection statement.
#define GAUDI_API
Definition: Kernel.h:107