The Gaudi Framework
master (53dee381)
Toggle main menu visibility
Loading...
Searching...
No Matches
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
13
#include <
GaudiKernel/SelectStatement.h
>
14
15
namespace
NTuple
{
16
class
Tuple
;
17
}
18
19
namespace
NTuple
{
22
class
GAUDI_API
Selector
:
public
SelectStatement
{
23
protected
:
25
IInterface
*
m_parent
;
27
bool
m_firstCall
;
29
StatusCode
m_status
;
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
GAUDI_API
#define GAUDI_API
Definition
Kernel.h:49
SelectStatement.h
IInterface
Definition of the basic interface.
Definition
IInterface.h:225
NTuple::Selector::Selector
Selector(IInterface *svc)
Standard constructor.
Definition
Selector.h:33
NTuple::Selector::firstCall
bool firstCall() const
Check for first call.
Definition
Selector.h:37
NTuple::Selector::~Selector
virtual ~Selector()=default
Standard Destructor.
NTuple::Selector::initResult
StatusCode initResult() const
Access initialization status.
Definition
Selector.h:39
NTuple::Selector::m_firstCall
bool m_firstCall
Boolean to indicate need for initialization.
Definition
Selector.h:27
NTuple::Selector::m_status
StatusCode m_status
StatusCode indication initialization result.
Definition
Selector.h:29
NTuple::Selector::m_parent
IInterface * m_parent
reference to parent interface
Definition
Selector.h:25
NTuple::Tuple
Abstract base class which allows the user to interact with the actual N tuple implementation.
Definition
NTuple.h:380
SelectStatement::SelectStatement
SelectStatement(const std::string &s, long typ)
Standard Constructor initializing select string.
Definition
SelectStatement.h:46
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
NTuple
NTuple name space.
Definition
INTupleSvc.h:16
GaudiKernel
include
GaudiKernel
Selector.h
Generated on
for The Gaudi Framework by
1.17.0