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

SelectStatement Class Reference

Class of a selection statement. More...

#include <SelectStatement.h>

Inheritance diagram for SelectStatement:

ISelectStatement IInterface NTuple::Selector List of all members.

Public Methods

 SelectStatement (const std::string& s)
 Standard Constructor initializing select string. More...

 SelectStatement ()
 Standard Constructor initializing function call. More...

virtual ~SelectStatement ()
 Standard Destructor. More...

virtual unsigned long addRef ()
 Increase reference count. More...

virtual unsigned long release ()
 Decrease reference count (and eventually delete). More...

virtual StatusCode queryInterface (const IID& riid, void** ppvInterface)
 Query interface. More...

long type () const
 Access the type of the object. More...

const std::string& criteria () const
 Access the selection string. More...

void setCriteria (const std::string& crit)
 Set the type. More...

void setActive (bool flag = true)
 Change activity flag. More...

bool isActive () const
 Check if selection is active. More...

virtual bool operator() (void* )
 Stupid default implementation. More...


Protected Attributes

std::string m_select
 Select string. More...

long m_refCount
 Reference counter. More...

bool m_isActive
 Activation flag. More...


Private Attributes

long m_type
 Type identifier. More...


Detailed Description

Class of a selection statement.

A select statement can either contain

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.

History: +---------+----------------------------------------------+--------+ | Date | Comment | Who | +---------+----------------------------------------------+--------+ | 21/10/99| Initial version. | MF | +---------+----------------------------------------------+--------+ Author: M.Frank Version: 1.0

Definition at line 46 of file SelectStatement.h.


Constructor & Destructor Documentation

SelectStatement::SelectStatement ( const std::string & s ) [inline, explicit]
 

Standard Constructor initializing select string.

Definition at line 49 of file SelectStatement.h.

SelectStatement::SelectStatement ( ) [inline, explicit]
 

Standard Constructor initializing function call.

Definition at line 54 of file SelectStatement.h.

SelectStatement::~SelectStatement ( ) [inline, virtual]
 

Standard Destructor.

Definition at line 59 of file SelectStatement.h.


Member Function Documentation

unsigned long SelectStatement::addRef ( ) [inline, virtual]
 

Increase reference count.

Reimplemented from IInterface.

Definition at line 62 of file SelectStatement.h.

const std::string & SelectStatement::criteria ( ) const [inline, virtual]
 

Access the selection string.

Reimplemented from ISelectStatement.

Definition at line 93 of file SelectStatement.h.

bool SelectStatement::isActive ( ) const [inline, virtual]
 

Check if selection is active.

Reimplemented from ISelectStatement.

Definition at line 106 of file SelectStatement.h.

bool SelectStatement::operator() ( void * nt ) [inline, virtual]
 

Stupid default implementation.

Reimplemented from ISelectStatement.

Reimplemented in NTuple::Selector.

Definition at line 110 of file SelectStatement.h.

StatusCode SelectStatement::queryInterface ( const IID & riid,
void ** ppvInterface ) [inline, virtual]
 

Query interface.

Definition at line 74 of file SelectStatement.h.

unsigned long SelectStatement::release ( ) [inline, virtual]
 

Decrease reference count (and eventually delete).

Reimplemented from IInterface.

Definition at line 66 of file SelectStatement.h.

void SelectStatement::setActive ( bool flag = true ) [inline, virtual]
 

Change activity flag.

Reimplemented from ISelectStatement.

Definition at line 102 of file SelectStatement.h.

void SelectStatement::setCriteria ( const std::string & crit ) [inline, virtual]
 

Set the type.

Reimplemented from ISelectStatement.

Definition at line 97 of file SelectStatement.h.

long SelectStatement::type ( ) const [inline, virtual]
 

Access the type of the object.

Reimplemented from ISelectStatement.

Definition at line 89 of file SelectStatement.h.


Member Data Documentation

bool SelectStatement::m_isActive [protected]
 

Activation flag.

Definition at line 119 of file SelectStatement.h.

long SelectStatement::m_refCount [protected]
 

Reference counter.

Definition at line 117 of file SelectStatement.h.

std::string SelectStatement::m_select [protected]
 

Select string.

Definition at line 115 of file SelectStatement.h.

long SelectStatement::m_type [private]
 

Type identifier.

Definition at line 122 of file SelectStatement.h.


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