22 return s <<
"Stream:" << obj.
name() <<
" Def:" << obj.
definition();
27 return s <<
"Stream:" << obj.
name() <<
" Def:" << obj.
definition();
41 return i != std::end(
m_properties ) ? &( *i ) :
nullptr;
48 return i != std::end(
m_properties ) ? &( *i ) :
nullptr;
54 std::string auth, dbtyp, collsvc, item, crit, sel, svc, stmt;
55 std::string cnt =
"/Event";
56 std::string db =
"<Unknown>";
60 std::cout <<
"ERROR: Unable to localize interface IDataManagerSvc from service EventDataSvc" << std::endl;
63 cnt = eds->rootName();
73 auth = std::move( attrib.value );
80 hash = attrib.value.find(
'#' );
82 cnt = attrib.value.substr( 0, hash );
83 item = attrib.value.substr( hash + 1 );
85 cnt = std::move( attrib.value );
91 m_dbName = std::move( attrib.value );
97 m_dbName = std::move( attrib.value );
100 stmt = std::move( attrib.value );
108 m_dbName = std::move( attrib.value );
114 dbtyp = std::move( attrib.value );
123 sel = std::move( attrib.value );
126 svc = std::move( attrib.value );
141 }
else if ( dbtyp.compare( 0, 4,
"POOL" ) == 0 ) {
143 }
else if ( svc.empty() ) {
149 if ( svc.empty() && !dbtyp.empty() ) {
153 status = ipers->getService( dbtyp, icnvSvc );
156 if ( isvc ) svc = isvc->name();
168 if ( !isData && !collsvc.empty() ) {
m_properties.emplace_back(
"DbService", collsvc ); }
MsgStream & operator<<(MsgStream &s, const EventSelectorDataStream &obj)
Output friend for MsgStream.
void toupper(std::string &s)
virtual StatusCode finalize()
Finalize stream and release resources.
std::string m_selectorType
Event selector type.
SmartIF< IEvtSelector > m_pSelector
Pointer to valid selector.
const std::string & name() const
Retrieve stream name.
EventSelectorDataStream(std::string nam, std::string def, ISvcLocator *svcloc)
Standard Constructor.
Properties m_properties
Properties vector.
const std::string & definition() const
Retrieve definition string.
std::string m_definition
Definition string.
virtual StatusCode initialize()
Parse input criteria.
std::string m_criteria
Criteria.
Gaudi::Property< std::string > * property(const std::string &nam)
Allow access to individual properties by name.
virtual void setSelector(IEvtSelector *pSelector)
Attach event selector object.
ISvcLocator * m_pSvcLocator
Reference to service locator.
std::string m_dbName
String with name of the db as parsed.
bool m_initialized
Initialization state.
const std::string name() const
property name
Implementation of property with value of concrete type.
Parse attribute strings allowing iteration over the various attributes.
The Event Selector Interface.
Data persistency service interface.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition of the MsgStream class used to transmit messages.
Small smart pointer class with automatic reference counting for IInterface.
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE