WPILibC++ 2023.4.3
nt::TopicInfo Struct Reference

NetworkTables Topic Information. More...

#include <ntcore_cpp.h>

Public Member Functions

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

Public Attributes

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

Friends

void swap (TopicInfo &first, TopicInfo &second)
 

Detailed Description

NetworkTables Topic Information.

Member Function Documentation

◆ GetProperties()

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

Get topic properties as a JSON object.

Friends And Related Function Documentation

◆ swap

void swap ( TopicInfo first,
TopicInfo second 
)
friend

Member Data Documentation

◆ name

std::string nt::TopicInfo::name

Topic name.

◆ properties

std::string nt::TopicInfo::properties

Topic properties JSON string.

◆ topic

NT_Topic nt::TopicInfo::topic {0}

Topic handle.

◆ type

NT_Type nt::TopicInfo::type {NT_UNASSIGNED}

Topic type.

◆ type_str

std::string nt::TopicInfo::type_str

Topic type string.


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