13 #define GAUDISVC_EVENTSELECTOR_EVENTSELECTORDATASTREAM_CPP 1
57 if ( 0 != pSelector ) pSelector->
addRef();
65 if ( (*i).name() == nam ) {
75 if ( (*i).name() == nam ) {
85 std::string auth, dbtyp, collsvc,
item, crit,
sel, svc, stmt;
86 std::string cnt =
"/Event";
87 std::string db =
"<Unknown>";
91 if( !eds.isValid() ) {
92 std::cout <<
"ERROR: Unable to localize interface IDataManagerSvc from service EventDataSvc"
97 cnt = eds->rootName();
103 for ( Tokenizer::Items::iterator
i = tok.
items().begin();
i != tok.
items().end();
i++ ) {
105 const std::string& tag = (*i).tag();
106 const std::string& val = (*i).value();
115 hash = val.find(
'#');
117 cnt = val.substr(0,hash);
118 item = val.substr(hash+1, val.length()-hash-1);
178 else if ( dbtyp.substr(0,4) ==
"POOL" ) {
181 else if ( svc.empty() ) {
188 if ( svc.length() == 0 && dbtyp.length() != 0 ) {
190 if ( ipers.isValid() ) {
192 status = ipers->getService(dbtyp, icnvSvc);
211 if ( !isData && !collsvc.empty() ) {
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.
Items & items()
Access token collection.
The Event Selector Interface.
bool isSuccess() const
Test for a status code of SUCCESS.
IEvtSelector * m_pSelector
Pointer to valid selector.
void analyse(const std::string &s, const char *delim, const char *tagBegin, const char *tagEnd, const char *eq, const char *valBegin, const char *valEnd)
Analyse tokens from string.
std::string m_criteria
Criteria.
SimpleProperty< std::string > StringProperty
std::string m_selectorType
Event selector type.
StringProperty * property(const std::string &nam)
Allow access to individual properties by name.
virtual const std::string & name() const =0
Retrieve the name of the instance.
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.
std::vector< StringProperty > Properties
General service interface definition.
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.
EventSelectorDataStream(const std::string &nam, const std::string &def, ISvcLocator *svcloc)
Standard Constructor.
virtual unsigned long release()=0
Release Interface instance.
Definition of class EventSelectorDataStream.
Properties * m_properties
Properties vector.
virtual unsigned long addRef()=0
Increment the reference count of Interface instance.
virtual ~EventSelectorDataStream()
Standard Destructor.
std::string m_dbName
String with name of the db as parsed.
static const InterfaceID & interfaceID()
Return an instance of InterfaceID identifying the interface.
void toupper(std::string &s)
virtual void setSelector(IEvtSelector *pSelector)
Attach event selector object.
virtual StatusCode queryInterface(const InterfaceID &ti, void **pp)=0
Set the void** to the pointer to the requested interface of the instance.