The Gaudi Framework  master (37c0b60a)
ISelectStatement.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 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 #ifndef GAUDIKERNEL_ISELECTSTATEMENT_H
12 #define GAUDIKERNEL_ISELECTSTATEMENT_H
13 
14 // STL include files
15 #include <string>
16 
17 // Framework include files
18 #include <GaudiKernel/IInterface.h>
19 
42 class GAUDI_API ISelectStatement : virtual public IInterface {
43 public:
46 
48  enum SelectType { FUNCTION = 1 << 1, STRING = 1 << 2, FULL = 1 << 3, OTHER = 1 << 4 };
49 
50 public:
52  virtual long type() const = 0;
54  virtual const std::string& criteria() const = 0;
56  virtual void setCriteria( const std::string& crit ) = 0;
58  virtual void setActive( bool flag = true ) = 0;
60  virtual bool isActive() const = 0;
62  virtual bool operator()( void* val ) = 0;
63 };
64 
65 #endif // GAUDIKERNEL_ISELECTSTATEMENT_H
std::string
STL class.
ISelectStatement::type
virtual long type() const =0
Access the type of the object.
ISelectStatement::isActive
virtual bool isActive() const =0
Check if selection is active.
ISelectStatement
Definition: ISelectStatement.h:42
ISelectStatement::DeclareInterfaceID
DeclareInterfaceID(ISelectStatement, 2, 0)
InterfaceID.
ISelectStatement::setActive
virtual void setActive(bool flag=true)=0
Change activity flag.
IInterface.h
ISelectStatement::criteria
virtual const std::string & criteria() const =0
Access the selection string.
ISelectStatement::operator()
virtual bool operator()(void *val)=0
Stupid default implementation.
ISelectStatement::setCriteria
virtual void setCriteria(const std::string &crit)=0
Set the type.
ISelectStatement::SelectType
SelectType
Statement type definition.
Definition: ISelectStatement.h:48
IInterface
Definition: IInterface.h:239
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81