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:160

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 int _topic, const int _messageEncoding, mcap::SchemaId _schemaId, const mcap::KeyValueMap & _metadata = {})

Methods

Channel()

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

Channel(const int _topic,
        const int _messageEncoding,
        mcap::SchemaId _schemaId,
        const mcap::KeyValueMap& _metadata = {})

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

Parameters

const int _topic
const int _messageEncoding
mcap::SchemaId _schemaId
const mcap::KeyValueMap& _metadata = {}