List of all members |
Public Types |
Public Member Functions |
Static Public Member Functions |
Static Public Attributes |
Protected Member Functions
BatteryState Class Referencefinal
#include <battery_state.pb.h>
Public Types | |
enum | : int { kHeaderFieldNumber = 1 , kVoltageFieldNumber = 2 , kCurrentFieldNumber = 3 , kChargeFieldNumber = 4 , kCapacityFieldNumber = 5 , kPercentageFieldNumber = 6 , kPowerSupplyStatusFieldNumber = 7 } |
typedef BatteryState_PowerSupplyStatus | PowerSupplyStatus |
Public Member Functions | |
BatteryState () | |
constexpr | BatteryState (::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
BatteryState (BatteryState &&from) noexcept | |
BatteryState (const BatteryState &from) | |
~BatteryState () override | |
const char * | _InternalParse (const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final |
uint8_t * | _InternalSerialize (uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final |
size_t | ByteSizeLong () const final |
double | capacity () const |
double | charge () const |
PROTOBUF_ATTRIBUTE_REINITIALIZES void | Clear () final |
void | clear_capacity () |
void | clear_charge () |
void | clear_current () |
void | clear_header () |
void | clear_percentage () |
void | clear_power_supply_status () |
void | clear_voltage () |
void | CopyFrom (const BatteryState &from) |
double | current () const |
int | GetCachedSize () const final |
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * | GetClassData () const final |
::PROTOBUF_NAMESPACE_ID::Metadata | GetMetadata () const final |
bool | has_header () const |
const ::ignition::msgs::Header & | header () const |
bool | IsInitialized () const final |
void | MergeFrom (const BatteryState &from) |
::ignition::msgs::Header * | mutable_header () |
BatteryState * | New (::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final |
BatteryState & | operator= (BatteryState &&from) noexcept |
BatteryState & | operator= (const BatteryState &from) |
double | percentage () const |
::ignition::msgs::BatteryState_PowerSupplyStatus | power_supply_status () const |
PROTOBUF_NODISCARD ::ignition::msgs::Header * | release_header () |
void | set_allocated_header (::ignition::msgs::Header *header) |
void | set_capacity (double value) |
void | set_charge (double value) |
void | set_current (double value) |
void | set_percentage (double value) |
void | set_power_supply_status (::ignition::msgs::BatteryState_PowerSupplyStatus value) |
void | set_voltage (double value) |
void | Swap (BatteryState *other) |
::ignition::msgs::Header * | unsafe_arena_release_header () |
void | unsafe_arena_set_allocated_header (::ignition::msgs::Header *header) |
void | UnsafeArenaSwap (BatteryState *other) |
double | voltage () const |
Static Public Member Functions | |
static const BatteryState & | default_instance () |
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * | descriptor () |
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * | GetDescriptor () |
static const ::PROTOBUF_NAMESPACE_ID::Reflection * | GetReflection () |
static const BatteryState * | internal_default_instance () |
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * | PowerSupplyStatus_descriptor () |
static bool | PowerSupplyStatus_IsValid (int value) |
template<typename T > | |
static const std::string & | PowerSupplyStatus_Name (T enum_t_value) |
static bool | PowerSupplyStatus_Parse (::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PowerSupplyStatus *value) |
Static Public Attributes | |
static const ClassData | _class_data_ |
static constexpr PowerSupplyStatus | CHARGING |
static constexpr PowerSupplyStatus | DISCHARGING |
static constexpr PowerSupplyStatus | FULL |
static constexpr int | kIndexInFileMessages |
static constexpr PowerSupplyStatus | NOT_CHARGING |
static constexpr int | PowerSupplyStatus_ARRAYSIZE |
static constexpr PowerSupplyStatus | PowerSupplyStatus_MAX |
static constexpr PowerSupplyStatus | PowerSupplyStatus_MIN |
static constexpr PowerSupplyStatus | UNKNOWN |
Protected Member Functions | |
BatteryState (::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false) | |
Member Typedef Documentation
◆ PowerSupplyStatus
Member Enumeration Documentation
◆ anonymous enum
anonymous enum : int |
Constructor & Destructor Documentation
◆ BatteryState() [1/5]
|
inline |
◆ ~BatteryState()
|
override |
◆ BatteryState() [2/5]
|
explicitconstexpr |
◆ BatteryState() [3/5]
BatteryState | ( | const BatteryState & | from | ) |
◆ BatteryState() [4/5]
|
inlinenoexcept |
◆ BatteryState() [5/5]
|
explicitprotected |
Member Function Documentation
◆ _InternalParse()
|
final |
◆ _InternalSerialize()
|
final |
◆ ByteSizeLong()
|
final |
◆ capacity()
|
inline |
◆ charge()
|
inline |
◆ Clear()
|
final |
◆ clear_capacity()
|
inline |
◆ clear_charge()
|
inline |
◆ clear_current()
|
inline |
◆ clear_header()
void clear_header | ( | ) |
◆ clear_percentage()
|
inline |
◆ clear_power_supply_status()
|
inline |
◆ clear_voltage()
|
inline |
◆ CopyFrom()
void CopyFrom | ( | const BatteryState & | from | ) |
◆ current()
|
inline |
◆ default_instance()
|
inlinestatic |
◆ descriptor()
|
inlinestatic |
◆ GetCachedSize()
|
inlinefinal |
◆ GetClassData()
|
final |
◆ GetDescriptor()
|
inlinestatic |
◆ GetMetadata()
|
final |
◆ GetReflection()
|
inlinestatic |
◆ has_header()
|
inline |
◆ header()
|
inline |
◆ internal_default_instance()
|
inlinestatic |
References ignition::msgs::_BatteryState_default_instance_.
◆ IsInitialized()
|
final |
◆ MergeFrom()
void MergeFrom | ( | const BatteryState & | from | ) |
◆ mutable_header()
|
inline |
◆ New()
|
inlinefinal |
◆ operator=() [1/2]
|
inlinenoexcept |
◆ operator=() [2/2]
|
inline |
◆ percentage()
|
inline |
◆ power_supply_status()
|
inline |
◆ PowerSupplyStatus_descriptor()
|
inlinestatic |
◆ PowerSupplyStatus_IsValid()
|
inlinestatic |
◆ PowerSupplyStatus_Name()
|
inlinestatic |
◆ PowerSupplyStatus_Parse()
|
inlinestatic |
◆ release_header()
|
inline |
◆ set_allocated_header()
|
inline |
◆ set_capacity()
|
inline |
◆ set_charge()
|
inline |
◆ set_current()
|
inline |
◆ set_percentage()
|
inline |
◆ set_power_supply_status()
|
inline |
◆ set_voltage()
|
inline |
◆ Swap()
|
inline |
◆ unsafe_arena_release_header()
|
inline |
◆ unsafe_arena_set_allocated_header()
|
inline |
◆ UnsafeArenaSwap()
|
inline |
◆ voltage()
|
inline |
Member Data Documentation
◆ _class_data_
|
static |
◆ CHARGING
|
staticconstexpr |
Initial value:
=
@ BatteryState_PowerSupplyStatus_CHARGING
Definition: battery_state.pb.h:84
◆ DISCHARGING
|
staticconstexpr |
Initial value:
=
@ BatteryState_PowerSupplyStatus_DISCHARGING
Definition: battery_state.pb.h:85
◆ FULL
|
staticconstexpr |
Initial value:
=
@ BatteryState_PowerSupplyStatus_FULL
Definition: battery_state.pb.h:87
◆ kIndexInFileMessages
|
staticconstexpr |
Initial value:
=
0
◆ NOT_CHARGING
|
staticconstexpr |
Initial value:
=
@ BatteryState_PowerSupplyStatus_NOT_CHARGING
Definition: battery_state.pb.h:86
◆ PowerSupplyStatus_ARRAYSIZE
|
staticconstexpr |
Initial value:
=
constexpr int BatteryState_PowerSupplyStatus_PowerSupplyStatus_ARRAYSIZE
Definition: battery_state.pb.h:94
◆ PowerSupplyStatus_MAX
|
staticconstexpr |
Initial value:
=
constexpr BatteryState_PowerSupplyStatus BatteryState_PowerSupplyStatus_PowerSupplyStatus_MAX
Definition: battery_state.pb.h:93
◆ PowerSupplyStatus_MIN
|
staticconstexpr |
Initial value:
=
constexpr BatteryState_PowerSupplyStatus BatteryState_PowerSupplyStatus_PowerSupplyStatus_MIN
Definition: battery_state.pb.h:92
◆ UNKNOWN
|
staticconstexpr |
Initial value:
=
@ BatteryState_PowerSupplyStatus_UNKNOWN
Definition: battery_state.pb.h:83
The documentation for this class was generated from the following file: