13 #define GAUDISVC_EVENTSELECTOR_EVENTSELECTORDATASTREAM_CPP 1 27 return s <<
"Stream:" << obj.
name() <<
" Def:" << obj.
definition();
33 return s <<
"Stream:" << obj.
name() <<
" Def:" << obj.
definition();
71 std::cout <<
"ERROR: Unable to localize interface IDataManagerSvc from service EventDataSvc" <<
std::endl;
74 cnt = eds->rootName();
82 switch (::
toupper( attrib.tag[0] ) ) {
91 hash = attrib.value.
find(
'#' );
93 cnt = attrib.value.
substr( 0, hash );
94 item = attrib.value.
substr( hash + 1 );
105 switch (::
toupper( attrib.tag[1] ) ) {
123 switch (::
toupper( attrib.tag[1] ) ) {
132 switch (::
toupper( attrib.tag[1] ) ) {
152 }
else if ( dbtyp.
compare( 0, 4,
"POOL" ) == 0 ) {
154 }
else if ( svc.
empty() ) {
164 status = ipers->getService( dbtyp, icnvSvc );
167 if ( isvc ) svc = isvc->name();
179 if ( !isData && !collsvc.
empty() ) {
Parse attribute strings allowing iteration over the various attributes.
constexpr static const auto FAILURE
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.
Implementation of property with value of concrete type.
const std::string name() const
property name
The Event Selector Interface.
std::string m_criteria
Criteria.
std::string m_selectorType
Event selector type.
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.
constexpr static const auto SUCCESS
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.
Gaudi::Property< std::string > * property(const std::string &nam)
Allow access to individual properties by name.
void toupper(std::string &s)
virtual void setSelector(IEvtSelector *pSelector)
Attach event selector object.