ITS
|
#include <LifeTimeData.h>
Public Member Functions | |
LifeTimeData () | |
LifeTimeData LifeTimeData constructor. More... | |
LifeTimeData (char *data, int *offset) | |
LifeTimeData LifeTimeData decoder. More... | |
LifeTimeData (quint64 lifeTime) | |
LifeTimeData LifeTimeData copy constructor. More... | |
quint8 | multiplier () const |
multiplier Multiplier getter. More... | |
quint8 | base () const |
base Base getter. More... | |
void | setMultiplier (quint8 m) |
setMultiplier Multiplier setter. More... | |
void | setBase (quint8 b) |
setBase Base setter. More... | |
QByteArray | toBin () |
toBin LifeTimeData encoder. More... | |
quint8 | toInt () |
toInt Encode the LifeTimeData ijn a byte. More... | |
Private Attributes | |
quint8 | m_multiplier |
quint8 | m_base |
Definition at line 12 of file LifeTimeData.h.
LifeTimeData::LifeTimeData | ( | ) |
LifeTimeData LifeTimeData constructor.
Definition at line 5 of file LifeTimeData.cpp.
References LifeTime::base_1_s, m_base, and m_multiplier.
LifeTimeData::LifeTimeData | ( | char * | data, |
int * | offset | ||
) |
LifeTimeData LifeTimeData decoder.
data | Byte array of the LifeTimeData. |
offset | Offset of the byte array. |
Definition at line 11 of file LifeTimeData.cpp.
References m_base, and m_multiplier.
LifeTimeData::LifeTimeData | ( | quint64 | lifeTime | ) |
LifeTimeData LifeTimeData copy constructor.
lifeTime | C style of the LifeTimeData. |
Definition at line 19 of file LifeTimeData.cpp.
References LifeTime::base_100_s, LifeTime::base_10_s, LifeTime::base_1_s, m_base, and m_multiplier.
|
inline |
base Base getter.
Definition at line 41 of file LifeTimeData.h.
References m_base.
Referenced by gnDataRequestFromLifeTime().
|
inline |
multiplier Multiplier getter.
Definition at line 36 of file LifeTimeData.h.
References m_multiplier.
Referenced by gnDataRequestFromLifeTime().
|
inline |
setBase Base setter.
b | The new base. |
Definition at line 53 of file LifeTimeData.h.
References m_base.
|
inline |
setMultiplier Multiplier setter.
m | The new multiplier. |
Definition at line 48 of file LifeTimeData.h.
References m_multiplier.
QByteArray LifeTimeData::toBin | ( | ) |
toBin LifeTimeData encoder.
Definition at line 43 of file LifeTimeData.cpp.
References m_base, and m_multiplier.
|
inline |
toInt Encode the LifeTimeData ijn a byte.
Definition at line 64 of file LifeTimeData.h.
References m_base, and m_multiplier.
|
private |
Base.
Definition at line 68 of file LifeTimeData.h.
Referenced by base(), LifeTimeData(), setBase(), toBin(), and toInt().
|
private |
Multiplier.
Definition at line 67 of file LifeTimeData.h.
Referenced by LifeTimeData(), multiplier(), setMultiplier(), toBin(), and toInt().