WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::nt::Publisher Class Reference

NetworkTables publisher. More...

#include <wpi/nt/Topic.hpp>

Inheritance diagram for wpi::nt::Publisher:
wpi::nt::StructArrayPublisher< T, I... > wpi::nt::StructPublisher< T, I... > wpi::nt::BooleanArrayPublisher wpi::nt::BooleanPublisher wpi::nt::DoubleArrayPublisher wpi::nt::DoublePublisher wpi::nt::FloatArrayPublisher wpi::nt::FloatPublisher wpi::nt::GenericPublisher wpi::nt::IntegerArrayPublisher wpi::nt::IntegerPublisher wpi::nt::ProtobufPublisher< T > wpi::nt::RawPublisher wpi::nt::StringArrayPublisher wpi::nt::StringPublisher wpi::nt::StructArrayPublisher< T, I > wpi::nt::StructPublisher< T, I > wpi::nt::UnitPublisher< T >

Public Member Functions

virtual ~Publisher ()
 Publisher (const Publisher &)=delete
Publisheroperator= (const Publisher &)=delete
 Publisher (Publisher &&rhs)
Publisheroperator= (Publisher &&rhs)
 operator bool () const
 Determines if the native handle is valid.
NT_Publisher GetHandle () const
 Gets the native handle for the publisher.
Topic GetTopic () const
 Gets the published-to topic.

Protected Member Functions

 Publisher ()=default
 Publisher (NT_Publisher handle)

Protected Attributes

NT_Publisher m_pubHandle {0}
 NetworkTables handle.

Detailed Description

NetworkTables publisher.

Constructor & Destructor Documentation

◆ ~Publisher()

virtual wpi::nt::Publisher::~Publisher ( )
inlinevirtual

◆ Publisher() [1/4]

wpi::nt::Publisher::Publisher ( const Publisher & )
delete

◆ Publisher() [2/4]

wpi::nt::Publisher::Publisher ( Publisher && rhs)
inline

◆ Publisher() [3/4]

wpi::nt::Publisher::Publisher ( )
protecteddefault

◆ Publisher() [4/4]

wpi::nt::Publisher::Publisher ( NT_Publisher handle)
inlineexplicitprotected

Member Function Documentation

◆ GetHandle()

NT_Publisher wpi::nt::Publisher::GetHandle ( ) const
inline

Gets the native handle for the publisher.

Returns
Native handle

◆ GetTopic()

Topic wpi::nt::Publisher::GetTopic ( ) const
inline

Gets the published-to topic.

Returns
Topic

◆ operator bool()

wpi::nt::Publisher::operator bool ( ) const
inlineexplicit

Determines if the native handle is valid.

Returns
True if the native handle is valid, false otherwise.

◆ operator=() [1/2]

Publisher & wpi::nt::Publisher::operator= ( const Publisher & )
delete

◆ operator=() [2/2]

Publisher & wpi::nt::Publisher::operator= ( Publisher && rhs)
inline

Member Data Documentation

◆ m_pubHandle

NT_Publisher wpi::nt::Publisher::m_pubHandle {0}
protected

NetworkTables handle.


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