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

This class is a non-template base class for SendableChooser. More...

#include <wpi/smartdashboard/SendableChooserBase.hpp>

Inheritance diagram for wpi::SendableChooserBase:
wpi::util::Sendable wpi::util::SendableHelper< SendableChooserBase > wpi::SendableChooser< T >

Public Member Functions

 SendableChooserBase ()
 ~SendableChooserBase () override=default
 SendableChooserBase (SendableChooserBase &&oth)
SendableChooserBaseoperator= (SendableChooserBase &&oth)
Public Member Functions inherited from wpi::util::Sendable
virtual constexpr ~Sendable ()=default
virtual void InitSendable (SendableBuilder &builder)=0
 Initializes this Sendable object.
Public Member Functions inherited from wpi::util::SendableHelper< SendableChooserBase >
constexpr SendableHelper (const SendableHelper &rhs)=default
constexpr SendableHelperoperator= (const SendableHelper &rhs)=default

Protected Attributes

std::string m_defaultChoice
std::string m_selected
bool m_haveSelected = false
wpi::util::mutex m_mutex
int m_instance
std::string m_previousVal

Static Protected Attributes

static constexpr const char * kDefault = "default"
static constexpr const char * kOptions = "options"
static constexpr const char * kSelected = "selected"
static constexpr const char * kActive = "active"
static constexpr const char * kInstance = ".instance"
static std::atomic_int s_instances

Additional Inherited Members

Protected Member Functions inherited from wpi::util::SendableHelper< SendableChooserBase >
constexpr ~SendableHelper ()

Detailed Description

This class is a non-template base class for SendableChooser.

It contains static, non-templated variables to avoid their duplication in the template class.

Constructor & Destructor Documentation

◆ SendableChooserBase() [1/2]

wpi::SendableChooserBase::SendableChooserBase ( )

◆ ~SendableChooserBase()

wpi::SendableChooserBase::~SendableChooserBase ( )
overridedefault

◆ SendableChooserBase() [2/2]

wpi::SendableChooserBase::SendableChooserBase ( SendableChooserBase && oth)

Member Function Documentation

◆ operator=()

SendableChooserBase & wpi::SendableChooserBase::operator= ( SendableChooserBase && oth)

Member Data Documentation

◆ kActive

const char* wpi::SendableChooserBase::kActive = "active"
staticconstexprprotected

◆ kDefault

const char* wpi::SendableChooserBase::kDefault = "default"
staticconstexprprotected

◆ kInstance

const char* wpi::SendableChooserBase::kInstance = ".instance"
staticconstexprprotected

◆ kOptions

const char* wpi::SendableChooserBase::kOptions = "options"
staticconstexprprotected

◆ kSelected

const char* wpi::SendableChooserBase::kSelected = "selected"
staticconstexprprotected

◆ m_defaultChoice

std::string wpi::SendableChooserBase::m_defaultChoice
protected

◆ m_haveSelected

bool wpi::SendableChooserBase::m_haveSelected = false
protected

◆ m_instance

int wpi::SendableChooserBase::m_instance
protected

◆ m_mutex

wpi::util::mutex wpi::SendableChooserBase::m_mutex
mutableprotected

◆ m_previousVal

std::string wpi::SendableChooserBase::m_previousVal
protected

◆ m_selected

std::string wpi::SendableChooserBase::m_selected
protected

◆ s_instances

std::atomic_int wpi::SendableChooserBase::s_instances
staticprotected

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