7 #ifndef ZEROEQ_PUBLISHER_H
8 #define ZEROEQ_PUBLISHER_H
11 #include <zeroeq/types.h>
54 ZEROEQ_API
explicit Publisher(
const std::string& session );
82 ZEROEQ_API
Publisher(
const URI& uri,
const std::string& session );
84 ZEROEQ_API ~Publisher();
94 ZEROEQ_API
bool publish(
const servus::Serializable& serializable );
104 ZEROEQ_API
bool publish(
const uint128_t& event );
116 ZEROEQ_API
bool publish(
const uint128_t& event,
const void* data,
130 ZEROEQ_API
const std::string&
getSession()
const;
132 ZEROEQ_API std::string getAddress()
const;
136 std::unique_ptr< Impl > _impl;
139 Publisher& operator=(
const Publisher& ) =
delete;
Enhances servus::URI to guarantee the existance of a schema and to allow construction of [host][:port...
Defines export visibility macros for library ZeroEQ.
const URI & getURI() const
Get the publisher URI.
const std::string & getSession() const
Publish-subscribe classes for typed events.
bool publish(const servus::Serializable &serializable)
Publish the given serializable object to any subscriber.
Serves and publishes events, consumed by Subscriber.
Publisher()
Create a default publisher.