The Gaudi Framework  master (d98a2936)
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 * (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #pragma once
12 
14 
15 namespace NTuple {
16  class Tuple;
17 }
18 
19 namespace NTuple {
23  protected:
30 
31  public:
33  Selector( IInterface* svc ) : m_parent( svc ), m_firstCall( true ) {}
35  virtual ~Selector() = default;
37  bool firstCall() const { return m_firstCall; }
39  StatusCode initResult() const { return m_status; }
41  bool operator()( void* nt ) override;
43  virtual bool operator()( NTuple::Tuple* nt );
45  virtual StatusCode initialize( NTuple::Tuple* nt );
46  };
47 } // namespace NTuple
NTuple::Selector::m_parent
IInterface * m_parent
reference to parent interface
Definition: Selector.h:25
NTuple::Selector::firstCall
bool firstCall() const
Check for first call.
Definition: Selector.h:37
SelectStatement
Class of a selection statement.
Definition: SelectStatement.h:43
NTuple::Selector::~Selector
virtual ~Selector()=default
Standard Destructor.
StatusCode
Definition: StatusCode.h:64
NTuple::Selector
NTuple Selector class.
Definition: Selector.h:22
NTuple::Selector::Selector
Selector(IInterface *svc)
Standard constructor.
Definition: Selector.h:33
SelectStatement.h
NTuple::Tuple
Abstract base class which allows the user to interact with the actual N tuple implementation.
Definition: NTuple.h:380
IInterface
Definition: IInterface.h:225
NTuple
NTuple name space.
Definition: INTupleSvc.h:16
NTuple::Selector::m_status
StatusCode m_status
StatusCode indication initialization result.
Definition: Selector.h:29
NTuple::Selector::initResult
StatusCode initResult() const
Access initialization status.
Definition: Selector.h:39
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:49
NTuple::Selector::m_firstCall
bool m_firstCall
Boolean to indicate need for initialization.
Definition: Selector.h:27