GemaCoreLib
The GeMA Core library
Loading...
Searching...
No Matches
GmRunProgress Class Reference

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>

Inheritance diagram for GmRunProgress:
Collaboration diagram for GmRunProgress:

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.
 

Detailed Description

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.


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