![]() |
GemaCoreLib
The GeMA Core library
|
A RAII class used to simplify tracking an item with a progressStats object. When the object is created, an itemStart() call is made. When destroyed, the corresponding itemEnd() call is made. If an invalid item is passed as parameter (-1), does nothing. This can simplify the code for optional attributes that are collected only on detailed cases. More...
#include <gmRunProgressStats.h>


Public Member Functions | |
| GmRunProgress (GmRunProgressStats *ps, int itemId) | |
| QString | strAttributeValue (int attrId) const |
| const double * | numericAttributeValue (int attrId) const |
| void | setAttributeValue (int attrId, double val) |
| void | setAttributeValue (int attrId, double val1, double val2) |
| void | setAttributeValue (int attrId, double val1, double val2, double val3) |
| void | setAttributeValue (int attrId, const double *val) |
| void | setAttributeValue (int attrId, const GmVector &val) |
| void | setAttributeValue (int attrId, const GmMatrix &val) |
| void | setAttributeValue (int attrId, int val) |
| void | setAttributeValue (int attrId, unsigned val) |
| void | setAttributeValue (int attrId, QString val) |
| void | setAttributeValue (int attrId, const char *val) |
| void | incAttributeValue (int attrId) |
| void | decAttributeValue (int attrId) |
Protected Attributes | |
| GmRunProgressStats * | _ps |
| The progress stats object. NULL if tracking is not necessary. | |
| int | _itemId |
| The item id. -1 if tracking is not necessary. | |
A RAII class used to simplify tracking an item with a progressStats object. When the object is created, an itemStart() call is made. When destroyed, the corresponding itemEnd() call is made. If an invalid item is passed as parameter (-1), does nothing. This can simplify the code for optional attributes that are collected only on detailed cases.