BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/ers/include/ers/FIFOStream.h
Go to the documentation of this file.
1/*
2 * FIFOStream.h
3 * ers
4 *
5 * Created by Matthias Wiesmann on 02.12.04.
6 * Copyright 2004 CERN. All rights reserved.
7 *
8 */
9
10#include "ers/Stream.h"
11#include <deque>
12
13namespace ers {
14
15 /** This streams is used to transmit Issues inside a process.
16 * \author Matthias Wiesmann
17 * \version 1.0
18 * \brief Queue stream
19 * \note This stream is \b not thread safe - it cannot depend on thread library.
20 */
21
22 class FIFOStream : public Stream {
23
24 protected:
25 std::deque<Issue*> m_issue_queue;
26
27 public:
28 static const char* const FIFO_STREAM_KEY; /**< Key for FIFO stream */
29 FIFOStream();
30 FIFOStream( const FIFOStream& other );
32 virtual void send( const Issue* i );
33 virtual Issue* receive();
34 virtual void print_to( std::ostream& stream ) const;
35 }; // FIFOStream
36} // namespace ers
static const char *const FIFO_STREAM_KEY
virtual void send(const Issue *i)
std::deque< Issue * > m_issue_queue
virtual void print_to(std::ostream &stream) const
virtual Issue * receive()