#include <qarmmetric.h>
Inheritance diagram for QArmMetric:

Public Types | |
| enum | QMetricType { COUNTER, GAUGE, ID } |
Public Member Functions | |
| QArmMetric (const QString &_name, const QMetricType _type, const QArmAppDefinition *_app, const QString *_unit) | |
| ~QArmMetric () | |
| void | setValue (qint64 _value) |
| qint64 | getValue () const |
| const arm_id_t * | getMetricId () const |
| void | fill (armsdk_subbuffer_metric_values_t *_mv) const |
Protected Member Functions | |
| void | registerMetric (const short slot) |
Private Attributes | |
| arm_metric_binding_t | metric_binding |
| arm_metric_t | metric |
| QMetricType | m_Type |
| QString | m_Name |
| QString | m_Unit |
| const arm_id_t * | m_AppId |
Friends | |
| class | QArmMetricList |
Definition at line 64 of file qarmmetric.h.
|
|
Types of metrics. Definition at line 68 of file qarmmetric.h. |
|
||||||||||||||||||||
|
Constructor of metric object.
Definition at line 53 of file qarmmetric.cpp. References QArmDefinition::getId(), m_AppId, m_Name, m_Type, and m_Unit. |
|
|
Destructor. Definition at line 67 of file qarmmetric.cpp. |
|
|
Fill the current metric value into the provided sub-buffer.
Definition at line 78 of file qarmmetric.cpp. |
|
|
Definition at line 72 of file qarmmetric.cpp. References metric_binding. |
|
|
get the value of the metric. Definition at line 144 of file qarmmetric.cpp. |
|
|
Definition at line 161 of file qarmmetric.h. |
|
|
Definition at line 165 of file qarmmetric.h. |
|
|
Definition at line 169 of file qarmmetric.h. |
|
|
This method is called from QArmMetricList when a metric is appended to the list.
Definition at line 106 of file qarmmetric.cpp. References COUNTER, GAUGE, ID, m_AppId, m_Name, m_Type, m_Unit, metric, and metric_binding. Referenced by QArmMetricList::append(). |
|
|
set the value of the metric.
Definition at line 134 of file qarmmetric.cpp. |
|
|
Since there exists a strict binding between metric values and metric definitions using the slot mechanism the QArmMetricList class provides the slot number. Therefore it needs to execute the registerMetric() method. Definition at line 129 of file qarmmetric.h. |
|
|
The ID of the associated application. Definition at line 157 of file qarmmetric.h. Referenced by QArmMetric(), and registerMetric(). |
|
|
The name of metric Definition at line 149 of file qarmmetric.h. Referenced by QArmMetric(), and registerMetric(). |
|
|
The type of metric Definition at line 145 of file qarmmetric.h. Referenced by fill(), getValue(), isCounter(), isGauge(), isId(), QArmMetric(), registerMetric(), and setValue(). |
|
|
The unit of metric Definition at line 153 of file qarmmetric.h. Referenced by QArmMetric(), and registerMetric(). |
|
|
Definition at line 141 of file qarmmetric.h. Referenced by fill(), getValue(), registerMetric(), and setValue(). |
|
|
The structures needed within ARM to register and use metrics Definition at line 140 of file qarmmetric.h. Referenced by getMetricId(), and registerMetric(). |
1.4.2