ATLAS Offline Software
Loading...
Searching...
No Matches
IByteStreamInputSvc.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef BYTESTREAMCNVSVC_BYTESTREAMINPUTSVC_H
6#define BYTESTREAMCNVSVC_BYTESTREAMINPUTSVC_H
7
12
14#include "GaudiKernel/IInterface.h"
15
16
21class IByteStreamInputSvc : virtual public IInterface {
22public:
24
26 virtual const RawEvent* nextEvent() = 0;
27 virtual const RawEvent* previousEvent() = 0;
28 virtual void setEvent(void* /*data*/, unsigned int /*status*/) {}
30 virtual const RawEvent* currentEvent() const = 0;
32 virtual unsigned int currentEventStatus() const;
33 virtual std::pair<long,std::string> getBlockIterator(const std::string& /* file */);
34 virtual void closeBlockIterator(bool);
35 virtual bool ready();
36 virtual StatusCode generateDataHeader();
37 virtual long positionInBlock();
38 virtual void validateEvent();
39};
40
41inline unsigned int IByteStreamInputSvc::currentEventStatus() const {
42 return 0;
43}
44
45// Virtual methods needed for file input
46inline std::pair<long,std::string> IByteStreamInputSvc::getBlockIterator(const std::string& /* file */) {return std::make_pair(-1,"GUID");}
48inline bool IByteStreamInputSvc::ready() {return false;}
49inline StatusCode IByteStreamInputSvc::generateDataHeader() {return StatusCode::SUCCESS;}
50inline long IByteStreamInputSvc::positionInBlock() {return -1;}
52#endif
OFFLINE_FRAGMENTS_NAMESPACE::FullEventFragment RawEvent
data type for reading raw event
Definition RawEvent.h:37
This class provides the interface to services to read bytestream data.
virtual long positionInBlock()
DeclareInterfaceID(IByteStreamInputSvc, 1, 0)
virtual void closeBlockIterator(bool)
virtual void setEvent(void *, unsigned int)
virtual void validateEvent()
virtual StatusCode generateDataHeader()
virtual unsigned int currentEventStatus() const
virtual method for accessing the current event status
virtual const RawEvent * currentEvent() const =0
virtual method for accessing the current event
virtual const RawEvent * previousEvent()=0
virtual std::pair< long, std::string > getBlockIterator(const std::string &)
virtual const RawEvent * nextEvent()=0
virtual method for advance to the next event