The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
ISelectStatement Class Referenceabstract

A select statement can either contain. More...

#include <GaudiKernel/ISelectStatement.h>

Inheritance diagram for ISelectStatement:
Collaboration diagram for ISelectStatement:

Public Types

enum  SelectType { FUNCTION = 1 << 1 , STRING = 1 << 2 , FULL = 1 << 3 , OTHER = 1 << 4 }
 Statement type definition. More...
 
- Public Types inherited from IInterface
enum class  Status : StatusCode::code_t {
  FAILURE = 0 , SUCCESS = 1 , NO_INTERFACE , VERSMISMATCH ,
  LAST_ERROR
}
 Return status. More...
 
using iid = Gaudi::InterfaceId<IInterface, 0, 0>
 Interface ID.
 
using ext_iids = Gaudi::interface_list<iid>
 Extra interfaces.
 

Public Member Functions

 DeclareInterfaceID (ISelectStatement, 2, 0)
 InterfaceID.
 
virtual long type () const =0
 Access the type of the object.
 
virtual const std::string & criteria () const =0
 Access the selection string.
 
virtual void setCriteria (const std::string &crit)=0
 Set the type.
 
virtual void setActive (bool flag=true)=0
 Change activity flag.
 
virtual bool isActive () const =0
 Check if selection is active.
 
virtual bool operator() (void *val)=0
 Stupid default implementation.
 
- Public Member Functions inherited from IInterface
template<Gaudi::IsInterface TARGET>
TARGET * cast ()
 
template<Gaudi::IsInterface TARGET>
TARGET const * cast () const
 
template<typename TARGET>
requires ( !Gaudi::IsInterface<TARGET> )
TARGET * cast ()
 
template<typename TARGET>
requires ( !Gaudi::IsInterface<TARGET> )
TARGET const * cast () const
 
virtual std::vector< std::string > getInterfaceNames () const =0
 Returns a vector of strings containing the names of all the implemented interfaces.
 
virtual unsigned long addRef () const =0
 Increment the reference count of Interface instance.
 
virtual unsigned long release () const =0
 Release Interface instance.
 
virtual unsigned long refCount () const =0
 Current reference count.
 
virtual StatusCode queryInterface (const InterfaceID &ti, void **pp)=0
 Set the void** to the pointer to the requested interface of the instance.
 
virtual ~IInterface ()=default
 Virtual destructor.
 
virtual void const * i_cast (const InterfaceID &) const =0
 
void * i_cast (const InterfaceID &iid)
 

Additional Inherited Members

- Static Public Member Functions inherited from IInterface
static const InterfaceIDinterfaceID ()
 Return an instance of InterfaceID identifying the interface.
 
- Protected Member Functions inherited from IInterface
virtual unsigned long decRef () const =0
 Decrement reference count and return the new reference count.
 

Detailed Description

A select statement can either contain.

  • a string e.g. for refining an SQL statement
  • a function object, which will be called back in order to refine a selection. This happens in calling sequences like the following:

bool MySelect::operator()(IValueLocator* l) { float px, py, pz; if ( l->get("PX",px) && l->get("PY",py) && l->get("PZ",pz) ) { float mom = sqrt(px*px+py*py+pz*pz); return mom > 100.0 * GeV; } return false; }

if "true" is returned, the object will be loaded completely.

Author
M.Frank
Version
1.0

Definition at line 38 of file ISelectStatement.h.

Member Enumeration Documentation

◆ SelectType

Statement type definition.

Enumerator
FUNCTION 
STRING 
FULL 
OTHER 

Definition at line 44 of file ISelectStatement.h.

Member Function Documentation

◆ criteria()

virtual const std::string & ISelectStatement::criteria ( ) const
pure virtual

Access the selection string.

◆ DeclareInterfaceID()

ISelectStatement::DeclareInterfaceID ( ISelectStatement ,
2 ,
0  )

◆ isActive()

virtual bool ISelectStatement::isActive ( ) const
pure virtual

Check if selection is active.

◆ operator()()

virtual bool ISelectStatement::operator() ( void * val)
pure virtual

Stupid default implementation.

◆ setActive()

virtual void ISelectStatement::setActive ( bool flag = true)
pure virtual

Change activity flag.

◆ setCriteria()

virtual void ISelectStatement::setCriteria ( const std::string & crit)
pure virtual

Set the type.

◆ type()

virtual long ISelectStatement::type ( ) const
pure virtual

Access the type of the object.


The documentation for this class was generated from the following file: