ATLAS Offline Software
IEventServer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JIVEXML_IEVENTSERVER_H
6 #define JIVEXML_IEVENTSERVER_H
7 
8 #include <vector>
9 #include <JiveXML/IMessage.h>
10 
11 namespace JiveXML {
12 
13  //forward declarations
14  class EventStreamID;
15 
20  class IEventServer {
21 
22  public:
23 
24  //Need virtual destructor
25  virtual ~IEventServer(){}
26 
30  virtual std::vector<std::string> GetStreamNames() const = 0;
32  virtual const EventStreamID GetEventStreamID(const std::string& streamName) const = 0;
34  virtual const std::string GetEvent( const EventStreamID& evtStreamID ) const = 0;
36  virtual int GetState() const = 0;
38  virtual bool GetRunServerFlag () const = 0;
40 
41  };
42 
43 } //namespace
44 
45 #endif
46 
JiveXML::IEventServer::~IEventServer
virtual ~IEventServer()
Definition: IEventServer.h:25
JiveXML::IEventServer::GetStreamNames
virtual std::vector< std::string > GetStreamNames() const =0
get the names of all the streams
JiveXML::IEventServer
Pure abstract interface for all event serving classes that provide events, streams and status informa...
Definition: IEventServer.h:20
IMessage.h
JiveXML::IEventServer::GetState
virtual int GetState() const =0
get the Status of the application
JiveXML::IEventServer::GetEventStreamID
virtual const EventStreamID GetEventStreamID(const std::string &streamName) const =0
get the current EventStreamID for a particular stream
JiveXML::EventStreamID
For the client-server communication, each event is uniquely identified by the run number,...
Definition: EventStream.h:19
JiveXML
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Definition: BadLArRetriever.cxx:22
JiveXML::IEventServer::GetRunServerFlag
virtual bool GetRunServerFlag() const =0
The server thread will stop once this flag is set to false.
AthenaPoolExample_Copy.streamName
string streamName
Definition: AthenaPoolExample_Copy.py:39
JiveXML::IEventServer::GetEvent
virtual const std::string GetEvent(const EventStreamID &evtStreamID) const =0
get the current event for a particular stream