List of all members |
Public Types |
Public Member Functions |
Static Public Member Functions |
Static Public Attributes
BatteryState Class Reference
#include <battery_state.pb.h>
Public Types | |
typedef BatteryState_PowerSupplyStatus | PowerSupplyStatus |
Public Member Functions | |
BatteryState () | |
BatteryState (const BatteryState &from) | |
virtual | ~BatteryState () |
size_t | ByteSizeLong () const final |
double | capacity () const |
double | charge () const |
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 ::google::protobuf::Message &from) final |
void | CopyFrom (const BatteryState &from) |
double | current () const |
int | GetCachedSize () const final |
::google::protobuf::Metadata | GetMetadata () const final |
bool | has_header () const |
const ::gz::msgs::Header & | header () const |
::google::protobuf::uint8 * | InternalSerializeWithCachedSizesToArray (bool deterministic, ::google::protobuf::uint8 *target) const final |
bool | IsInitialized () const final |
void | MergeFrom (const ::google::protobuf::Message &from) final |
void | MergeFrom (const BatteryState &from) |
bool | MergePartialFromCodedStream (::google::protobuf::io::CodedInputStream *input) final |
::gz::msgs::Header * | mutable_header () |
BatteryState * | New () const final |
BatteryState * | New (::google::protobuf::Arena *arena) const final |
BatteryState & | operator= (const BatteryState &from) |
double | percentage () const |
::gz::msgs::BatteryState_PowerSupplyStatus | power_supply_status () const |
::gz::msgs::Header * | release_header () |
void | SerializeWithCachedSizes (::google::protobuf::io::CodedOutputStream *output) const final |
void | set_allocated_header (::gz::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 (::gz::msgs::BatteryState_PowerSupplyStatus value) |
void | set_voltage (double value) |
void | Swap (BatteryState *other) |
double | voltage () const |
Static Public Member Functions | |
static const BatteryState & | default_instance () |
static const ::google::protobuf::Descriptor * | descriptor () |
static void | InitAsDefaultInstance () |
static const BatteryState * | internal_default_instance () |
static const ::google::protobuf::EnumDescriptor * | PowerSupplyStatus_descriptor () |
static bool | PowerSupplyStatus_IsValid (int value) |
static const ::std::string & | PowerSupplyStatus_Name (PowerSupplyStatus value) |
static bool | PowerSupplyStatus_Parse (const ::std::string &name, PowerSupplyStatus *value) |
Static Public Attributes | |
static const PowerSupplyStatus | CHARGING |
static const PowerSupplyStatus | DISCHARGING |
static const PowerSupplyStatus | FULL |
static const int | kCapacityFieldNumber = 5 |
static const int | kChargeFieldNumber = 4 |
static const int | kCurrentFieldNumber = 3 |
static const int | kHeaderFieldNumber = 1 |
static constexpr int | kIndexInFileMessages |
static const int | kPercentageFieldNumber = 6 |
static const int | kPowerSupplyStatusFieldNumber = 7 |
static const int | kVoltageFieldNumber = 2 |
static const PowerSupplyStatus | NOT_CHARGING |
static const int | PowerSupplyStatus_ARRAYSIZE |
static const PowerSupplyStatus | PowerSupplyStatus_MAX |
static const PowerSupplyStatus | PowerSupplyStatus_MIN |
static const PowerSupplyStatus | UNKNOWN |
Member Typedef Documentation
🔗PowerSupplyStatus
Constructor & Destructor Documentation
🔗BatteryState() [1/2]
BatteryState | ( | ) |
🔗~BatteryState()
|
virtual |
🔗BatteryState() [2/2]
BatteryState | ( | const BatteryState & | from | ) |
Member Function Documentation
🔗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() [1/2]
|
final |
🔗CopyFrom() [2/2]
void CopyFrom | ( | const BatteryState & | from | ) |
🔗current()
|
inline |
🔗default_instance()
|
static |
🔗descriptor()
|
static |
🔗GetCachedSize()
|
inlinefinal |
🔗GetMetadata()
|
final |
🔗has_header()
|
inline |
References BatteryState::internal_default_instance().
🔗header()
|
inline |
References gz::msgs::_Header_default_instance_.
Referenced by BatteryState::set_allocated_header().
🔗InitAsDefaultInstance()
|
static |
🔗internal_default_instance()
|
inlinestatic |
References gz::msgs::_BatteryState_default_instance_.
Referenced by BatteryState::has_header().
🔗InternalSerializeWithCachedSizesToArray()
|
final |
🔗IsInitialized()
|
final |
🔗MergeFrom() [1/2]
|
final |
🔗MergeFrom() [2/2]
void MergeFrom | ( | const BatteryState & | from | ) |
🔗MergePartialFromCodedStream()
|
final |
🔗mutable_header()
|
inline |
🔗New() [1/2]
|
inlinefinal |
🔗New() [2/2]
|
inlinefinal |
🔗operator=()
|
inline |
🔗percentage()
|
inline |
🔗power_supply_status()
|
inline |
🔗PowerSupplyStatus_descriptor()
|
inlinestatic |
🔗PowerSupplyStatus_IsValid()
|
inlinestatic |
🔗PowerSupplyStatus_Name()
|
inlinestatic |
References gz::msgs::BatteryState_PowerSupplyStatus_Name().
🔗PowerSupplyStatus_Parse()
|
inlinestatic |
References gz::msgs::BatteryState_PowerSupplyStatus_Parse().
🔗release_header()
|
inline |
🔗SerializeWithCachedSizes()
|
final |
🔗set_allocated_header()
|
inline |
References BatteryState::header().
🔗set_capacity()
|
inline |
🔗set_charge()
|
inline |
🔗set_current()
|
inline |
🔗set_percentage()
|
inline |
🔗set_power_supply_status()
|
inline |
🔗set_voltage()
|
inline |
🔗Swap()
void Swap | ( | BatteryState * | other | ) |
🔗voltage()
|
inline |
Member Data Documentation
🔗CHARGING
|
static |
Initial value:
🔗DISCHARGING
|
static |
Initial value:
🔗FULL
|
static |
Initial value:
🔗kCapacityFieldNumber
|
static |
🔗kChargeFieldNumber
|
static |
🔗kCurrentFieldNumber
|
static |
🔗kHeaderFieldNumber
|
static |
🔗kIndexInFileMessages
|
staticconstexpr |
Initial value:
=
0
🔗kPercentageFieldNumber
|
static |
🔗kPowerSupplyStatusFieldNumber
|
static |
🔗kVoltageFieldNumber
|
static |
🔗NOT_CHARGING
|
static |
Initial value:
🔗PowerSupplyStatus_ARRAYSIZE
|
static |
Initial value:
🔗PowerSupplyStatus_MAX
|
static |
Initial value:
🔗PowerSupplyStatus_MIN
|
static |
Initial value:
🔗UNKNOWN
|
static |
Initial value:
The documentation for this class was generated from the following file: