struct Channel

Declaration

struct Channel { /* full declaration omitted */ };

Description

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).

Declared at: mcap/include/mcap/types.hpp:158

Member Variables

public mcap::ChannelId id
public std::string topic
public std::string messageEncoding
public mcap::SchemaId schemaId
public mcap::KeyValueMap metadata

Method Overview

  • public Channel()
  • public Channel(const std::string_view topic, const std::string_view messageEncoding, mcap::SchemaId schemaId, const mcap::KeyValueMap & metadata = {})

Methods

Channel()

Declared at: mcap/include/mcap/types.hpp:165

Channel(const std::string_view topic,
        const std::string_view messageEncoding,
        mcap::SchemaId schemaId,
        const mcap::KeyValueMap& metadata = {})

Declared at: mcap/include/mcap/types.hpp:167

Parameters

const std::string_view topic
const std::string_view messageEncoding
mcap::SchemaId schemaId
const mcap::KeyValueMap& metadata = {}