WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
frc::NamedSendable Class Reference

The interface for sendable objects that gives the sendable a default name in the Smart Dashboard. More...

#include <NamedSendable.h>

Inheritance diagram for frc::NamedSendable:
frc::Sendable

Public Member Functions

void SetName (const wpi::Twine &name) override
 Sets the name of this Sendable object. More...
 
std::string GetSubsystem () const override
 Gets the subsystem name of this Sendable object. More...
 
void SetSubsystem (const wpi::Twine &subsystem) override
 Sets the subsystem name of this Sendable object. More...
 
void InitSendable (SendableBuilder &builder) override
 Initializes this Sendable object. More...
 
- Public Member Functions inherited from frc::Sendable
 Sendable (Sendable &&)=default
 
Sendableoperator= (Sendable &&)=default
 
virtual std::string GetName () const =0
 Gets the name of this Sendable object. More...
 
void SetName (const wpi::Twine &subsystem, const wpi::Twine &name)
 Sets both the subsystem name and device name of this Sendable object. More...
 

Detailed Description

The interface for sendable objects that gives the sendable a default name in the Smart Dashboard.

Deprecated:
Use Sendable directly instead

Member Function Documentation

std::string frc::NamedSendable::GetSubsystem ( ) const
overridevirtual

Gets the subsystem name of this Sendable object.

Returns
Subsystem name

Implements frc::Sendable.

void frc::NamedSendable::InitSendable ( SendableBuilder builder)
overridevirtual

Initializes this Sendable object.

Parameters
buildersendable builder

Implements frc::Sendable.

void frc::NamedSendable::SetName ( const wpi::Twine name)
overridevirtual

Sets the name of this Sendable object.

Parameters
namename

Implements frc::Sendable.

void frc::NamedSendable::SetSubsystem ( const wpi::Twine subsystem)
overridevirtual

Sets the subsystem name of this Sendable object.

Parameters
subsystemsubsystem name

Implements frc::Sendable.


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