Gaudi Framework, version v24r2

Home   Generated: Wed Dec 4 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
SelectStatement Class Reference

Class of a selection statement. More...

#include <SelectStatement.h>

Inheritance diagram for SelectStatement:
Inheritance graph
[legend]
Collaboration diagram for SelectStatement:
Collaboration graph
[legend]

Public Member Functions

 SelectStatement (const std::string &s, long typ)
 Standard Constructor initializing select string.
 
 SelectStatement (const std::string &s)
 Standard Constructor initializing select string.
 
 SelectStatement ()
 Standard Constructor initializing function call.
 
virtual ~SelectStatement ()
 Standard Destructor.
 
long type () const
 Access the type of the object.
 
const std::stringcriteria () const
 Access the selection string.
 
void setCriteria (const std::string &crit)
 Set the type.
 
void setActive (bool flag=true)
 Change activity flag.
 
bool isActive () const
 Check if selection is active.
 
virtual bool operator() (void *)
 Stupid default implementation.
 

Protected Attributes

std::string m_select
 Select string.
 
bool m_isActive
 Activation flag.
 
long m_type
 Type identifier.
 

Additional Inherited Members

- Public Types inherited from implements1< ISelectStatement >
typedef implements1 base_class
 Typedef to this class.
 
typedef extend_interfaces1
< ISelectStatement
extend_interfaces_base
 Typedef to the base of this class.
 
typedef
extend_interfaces_base::ext_iids 
interfaces
 MPL set of all the implemented interfaces.
 
- Static Public Member Functions inherited from IInterface
static const InterfaceIDinterfaceID ()
 Return an instance of InterfaceID identifying the interface.
 

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,
long  typ 
)
inlineexplicit

Standard Constructor initializing select string.

Definition at line 49 of file SelectStatement.h.

: m_select(s), m_isActive(false), m_type(typ)
{
}
SelectStatement::SelectStatement ( const std::string s)
inlineexplicit

Standard Constructor initializing select string.

Definition at line 54 of file SelectStatement.h.

{
}
SelectStatement::SelectStatement ( )
inlineexplicit

Standard Constructor initializing function call.

Definition at line 59 of file SelectStatement.h.

{
}
virtual SelectStatement::~SelectStatement ( )
inlinevirtual

Standard Destructor.

Definition at line 64 of file SelectStatement.h.

{
}

Member Function Documentation

const std::string& SelectStatement::criteria ( ) const
inlinevirtual

Access the selection string.

Implements ISelectStatement.

Definition at line 71 of file SelectStatement.h.

{
return m_select;
}
bool SelectStatement::isActive ( ) const
inlinevirtual

Check if selection is active.

Implements ISelectStatement.

Definition at line 84 of file SelectStatement.h.

{
return m_isActive;
}
virtual bool SelectStatement::operator() ( void *  )
inlinevirtual

Stupid default implementation.

Implements ISelectStatement.

Reimplemented in NTuple::Selector.

Definition at line 88 of file SelectStatement.h.

{
return true;
}
void SelectStatement::setActive ( bool  flag = true)
inlinevirtual

Change activity flag.

Implements ISelectStatement.

Definition at line 80 of file SelectStatement.h.

{
m_isActive = flag;
}
void SelectStatement::setCriteria ( const std::string crit)
inlinevirtual

Set the type.

Implements ISelectStatement.

Definition at line 75 of file SelectStatement.h.

{
m_select = crit;
(m_select.length() > 0) ? m_type |= STRING : m_type &= ~STRING;
}
long SelectStatement::type ( ) const
inlinevirtual

Access the type of the object.

Implements ISelectStatement.

Definition at line 67 of file SelectStatement.h.

{
return m_type;
}

Member Data Documentation

bool SelectStatement::m_isActive
protected

Activation flag.

Definition at line 95 of file SelectStatement.h.

std::string SelectStatement::m_select
protected

Select string.

Definition at line 93 of file SelectStatement.h.

long SelectStatement::m_type
protected

Type identifier.

Definition at line 97 of file SelectStatement.h.


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

Generated at Wed Dec 4 2013 14:33:19 for Gaudi Framework, version v24r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004