#include <EventSelectorDataStream.h>
Inheritance diagram for EventSelectorDataStream:
Public Types | |
typedef std::vector< StringProperty > | Properties |
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 | |
EventSelectorDataStream (const std::string &nam, const std::string &def, ISvcLocator *svcloc) | |
Standard Constructor. | |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvUnknown) |
Query interfaces of Interface. | |
virtual unsigned long | addRef () |
Reference Interface instance. | |
virtual unsigned long | release () |
Release Interface instance. | |
virtual void | setSelector (IEvtSelector *pSelector) |
Attach event selector object. | |
virtual StatusCode | initialize () |
Parse input criteria. | |
virtual StatusCode | finalize () |
Finalize stream and release resources. | |
StringProperty * | property (const std::string &nam) |
Allow access to individual properties by name. | |
const StringProperty * | property (const std::string &nam) const |
Allow access to individual properties by name (CONST). | |
const Properties & | properties () |
Access properties. | |
const std::string & | name () const |
Retrieve stream name. | |
const std::string & | criteria () const |
Retrieve stream criteria. | |
const std::string & | selectorType () const |
Retrieve event selector type. | |
const std::string & | definition () const |
Retrieve definition string. | |
IEvtSelector * | selector () const |
Retrieve event selector object. | |
bool | isInitialized () const |
Check initialisation status. | |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
Retrieve interface ID. | |
Protected Member Functions | |
virtual | ~EventSelectorDataStream () |
Standard Destructor. | |
Protected Attributes | |
long | m_refCount |
Reference count. | |
std::string | m_name |
Name. | |
std::string | m_definition |
Definition string. | |
std::string | m_criteria |
Criteria. | |
std::string | m_selectorType |
Event selector type. | |
IEvtSelector * | m_pSelector |
Pointer to valid selector. | |
ISvcLocator * | m_pSvcLocator |
Reference to service locator. | |
Properties * | m_properties |
Properties vector. | |
bool | m_initialized |
Initialization state. | |
Friends | |
MsgStream & | operator<< (MsgStream &s, const EventSelectorDataStream &obj) |
Output friend for MsgStream. | |
std::ostream & | operator<< (std::ostream &s, const EventSelectorDataStream &obj) |
Output friend for standard I/O. |
Small class which eases the management of multiple input streams for the event selector.
History: +---------+----------------------------------------------+---------+ | Date | Comment | Who | +---------+----------------------------------------------+---------+ | 3/10/00 | Initial version | M.Frank | +---------+----------------------------------------------+---------+
Definition at line 41 of file EventSelectorDataStream.h.
typedef std::vector< StringProperty > EventSelectorDataStream::Properties |
Definition at line 47 of file EventSelectorDataStream.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 };
virtual EventSelectorDataStream::~EventSelectorDataStream | ( | ) | [protected, virtual] |
Standard Destructor.
EventSelectorDataStream::EventSelectorDataStream | ( | const std::string & | nam, | |
const std::string & | def, | |||
ISvcLocator * | svcloc | |||
) |
Standard Constructor.
virtual StatusCode EventSelectorDataStream::queryInterface | ( | const InterfaceID & | riid, | |
void ** | ppvUnknown | |||
) | [virtual] |
Query interfaces of Interface.
riid | ID of Interface to be retrieved | |
ppvUnknown | Pointer to Location for interface pointer |
Implements IInterface.
virtual unsigned long EventSelectorDataStream::addRef | ( | ) | [virtual] |
virtual unsigned long EventSelectorDataStream::release | ( | ) | [virtual] |
virtual void EventSelectorDataStream::setSelector | ( | IEvtSelector * | pSelector | ) | [virtual] |
Attach event selector object.
virtual StatusCode EventSelectorDataStream::initialize | ( | ) | [virtual] |
Parse input criteria.
virtual StatusCode EventSelectorDataStream::finalize | ( | ) | [virtual] |
Finalize stream and release resources.
StringProperty* EventSelectorDataStream::property | ( | const std::string & | nam | ) |
Allow access to individual properties by name.
const StringProperty* EventSelectorDataStream::property | ( | const std::string & | nam | ) | const |
Allow access to individual properties by name (CONST).
const Properties& EventSelectorDataStream::properties | ( | ) | [inline] |
Access properties.
Definition at line 92 of file EventSelectorDataStream.h.
00092 { 00093 return *m_properties; 00094 }
const std::string& EventSelectorDataStream::name | ( | ) | const [inline] |
Retrieve stream name.
Definition at line 96 of file EventSelectorDataStream.h.
00096 { 00097 return m_name; 00098 }
const std::string& EventSelectorDataStream::criteria | ( | ) | const [inline] |
Retrieve stream criteria.
Definition at line 100 of file EventSelectorDataStream.h.
00100 { 00101 return m_criteria; 00102 }
const std::string& EventSelectorDataStream::selectorType | ( | ) | const [inline] |
Retrieve event selector type.
Definition at line 104 of file EventSelectorDataStream.h.
00104 { 00105 return m_selectorType; 00106 }
const std::string& EventSelectorDataStream::definition | ( | ) | const [inline] |
Retrieve definition string.
Definition at line 108 of file EventSelectorDataStream.h.
00108 { 00109 return m_definition; 00110 }
IEvtSelector* EventSelectorDataStream::selector | ( | ) | const [inline] |
Retrieve event selector object.
Definition at line 112 of file EventSelectorDataStream.h.
00112 { 00113 return m_pSelector; 00114 }
bool EventSelectorDataStream::isInitialized | ( | ) | const [inline] |
Check initialisation status.
Definition at line 116 of file EventSelectorDataStream.h.
00116 { 00117 return m_initialized; 00118 }
static const InterfaceID& IInterface::interfaceID | ( | ) | [inline, static, inherited] |
Retrieve interface ID.
Reimplemented in IAddressCreator, IAIDATupleSvc, IAlgContextSvc, IAlgManager, IAlgorithm, IAlgTool, IAppMgrUI, IAuditor, IAuditorSvc, IChronoStatSvc, IChronoSvc, IClassManager, IConversionSvc, IConverter, ICounterSvc, IDataManagerSvc, IDataProviderSvc, IDataSourceMgr, IDataStreamTool, IDetDataSvc, IEventProcessor, IEventTimeDecoder, IEvtSelector, IExceptionSvc, IFactory, IFileAccess, IHistogramSvc, IHistorySvc, IIncidentListener, IIncidentSvc, IIssueLogger, IJobOptionsSvc, IMagneticFieldSvc, IMessageSvc, IMonitorSvc, INamedInterface, INTupleSvc, IParticlePropertySvc, IPartitionControl, IPartPropSvc, IPersistencySvc, IProperty, IRndmEngine, IRndmGen, IRndmGenSvc, IRunable, ISelectStatement, ISerialize, IService, IStagerSvc, IStateful, IStatSvc, IStatusCodeSvc, ISvcLocator, ISvcManager, ITHistSvc, IToolSvc, and IUpdateManagerSvc.
Definition at line 94 of file IInterface.h.
00094 { return IID_IInterface; }
MsgStream& operator<< | ( | MsgStream & | s, | |
const EventSelectorDataStream & | obj | |||
) | [friend] |
Output friend for MsgStream.
std::ostream& operator<< | ( | std::ostream & | s, | |
const EventSelectorDataStream & | obj | |||
) | [friend] |
Output friend for standard I/O.
long EventSelectorDataStream::m_refCount [protected] |
std::string EventSelectorDataStream::m_name [protected] |
std::string EventSelectorDataStream::m_definition [protected] |
std::string EventSelectorDataStream::m_criteria [protected] |
std::string EventSelectorDataStream::m_selectorType [protected] |
IEvtSelector* EventSelectorDataStream::m_pSelector [protected] |
ISvcLocator* EventSelectorDataStream::m_pSvcLocator [protected] |
Properties* EventSelectorDataStream::m_properties [protected] |
bool EventSelectorDataStream::m_initialized [protected] |