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