Class NamedObject
Defined in File named_object.hpp
Inheritance Relationships
Derived Types
public email::PubSubObject
(Class PubSubObject)public email::ServiceObject
(Class ServiceObject)
Class Documentation
-
class NamedObject
Abstract object with a name.
Abstract class for objects that have a name (like a topic name or a service name) that needs to be validated.
Subclassed by email::PubSubObject, email::ServiceObject
Protected Functions
-
const std::string &get_object_name() const
Get the object’s name.
- Returns:
the name
-
explicit NamedObject(const std::string &name)
Constructor.
- Parameters:
name – the name
-
virtual ~NamedObject()
-
virtual void validate_name() const = 0
Validate the object’s name and throw an error with an explanation if it is not valid.
-
bool has_newline() const
Check if the object’s name contains a newline.
-
const std::string &get_object_name() const