Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ISelectStatement Class Reference

A select statement can either contain - a string e.g. More...

#include <GaudiKernel/ISelectStatement.h>

Inheritance diagram for ISelectStatement:

IInterface SelectStatement NTuple::Selector List of all members.

Public Types

enum  SelectType { FUNCTION = 1<<1, STRING = 1<<2 }
 Statement type definition. More...


Public Methods

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.


Static Public Methods

const InterfaceIDinterfaceID ()
 Retrieve interface ID. More...


Detailed Description

A select statement can either contain - a string e.g.

for refining an SQL statement

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(s):
M.Frank
Version:
1.0

Definition at line 37 of file ISelectStatement.h.


Member Enumeration Documentation

enum ISelectStatement::SelectType
 

Statement type definition.

Enumeration values:
FUNCTION  
STRING  

Definition at line 40 of file ISelectStatement.h.


Member Function Documentation

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

Access the selection string.

Reimplemented in SelectStatement.

const InterfaceID & ISelectStatement::interfaceID ( ) [inline, static]
 

Retrieve interface ID.

Reimplemented from IInterface.

Definition at line 44 of file ISelectStatement.h.

bool ISelectStatement::isActive ( ) const [pure virtual]
 

Check if selection is active.

Reimplemented in SelectStatement.

bool ISelectStatement::operator() ( void * nt ) [pure virtual]
 

Stupid default implementation.

Reimplemented in NTuple::Selector, and SelectStatement.

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

Change activity flag.

Reimplemented in SelectStatement.

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

Set the type.

Reimplemented in SelectStatement.

long ISelectStatement::type ( ) const [pure virtual]
 

Access the type of the object.

Reimplemented in SelectStatement.


The documentation for this class was generated from the following file:
Generated at Wed Nov 21 12:22:13 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000