List of all members |
Public Types |
Public Member Functions |
Static Public Member Functions |
Static Public Attributes |
Friends
BatteryState Class Reference
#include <battery_state.pb.h>
Public Types | |
typedef BatteryState_PowerSupplyStatus | PowerSupplyStatus |
Public Member Functions | |
BatteryState () | |
BatteryState (const BatteryState &from) | |
virtual | ~BatteryState () |
int | ByteSize () const |
double | capacity () const |
double | charge () const |
void | Clear () |
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) |
void | CopyFrom (const BatteryState &from) |
double | current () const |
int | GetCachedSize () const |
::google::protobuf::Metadata | GetMetadata () const |
bool | has_header () const |
const ::ignition::msgs::Header & | header () const |
::google::protobuf::uint8 * | InternalSerializeWithCachedSizesToArray (bool deterministic, ::google::protobuf::uint8 *output) const |
bool | IsInitialized () const |
void | MergeFrom (const ::google::protobuf::Message &from) |
void | MergeFrom (const BatteryState &from) |
bool | MergePartialFromCodedStream (::google::protobuf::io::CodedInputStream *input) |
::ignition::msgs::Header * | mutable_header () |
BatteryState * | New () const |
BatteryState * | New (::google::protobuf::Arena *arena) const |
BatteryState & | operator= (const BatteryState &from) |
double | percentage () const |
::ignition::msgs::BatteryState_PowerSupplyStatus | power_supply_status () const |
::ignition::msgs::Header * | release_header () |
void | SerializeWithCachedSizes (::google::protobuf::io::CodedOutputStream *output) const |
::google::protobuf::uint8 * | SerializeWithCachedSizesToArray (::google::protobuf::uint8 *output) const |
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) |
double | voltage () const |
Static Public Member Functions | |
static const BatteryState & | default_instance () |
static const ::google::protobuf::Descriptor * | descriptor () |
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 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 |
Friends | |
void IGNITION_MSGS_VISIBLE | protobuf_AddDesc_ignition_2fmsgs_2fbattery_5fstate_2eproto () |
void | protobuf_AssignDesc_ignition_2fmsgs_2fbattery_5fstate_2eproto () |
void | protobuf_ShutdownFile_ignition_2fmsgs_2fbattery_5fstate_2eproto () |
Member Typedef Documentation
◆ PowerSupplyStatus
Constructor & Destructor Documentation
◆ BatteryState() [1/2]
BatteryState | ( | ) |
◆ ~BatteryState()
|
virtual |
◆ BatteryState() [2/2]
BatteryState | ( | const BatteryState & | from | ) |
Member Function Documentation
◆ ByteSize()
int ByteSize | ( | ) | const |
◆ capacity()
|
inline |
◆ charge()
|
inline |
◆ Clear()
void Clear | ( | ) |
◆ clear_capacity()
|
inline |
◆ clear_charge()
|
inline |
◆ clear_current()
|
inline |
◆ clear_header()
|
inline |
◆ clear_percentage()
|
inline |
◆ clear_power_supply_status()
|
inline |
◆ clear_voltage()
|
inline |
◆ CopyFrom() [1/2]
void CopyFrom | ( | const ::google::protobuf::Message & | from | ) |
◆ CopyFrom() [2/2]
void CopyFrom | ( | const BatteryState & | from | ) |
◆ current()
|
inline |
◆ default_instance()
|
static |
◆ descriptor()
|
static |
◆ GetCachedSize()
|
inline |
◆ GetMetadata()
::google::protobuf::Metadata GetMetadata | ( | ) | const |
◆ has_header()
|
inline |
◆ header()
|
inline |
◆ InternalSerializeWithCachedSizesToArray()
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray | ( | bool | deterministic, |
::google::protobuf::uint8 * | output | ||
) | const |
◆ IsInitialized()
bool IsInitialized | ( | ) | const |
◆ MergeFrom() [1/2]
void MergeFrom | ( | const ::google::protobuf::Message & | from | ) |
◆ MergeFrom() [2/2]
void MergeFrom | ( | const BatteryState & | from | ) |
◆ MergePartialFromCodedStream()
bool MergePartialFromCodedStream | ( | ::google::protobuf::io::CodedInputStream * | input | ) |
◆ mutable_header()
|
inline |
◆ New() [1/2]
|
inline |
References BatteryState::New().
Referenced by BatteryState::New().
◆ New() [2/2]
BatteryState* New | ( | ::google::protobuf::Arena * | arena | ) | const |
◆ operator=()
|
inline |
◆ percentage()
|
inline |
◆ power_supply_status()
|
inline |
◆ PowerSupplyStatus_descriptor()
|
inlinestatic |
◆ PowerSupplyStatus_IsValid()
|
inlinestatic |
◆ PowerSupplyStatus_Name()
|
inlinestatic |
◆ PowerSupplyStatus_Parse()
|
inlinestatic |
◆ release_header()
|
inline |
◆ SerializeWithCachedSizes()
void SerializeWithCachedSizes | ( | ::google::protobuf::io::CodedOutputStream * | output | ) | const |
◆ SerializeWithCachedSizesToArray()
|
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()
void Swap | ( | BatteryState * | other | ) |
◆ voltage()
|
inline |
Friends And Related Function Documentation
◆ protobuf_AddDesc_ignition_2fmsgs_2fbattery_5fstate_2eproto
|
friend |
◆ protobuf_AssignDesc_ignition_2fmsgs_2fbattery_5fstate_2eproto
|
friend |
◆ protobuf_ShutdownFile_ignition_2fmsgs_2fbattery_5fstate_2eproto
|
friend |
Member Data Documentation
◆ CHARGING
|
static |
Initial value:
◆ DISCHARGING
|
static |
Initial value:
◆ FULL
|
static |
Initial value:
◆ kCapacityFieldNumber
|
static |
◆ kChargeFieldNumber
|
static |
◆ kCurrentFieldNumber
|
static |
◆ kHeaderFieldNumber
|
static |
◆ 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: