14#include "ers/StreamFactory.h"
19 ers::Stream *create_stream(
const std::string &protocol,
const std::string &uri) {
35ers::Stream::operator std::string()
const {
36 std::ostringstream stream ;
60 stream << NULL_STREAM_KEY <<
':' ;
bool register_factory(const std::string &name, create_stream_callback callback)
register a factory method
static StreamFactory * instance()
return the singleton
virtual void print_to(std::ostream &stream) const
virtual void send(const Issue *i)
Sends an issue into the stream.
virtual Issue * receive()
Receives an issue from the stream.
static const char *const NULL_STREAM_KEY
std::ostream & operator<<(std::ostream &, const Issue &)