WPILibC++ 2024.3.2
ntcore C++ meta-topic API

Meta-topic decoders for C++. More...

Classes

struct  nt::meta::SubscriberOptions
 Subscriber options. More...
 
struct  nt::meta::TopicPublisher
 Topic publisher (as published via $pub$<topic>). More...
 
struct  nt::meta::TopicSubscriber
 Topic subscriber (as published via $sub$<topic>). More...
 
struct  nt::meta::ClientPublisher
 Client publisher (as published via $clientpub$<client> or $serverpub). More...
 
struct  nt::meta::ClientSubscriber
 Client subscriber (as published via $clientsub$<client> or $serversub). More...
 
struct  nt::meta::Client
 Client (as published via $clients). More...
 

Functions

std::optional< std::vector< TopicPublisher > > nt::meta::DecodeTopicPublishers (std::span< const uint8_t > data)
 Decodes $pub$<topic> meta-topic data. More...
 
std::optional< std::vector< TopicSubscriber > > nt::meta::DecodeTopicSubscribers (std::span< const uint8_t > data)
 Decodes $sub$<topic> meta-topic data. More...
 
std::optional< std::vector< ClientPublisher > > nt::meta::DecodeClientPublishers (std::span< const uint8_t > data)
 Decodes $clientpub$<topic> meta-topic data. More...
 
std::optional< std::vector< ClientSubscriber > > nt::meta::DecodeClientSubscribers (std::span< const uint8_t > data)
 Decodes $clientsub$<topic> meta-topic data. More...
 
std::optional< std::vector< Client > > nt::meta::DecodeClients (std::span< const uint8_t > data)
 Decodes $clients meta-topic data. More...
 

Detailed Description

Meta-topic decoders for C++.

Function Documentation

◆ DecodeClientPublishers()

std::optional< std::vector< ClientPublisher > > nt::meta::DecodeClientPublishers ( std::span< const uint8_t >  data)

Decodes $clientpub$<topic> meta-topic data.

Parameters
datadata contents
Returns
Vector of ClientPublishers, or empty optional on decoding error.

◆ DecodeClients()

std::optional< std::vector< Client > > nt::meta::DecodeClients ( std::span< const uint8_t >  data)

Decodes $clients meta-topic data.

Parameters
datadata contents
Returns
Vector of Clients, or empty optional on decoding error.

◆ DecodeClientSubscribers()

std::optional< std::vector< ClientSubscriber > > nt::meta::DecodeClientSubscribers ( std::span< const uint8_t >  data)

Decodes $clientsub$<topic> meta-topic data.

Parameters
datadata contents
Returns
Vector of ClientSubscribers, or empty optional on decoding error.

◆ DecodeTopicPublishers()

std::optional< std::vector< TopicPublisher > > nt::meta::DecodeTopicPublishers ( std::span< const uint8_t >  data)

Decodes $pub$<topic> meta-topic data.

Parameters
datadata contents
Returns
Vector of TopicPublishers, or empty optional on decoding error.

◆ DecodeTopicSubscribers()

std::optional< std::vector< TopicSubscriber > > nt::meta::DecodeTopicSubscribers ( std::span< const uint8_t >  data)

Decodes $sub$<topic> meta-topic data.

Parameters
datadata contents
Returns
Vector of TopicSubscribers, or empty optional on decoding error.