#include <GaudiKernel/ISelectStatement.h>
Inheritance diagram for ISelectStatement:
Public Types | |
FUNCTION = 1<<1 | |
STRING = 1<<2 | |
FULL = 1<<3 | |
OTHER = 1<<4 | |
enum | SelectType { FUNCTION = 1<<1, STRING = 1<<2, FULL = 1<<3, OTHER = 1<<4 } |
Statement type definition. More... | |
SUCCESS = 1 | |
Normal successful completion. | |
NO_INTERFACE | |
Requested interface is not available. | |
VERSMISMATCH | |
Requested interface version is incompatible. | |
LAST_ERROR | |
Last error. | |
enum | Status { SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR } |
Return status. More... | |
Public Member Functions | |
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. | |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvInterface)=0 |
Query interfaces of Interface. | |
virtual unsigned long | addRef ()=0 |
Increment the reference count of Interface instance. | |
virtual unsigned long | release ()=0 |
Release Interface instance. | |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
Retrieve interface ID. |
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.
Definition at line 37 of file ISelectStatement.h.
enum IInterface::Status [inherited] |
Return status.
SUCCESS | Normal successful completion. |
NO_INTERFACE | Requested interface is not available. |
VERSMISMATCH | Requested interface version is incompatible. |
LAST_ERROR | Last error. |
Reimplemented in IConversionSvc, IConverter, and IDataProviderSvc.
Definition at line 113 of file IInterface.h.
00113 { 00115 SUCCESS = 1, 00117 NO_INTERFACE, 00119 VERSMISMATCH, 00121 LAST_ERROR 00122 };
static const InterfaceID& ISelectStatement::interfaceID | ( | ) | [inline, static] |
Retrieve interface ID.
Reimplemented from IInterface.
Definition at line 44 of file ISelectStatement.h.
00044 { return IID_ISelectStatement; }
virtual long ISelectStatement::type | ( | ) | const [pure virtual] |
virtual const std::string& ISelectStatement::criteria | ( | ) | const [pure virtual] |
virtual void ISelectStatement::setCriteria | ( | const std::string & | crit | ) | [pure virtual] |
virtual void ISelectStatement::setActive | ( | bool | flag = true |
) | [pure virtual] |
virtual bool ISelectStatement::isActive | ( | ) | const [pure virtual] |
virtual bool ISelectStatement::operator() | ( | void * | val | ) | [pure virtual] |
virtual StatusCode IInterface::queryInterface | ( | const InterfaceID & | riid, | |
void ** | ppvInterface | |||
) | [pure virtual, inherited] |
Query interfaces of Interface.
riid | ID of Interface to be retrieved | |
ppvInterface | Pointer to Location for interface pointer |
Implemented in Algorithm, AlgTool, Auditor, ConversionSvc, Converter, DataSvc, EventSelectorDataStream, MinimalEventLoopMgr, PropertyMgr, SelectStatement, and Service.
virtual unsigned long IInterface::addRef | ( | ) | [pure virtual, inherited] |
Increment the reference count of Interface instance.
Implemented in Algorithm, AlgTool, Auditor, Converter, EventSelectorDataStream, IFactory, PropertyMgr, SelectStatement, and Service.
virtual unsigned long IInterface::release | ( | ) | [pure virtual, inherited] |
Release Interface instance.
Implemented in Algorithm, AlgTool, Auditor, Converter, EventSelectorDataStream, IFactory, PropertyMgr, SelectStatement, and Service.