Describes a Channel that messages are written to. A Channel represents a single connection from a publisher to a topic, so each topic will have one Channel per publisher. Channels optionally reference a Schema, for message encodings that are not self-describing (e.g. JSON) or when schema information is available (e.g. JSONSchema). More...
#include <types.hpp>
Public Member Functions | |
Channel ()=default | |
Channel (const std::string_view topic, const std::string_view messageEncoding, SchemaId schemaId, const KeyValueMap &metadata={}) | |
Public Attributes | |
ChannelId | id |
std::string | messageEncoding |
KeyValueMap | metadata |
SchemaId | schemaId |
std::string | topic |
Describes a Channel that messages are written to. A Channel represents a single connection from a publisher to a topic, so each topic will have one Channel per publisher. Channels optionally reference a Schema, for message encodings that are not self-describing (e.g. JSON) or when schema information is available (e.g. JSONSchema).
|
default |
|
inline |
KeyValueMap mcap::Channel::metadata |