13 #define GAUDISVC_EVENTSELECTOR_EVENTSELECTORDATASTREAM_CPP 1
28 return s <<
"Stream:" << obj.
name() <<
" Def:" << obj.
definition();
33 return s <<
"Stream:" << obj.
name() <<
" Def:" << obj.
definition();
70 std::cout <<
"ERROR: Unable to localize interface IDataManagerSvc from service EventDataSvc"
75 cnt = eds->rootName();
83 switch( ::
toupper(attrib.tag[0]) ) {
92 hash = attrib.value.
find(
'#');
94 cnt = attrib.value.
substr(0, hash);
95 item = attrib.value.
substr(hash + 1);
107 switch( ::
toupper(attrib.tag[1]) ) {
125 switch( ::
toupper(attrib.tag[1]) ) {
134 switch( ::
toupper(attrib.tag[1]) ) {
155 else if ( dbtyp.
compare(0,4,
"POOL") == 0 ) {
158 else if ( svc.
empty() ) {
169 status = ipers->getService(dbtyp, icnvSvc);
172 if ( isvc ) svc = isvc->name();
184 if ( !isData && !collsvc.
empty() ) {
Parse attribute strings allowing iteration over the various attributes.
Definition of the MsgStream class used to transmit messages.
bool m_initialized
Initialization state.
const std::string & name() const
Retrieve stream name.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
MsgStream & operator<<(MsgStream &s, const EventSelectorDataStream &obj)
Output friend for MsgStream.
const std::string & name() const
property name
The Event Selector Interface.
bool isSuccess() const
Test for a status code of SUCCESS.
std::string m_criteria
Criteria.
std::string m_selectorType
Event selector type.
StringProperty * property(const std::string &nam)
Allow access to individual properties by name.
SmartIF< IEvtSelector > m_pSelector
Pointer to valid selector.
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
ISvcLocator * m_pSvcLocator
Reference to service locator.
virtual StatusCode initialize()
Parse input criteria.
This class is used for returning status codes from appropriate routines.
virtual StatusCode finalize()
Finalize stream and release resources.
std::string m_definition
Definition string.
const std::string & definition() const
Retrieve definition string.
Properties m_properties
Properties vector.
Definition of class EventSelectorDataStream.
Data persistency service interface.
EventSelectorDataStream(std::string nam, std::string def, ISvcLocator *svcloc)
Standard Constructor.
std::string m_dbName
String with name of the db as parsed.
void toupper(std::string &s)
virtual void setSelector(IEvtSelector *pSelector)
Attach event selector object.