7 #ifndef ZEROEQ_PUBLISHER_H 8 #define ZEROEQ_PUBLISHER_H 11 #include <zeroeq/types.h> 53 ZEROEQ_API
explicit Publisher(
const std::string& session);
81 ZEROEQ_API
Publisher(
const URI& uri,
const std::string& session);
83 ZEROEQ_API ~Publisher();
93 ZEROEQ_API
bool publish(
const servus::Serializable& serializable);
103 ZEROEQ_API
bool publish(
const uint128_t& event);
115 ZEROEQ_API
bool publish(
const uint128_t& event,
const void* data,
129 ZEROEQ_API
const std::string&
getSession()
const;
131 ZEROEQ_API std::string getAddress()
const;
135 std::unique_ptr<Impl> _impl;
138 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.