WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
frc::Sendable Class Referenceabstract
Inheritance diagram for frc::Sendable:
frc::LiveWindowSendable frc::NamedSendable frc::SendableBase frc::ADXL345_I2C frc::ADXL345_SPI frc::ADXL362 frc::AnalogAccelerometer frc::AnalogInput frc::AnalogOutput frc::AnalogPotentiometer frc::AnalogTrigger frc::BuiltInAccelerometer frc::Command frc::Compressor frc::Counter frc::DigitalGlitchFilter frc::DigitalOutput frc::Encoder frc::GyroBase frc::InterruptableSensorBase frc::NidecBrushless frc::PIDBase frc::PowerDistributionPanel frc::PWM frc::Relay frc::RobotDriveBase frc::Scheduler frc::SendableCameraWrapper frc::SendableChooserBase frc::SmartDashboard frc::SolenoidBase frc::SpeedControllerGroup frc::Subsystem frc::Trigger frc::Ultrasonic

Public Member Functions

 Sendable (Sendable &&)=default
 
Sendableoperator= (Sendable &&)=default
 
virtual std::string GetName () const =0
 Gets the name of this Sendable object. More...
 
virtual void SetName (const wpi::Twine &name)=0
 Sets 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...
 
virtual std::string GetSubsystem () const =0
 Gets the subsystem name of this Sendable object. More...
 
virtual void SetSubsystem (const wpi::Twine &subsystem)=0
 Sets the subsystem name of this Sendable object. More...
 
virtual void InitSendable (SendableBuilder &builder)=0
 Initializes this Sendable object. More...
 

Member Function Documentation

virtual std::string frc::Sendable::GetName ( ) const
pure virtual

Gets the name of this Sendable object.

Returns
Name

Implemented in frc::LiveWindowSendable, and frc::SendableBase.

virtual std::string frc::Sendable::GetSubsystem ( ) const
pure virtual

Gets the subsystem name of this Sendable object.

Returns
Subsystem name

Implemented in frc::LiveWindowSendable, frc::SendableBase, and frc::NamedSendable.

virtual void frc::Sendable::SetName ( const wpi::Twine name)
pure virtual

Sets the name of this Sendable object.

Parameters
namename

Implemented in frc::LiveWindowSendable, frc::SendableBase, and frc::NamedSendable.

void frc::Sendable::SetName ( const wpi::Twine subsystem,
const wpi::Twine name 
)
inline

Sets both the subsystem name and device name of this Sendable object.

Parameters
subsystemsubsystem name
namedevice name
virtual void frc::Sendable::SetSubsystem ( const wpi::Twine subsystem)
pure virtual

Sets the subsystem name of this Sendable object.

Parameters
subsystemsubsystem name

Implemented in frc::LiveWindowSendable, frc::SendableBase, and frc::NamedSendable.


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