Ignition Msgs

API Reference

8.0.0~pre1

#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::Headerheader () 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::Headermutable_header ()
 
BatteryStateNew () const
 
BatteryStateNew (::google::protobuf::Arena *arena) const
 
BatteryStateoperator= (const BatteryState &from)
 
double percentage () const
 
::ignition::msgs::BatteryState_PowerSupplyStatus power_supply_status () const
 
::ignition::msgs::Headerrelease_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 BatteryStatedefault_instance ()
 
static const ::google::protobuf::Descriptor * descriptor ()
 
static const ::google::protobuf::EnumDescriptor * PowerSupplyStatus_descriptor ()
 
static bool PowerSupplyStatus_IsValid (int value)
 
static const ::std::stringPowerSupplyStatus_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()

virtual ~BatteryState ( )
virtual

◆ BatteryState() [2/2]

BatteryState ( const BatteryState from)

Member Function Documentation

◆ ByteSize()

int ByteSize ( ) const

◆ capacity()

double capacity ( ) const
inline

◆ charge()

double charge ( ) const
inline

◆ Clear()

void Clear ( )

◆ clear_capacity()

void clear_capacity ( )
inline

◆ clear_charge()

void clear_charge ( )
inline

◆ clear_current()

void clear_current ( )
inline

◆ clear_header()

void clear_header ( )
inline

◆ clear_percentage()

void clear_percentage ( )
inline

◆ clear_power_supply_status()

void clear_power_supply_status ( )
inline

◆ clear_voltage()

void clear_voltage ( )
inline

◆ CopyFrom() [1/2]

void CopyFrom ( const ::google::protobuf::Message &  from)

◆ CopyFrom() [2/2]

void CopyFrom ( const BatteryState from)

◆ current()

double current ( ) const
inline

◆ default_instance()

static const BatteryState& default_instance ( )
static

◆ descriptor()

static const ::google::protobuf::Descriptor* descriptor ( )
static

◆ GetCachedSize()

int GetCachedSize ( ) const
inline

◆ GetMetadata()

::google::protobuf::Metadata GetMetadata ( ) const

◆ has_header()

bool has_header ( ) const
inline

◆ header()

const ::ignition::msgs::Header & header ( ) const
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()

ignition::msgs::Header * mutable_header ( )
inline

◆ New() [1/2]

BatteryState* New ( ) const
inline

References BatteryState::New().

Referenced by BatteryState::New().

◆ New() [2/2]

BatteryState* New ( ::google::protobuf::Arena *  arena) const

◆ operator=()

BatteryState& operator= ( const BatteryState from)
inline

◆ percentage()

double percentage ( ) const
inline

◆ power_supply_status()

ignition::msgs::BatteryState_PowerSupplyStatus power_supply_status ( ) const
inline

◆ PowerSupplyStatus_descriptor()

static const ::google::protobuf::EnumDescriptor* PowerSupplyStatus_descriptor ( )
inlinestatic

◆ PowerSupplyStatus_IsValid()

static bool PowerSupplyStatus_IsValid ( int  value)
inlinestatic

◆ PowerSupplyStatus_Name()

static const ::std::string& PowerSupplyStatus_Name ( PowerSupplyStatus  value)
inlinestatic

◆ PowerSupplyStatus_Parse()

static bool PowerSupplyStatus_Parse ( const ::std::string name,
PowerSupplyStatus value 
)
inlinestatic

◆ release_header()

ignition::msgs::Header * release_header ( )
inline

◆ SerializeWithCachedSizes()

void SerializeWithCachedSizes ( ::google::protobuf::io::CodedOutputStream *  output) const

◆ SerializeWithCachedSizesToArray()

::google::protobuf::uint8* SerializeWithCachedSizesToArray ( ::google::protobuf::uint8 *  output) const
inline

◆ set_allocated_header()

void set_allocated_header ( ::ignition::msgs::Header header)
inline

◆ set_capacity()

void set_capacity ( double  value)
inline

◆ set_charge()

void set_charge ( double  value)
inline

◆ set_current()

void set_current ( double  value)
inline

◆ set_percentage()

void set_percentage ( double  value)
inline

◆ set_power_supply_status()

void set_power_supply_status ( ::ignition::msgs::BatteryState_PowerSupplyStatus  value)
inline

◆ set_voltage()

void set_voltage ( double  value)
inline

◆ Swap()

void Swap ( BatteryState other)

◆ voltage()

double voltage ( ) const
inline

Friends And Related Function Documentation

◆ protobuf_AddDesc_ignition_2fmsgs_2fbattery_5fstate_2eproto

void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fbattery_5fstate_2eproto ( )
friend

◆ protobuf_AssignDesc_ignition_2fmsgs_2fbattery_5fstate_2eproto

void protobuf_AssignDesc_ignition_2fmsgs_2fbattery_5fstate_2eproto ( )
friend

◆ protobuf_ShutdownFile_ignition_2fmsgs_2fbattery_5fstate_2eproto

void protobuf_ShutdownFile_ignition_2fmsgs_2fbattery_5fstate_2eproto ( )
friend

Member Data Documentation

◆ CHARGING

const PowerSupplyStatus CHARGING
static

◆ DISCHARGING

const PowerSupplyStatus DISCHARGING
static

◆ FULL

const PowerSupplyStatus FULL
static

◆ kCapacityFieldNumber

const int kCapacityFieldNumber = 5
static

◆ kChargeFieldNumber

const int kChargeFieldNumber = 4
static

◆ kCurrentFieldNumber

const int kCurrentFieldNumber = 3
static

◆ kHeaderFieldNumber

const int kHeaderFieldNumber = 1
static

◆ kPercentageFieldNumber

const int kPercentageFieldNumber = 6
static

◆ kPowerSupplyStatusFieldNumber

const int kPowerSupplyStatusFieldNumber = 7
static

◆ kVoltageFieldNumber

const int kVoltageFieldNumber = 2
static

◆ NOT_CHARGING

const PowerSupplyStatus NOT_CHARGING
static

◆ PowerSupplyStatus_ARRAYSIZE

const int PowerSupplyStatus_ARRAYSIZE
static

◆ PowerSupplyStatus_MAX

const PowerSupplyStatus PowerSupplyStatus_MAX
static

◆ PowerSupplyStatus_MIN

const PowerSupplyStatus PowerSupplyStatus_MIN
static

◆ UNKNOWN

const PowerSupplyStatus UNKNOWN
static

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