ATLAS Offline Software
Loading...
Searching...
No Matches
StreamToServerTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef JIVEXML__STREAMTOSERVERTOOL_H
6#define JIVEXML__STREAMTOSERVERTOOL_H
7
8//Interfaces
10#include "JiveXML/IServerSvc.h"
11#include "JiveXML/EventStream.h"
13#include "GaudiKernel/ServiceHandle.h"
15
16namespace JiveXML {
17
25 class StreamToServerTool : virtual public IStreamTool, public AthAlgTool{
26
27 public:
28
30 StreamToServerTool( const std::string&, const std::string&, const IInterface*);
31
33 virtual StatusCode initialize();
34
36 virtual StatusCode finalize();
37
39 virtual StatusCode StreamEvent( const unsigned long EventNumber, const unsigned int RunNumber, const std::ostringstream* const EventBuffer ) ;
40
41 protected:
42
45 ServiceHandle<IOnlineEventDisplaysSvc> m_onlineEDsvc{this, "OnlineEventDisplaysSvc", "Online Event Displays Service"};
46 private:
47
49 std::string m_StreamName;
50
51 };
52
53} //Namespace
54
55#endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Abstract interface to JiveXML event streaming classes.
Definition IStreamTool.h:24
virtual StatusCode initialize()
Initialize.
ServiceHandle< IOnlineEventDisplaysSvc > m_onlineEDsvc
StreamToServerTool(const std::string &, const std::string &, const IInterface *)
Constructor.
std::string m_StreamName
Stream name under which these events shall appear.
virtual StatusCode StreamEvent(const unsigned long EventNumber, const unsigned int RunNumber, const std::ostringstream *const EventBuffer)
Stream one event.
ServiceHandle< IServerSvc > m_ServerSvc
Handle to the server that this tools shall stream events to.
virtual StatusCode finalize()
Finalize.
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.