mtx::identifiers::ID class

Base class for all the identifiers.

Each identifier has the following format (sigil)(localpart):(hostname).

Derived classes

class Event
An event id.
class Room
A room id.
class User
A user id.

Public functions

auto localpart() const -> std::string
Returns the unique local part of the identifier.
auto hostname() const -> std::string
Returns the name of the originating homeserver.
auto to_string() const -> std::string
Returns the whole identifier (localpart + hostname).

Protected variables

std::string localpart_
Local part of the identifier.
std::string hostname_
The name of the originating homeserver.
std::string id_
The whole identifier.