Class PubSubObject
Defined in File pub_sub.hpp
Inheritance Relationships
Base Types
public email::GidObject
(Class GidObject)public email::NamedObject
(Class NamedObject)
Derived Types
public email::Publisher
(Class Publisher)public email::Subscription
(Class Subscription)
Class Documentation
-
class PubSubObject : public email::GidObject, public email::NamedObject
Abstract pub or sub object.
Abstract class with common publisher and subscription elements.
Subclassed by email::Publisher, email::Subscription
Public Functions
-
const std::string &get_topic_name() const
Get the topic name.
- Returns:
the topic name
Protected Functions
-
explicit PubSubObject(const std::string &topic_name)
Constructor.
Validates the topic name.
- Parameters:
topic_name – the topic name
- Throws:
TopicNameInvalidError – if the topic name is invalid
-
virtual ~PubSubObject()
-
const std::string &get_topic_name() const