WPILibC++ 2023.4.3
nt::Publisher Class Reference

NetworkTables publisher. More...

#include <networktables/Topic.h>

Inheritance diagram for nt::Publisher:
nt::BooleanArrayPublisher nt::BooleanPublisher nt::DoubleArrayPublisher nt::DoublePublisher nt::FloatArrayPublisher nt::FloatPublisher nt::GenericPublisher nt::IntegerArrayPublisher nt::IntegerPublisher nt::RawPublisher nt::StringArrayPublisher nt::StringPublisher nt::UnitPublisher< T >

Public Member Functions

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

Protected Member Functions

 Publisher ()=default
 
 Publisher (NT_Publisher handle)
 

Protected Attributes

NT_Publisher m_pubHandle {0}
 

Detailed Description

NetworkTables publisher.

Constructor & Destructor Documentation

◆ ~Publisher()

nt::Publisher::~Publisher ( )
inlinevirtual

◆ Publisher() [1/4]

nt::Publisher::Publisher ( const Publisher )
delete

◆ Publisher() [2/4]

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

◆ Publisher() [3/4]

nt::Publisher::Publisher ( )
protecteddefault

◆ Publisher() [4/4]

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

Member Function Documentation

◆ GetHandle()

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

Gets the native handle for the publisher.

Returns
Native handle

◆ GetTopic()

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

Gets the published-to topic.

Returns
Topic

◆ operator bool()

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 & nt::Publisher::operator= ( const Publisher )
delete

◆ operator=() [2/2]

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

Member Data Documentation

◆ m_pubHandle

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

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