10#include "ers/FIFOStream.h"
11#include "ers/Precondition.h"
12#include "ers/NotImplemented.h"
13#include "ers/InvalidReferenceIssue.h"
14#include "ers/StreamFactory.h"
19 ers::Stream *create_stream(
const std::string &protocol,
const std::string &uri) {
31 for(
unsigned int i=0;i<other.m_issue_queue.size();i++) {
32 Issue *cloned = other.m_issue_queue[i]->clone();
48 m_issue_queue.push_back(cloned);
57 if (m_issue_queue.empty())
return 0 ;
58 Issue *issue = m_issue_queue[0] ;
59 m_issue_queue.pop_front();
65 for(
unsigned int i=0;i<m_issue_queue.size();i++) {
66 stream << m_issue_queue[i]->what() ;
67 if (i!=m_issue_queue.size()-1) {
#define ERS_PRE_CHECK_PTR(p)
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()
bool register_factory(const std::string &name, create_stream_callback callback)
register a factory method
static StreamFactory * instance()
return the singleton