11 #ifndef GAUDISVC_EventCollectionSelector_EventCollectionSelector_H
12 #define GAUDISVC_EventCollectionSelector_EventCollectionSelector_H 1
58 tuple = (ctxt) ? ctxt->tuple : 0;
59 item = (ctxt) ? ctxt->item : 0;
202 #endif // GAUDISVC_EventCollectionSelector_EventCollectionSelector_H
SmartIF< INTupleSvc > m_tupleSvc
Reference to Tuple service.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
virtual StatusCode getNextRecord(NTuple::Tuple *tuple) const
Read next record of the N-tuple.
The Event Selector Interface.
virtual StatusCode releaseContext(Context *&refCtxt) const
Release existing event iteration context.
MyContextType(NTuple::Tuple *t, NTuple::Item< IOpaqueAddress * > *i)
virtual StatusCode connectDataSource(const std::string &db, const std::string &typ) const
Connect collection's data source to selector.
virtual StatusCode resetCriteria(const std::string &cr, Context &c) const
Will set a new criteria for the selection of the next list of events and will change the state of the...
IAddressCreator interface definition.
std::string m_criteria
Criteria.
virtual unsigned long release()=0
release reference to object
virtual StatusCode initialize()
Service override: Initialize service.
Generic Transient Address.
virtual StatusCode previous(Context &refCtxt) const
Get previous iteration item from the event loop context.
virtual StatusCode createContext(Context *&refpCtxt) const
Create a new event loop context.
virtual StatusCode finalize()
Service override: Finalize Service.
NTuple interface class definition.
std::string m_tupleSvcName
Name of the event collection service name.
std::string m_cntName
Container name.
virtual StatusCode createAddress(const Context &refCtxt, IOpaqueAddress *&refpAddr) const
Create new Opaque address corresponding to the current record.
This class is used for returning status codes from appropriate routines.
std::string m_itemName
Item name.
Base class used to extend a class implementing other interfaces.
virtual StatusCode last(Context &refCtxt) const
Access last item in the iteration.
void setAddress(IOpaqueAddress *pAddr)
std::string m_dbType
Database type identifier.
virtual const std::string & name() const
Retrieve name of the service.
MyContextType(const MyContextType &ctxt)
Abstract base class which allows the user to interact with the actual N tuple implementation.
std::string m_dbSvc
Database service (exclusive property with db type)
std::string m_database
Datafile name.
virtual StatusCode getPreviousRecord(NTuple::Tuple *tuple) const
Read next record of the N-tuple.
Definition of class EventCollectionSelector.
Definition of class EventSelectorDataStream.
NTuple::Item< IOpaqueAddress * > * item
IOpaqueAddress * addressBuffer
virtual ~EventCollectionSelector()
Standard Destructor.
virtual StatusCode next(Context &refCtxt) const
Get next iteration item from the event loop context.
virtual StatusCode connectTuple(const std::string &nam, const std::string &itName, NTuple::Tuple *&tup, NTuple::Item< IOpaqueAddress * > *&item) const
Connect to existing N-tuple.
virtual StatusCode rewind(Context &refCtxt) const
Rewind the dataset.
std::string m_authentication
Authentication string (if needed)
EventCollectionSelector(const std::string &name, ISvcLocator *svcloc)
Standard Constructor.
Opaque address interface definition.
SmartIF< IAddressCreator > m_pAddrCreator
virtual StatusCode connectCollection(MyContextType *ctxt) const
Connect collection to selector.
MyContextType(MyContextType *ctxt=0)
std::string m_statement
Selector name.
virtual void * identifier() const
virtual unsigned long addRef()=0
Add reference to object.
virtual StatusCode connectStatement(const std::string &typ, const std::string &crit, INTuple *tuple) const
Connect selection statement to refine data access.