The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
ISelectStatement.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#include <string>
15
38class GAUDI_API ISelectStatement : virtual public IInterface {
39public:
42
44 enum SelectType { FUNCTION = 1 << 1, STRING = 1 << 2, FULL = 1 << 3, OTHER = 1 << 4 };
45
46public:
48 virtual long type() const = 0;
50 virtual const std::string& criteria() const = 0;
52 virtual void setCriteria( const std::string& crit ) = 0;
54 virtual void setActive( bool flag = true ) = 0;
56 virtual bool isActive() const = 0;
58 virtual bool operator()( void* val ) = 0;
59};
#define GAUDI_API
Definition Kernel.h:49
Definition of the basic interface.
Definition IInterface.h:225
A select statement can either contain.
virtual bool isActive() const =0
Check if selection is active.
virtual long type() const =0
Access the type of the object.
virtual void setActive(bool flag=true)=0
Change activity flag.
SelectType
Statement type definition.
DeclareInterfaceID(ISelectStatement, 2, 0)
InterfaceID.
virtual bool operator()(void *val)=0
Stupid default implementation.
virtual void setCriteria(const std::string &crit)=0
Set the type.
virtual const std::string & criteria() const =0
Access the selection string.