CTRE Phoenix 6 C++ 24.3.0
ctre::phoenix6::signals::RobotEnableValue Class Reference

Whether the robot is enabled. More...

#include <ctre/phoenix6/signals/SpnEnums.hpp>

Inheritance diagram for ctre::phoenix6::signals::RobotEnableValue:
ctre::phoenix6::ISerializable

Public Member Functions

 RobotEnableValue (int value)
 
 RobotEnableValue ()
 
std::string ToString () const
 Gets the string representation of this enum. More...
 
std::string Serialize () const
 
bool operator== (const RobotEnableValue &data) const
 
bool operator== (int data) const
 
bool operator< (const RobotEnableValue &data) const
 
bool operator< (int data) const
 
virtual std::string Serialize () const =0
 

Public Attributes

int value
 

Static Public Attributes

static constexpr int Enabled = 1
 
static constexpr int Disabled = 0
 

Friends

std::ostream & operator<< (std::ostream &os, const RobotEnableValue &data)
 

Detailed Description

Whether the robot is enabled.

Constructor & Destructor Documentation

◆ RobotEnableValue() [1/2]

ctre::phoenix6::signals::RobotEnableValue::RobotEnableValue ( int  value)
inline

◆ RobotEnableValue() [2/2]

ctre::phoenix6::signals::RobotEnableValue::RobotEnableValue ( )
inline

Member Function Documentation

◆ operator<() [1/2]

bool ctre::phoenix6::signals::RobotEnableValue::operator< ( const RobotEnableValue data) const
inline

◆ operator<() [2/2]

bool ctre::phoenix6::signals::RobotEnableValue::operator< ( int  data) const
inline

◆ operator==() [1/2]

bool ctre::phoenix6::signals::RobotEnableValue::operator== ( const RobotEnableValue data) const
inline

◆ operator==() [2/2]

bool ctre::phoenix6::signals::RobotEnableValue::operator== ( int  data) const
inline

◆ Serialize()

std::string ctre::phoenix6::signals::RobotEnableValue::Serialize ( ) const
inlinevirtual

◆ ToString()

std::string ctre::phoenix6::signals::RobotEnableValue::ToString ( ) const
inline

Gets the string representation of this enum.

Returns
String representation of this enum

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const RobotEnableValue data 
)
friend

Member Data Documentation

◆ Disabled

constexpr int ctre::phoenix6::signals::RobotEnableValue::Disabled = 0
staticconstexpr

◆ Enabled

constexpr int ctre::phoenix6::signals::RobotEnableValue::Enabled = 1
staticconstexpr

◆ value

int ctre::phoenix6::signals::RobotEnableValue::value

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