Class NamedObject

Inheritance Relationships

Derived Types

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.