WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::nt::TopicInfo Struct Reference

NetworkTables Topic Information. More...

#include <wpi/nt/ntcore_cpp.hpp>

Public Member Functions

wpi::util::json GetProperties () const
 Get topic properties as a JSON object.

Public Attributes

NT_Topic topic {0}
 Topic handle.
std::string name
 Topic name.
NT_Type type {NT_UNASSIGNED}
 Topic type.
std::string type_str
 Topic type string.
std::string properties
 Topic properties JSON string.

Friends

void swap (TopicInfo &first, TopicInfo &second)

Detailed Description

NetworkTables Topic Information.

Member Function Documentation

◆ GetProperties()

wpi::util::json wpi::nt::TopicInfo::GetProperties ( ) const

Get topic properties as a JSON object.

◆ swap

void swap ( TopicInfo & first,
TopicInfo & second )
friend

Member Data Documentation

◆ name

std::string wpi::nt::TopicInfo::name

Topic name.

◆ properties

std::string wpi::nt::TopicInfo::properties

Topic properties JSON string.

◆ topic

NT_Topic wpi::nt::TopicInfo::topic {0}

Topic handle.

◆ type

NT_Type wpi::nt::TopicInfo::type {NT_UNASSIGNED}

Topic type.

◆ type_str

std::string wpi::nt::TopicInfo::type_str

Topic type string.


The documentation for this struct was generated from the following file: