![]() |
GemaCoreLib
The GeMA Core library
|
A basic class used to store meta-data information about result attributes DEFINITIONS. More...
#include <gmAttributeResultsDataSrcInfo.h>


Public Member Functions | |
| GmAttributeResultsDataSrcInfo (QString alias, QString description, Unit unit, int nlin, int ncol, QString format, int stats) | |
| void | updateData (Unit unit, int nlin, int ncol, QString format) |
| void | updateAlias (QString alias) |
| Updates the attribute alias (name) | |
| virtual int | monitorTrackId () const |
| Returns an invalid trackId since this object is not a real dataSrc, but the metadata for a data src. | |
| virtual void | setMonitorTrackId (int id) |
| No update since this object will always have an id equal to -1. | |
| virtual GmResultsDataSrcType | type () const |
| Returns the data src type. | |
| virtual QString | alias () const |
| Returns the data src "exported" id. | |
| virtual QString | description () const |
| Returns the data src description, when available. | |
| virtual Unit | unit () const |
| Returns the unit in which the data is expressed. | |
| virtual int | size () const |
| Returns the dimension of the data src values, taking into account any applied transformations or dim filters. Equal to nlin() * ncol(). A size of zero means that this data src returns string values (valid only for attribute type). A value of -1 means that this object has not been fully initialized yet. | |
| virtual int | nlin () const |
| The number of lines in the returned result, taking into account any applied transformations or dim filters. A size of zero means that this data src returns string values (valid only for attribute type). A value of -1 means that this object has not been fully initialized yet. | |
| virtual int | ncol () const |
| The number of columns in the returned result, taking into account any applied transformations or dim filters. A size of zero means that this data src returns string values (valid only for attribute type). A value of -1 means that this object has not been fully initialized yet. | |
| virtual QString | formatStr () const |
| How should dataSrc values be formatted? | |
| virtual int | attributeStats () const |
| Does this data src saves attribute statistics? A value > 0 defines the kind of stats. | |
Public Member Functions inherited from GmResultsDataSrcInfo | |
| virtual | ~GmResultsDataSrcInfo () |
| Virtual destructor. | |
| QString | formatedNumericDataSrcValue (const double *v, QString err) const |
| Returns the numeric result value in v formated as a string, according to the current format. If v is NULL, will either return "NA" or "ERROR" if err is not empty. | |
Private Attributes | |
| QString | _alias |
| The data src alias (exported name) | |
| QString | _description |
| The data description. | |
| Unit | _unit |
| The data unit. | |
| int | _nlin |
| The number of lines in the data (0 for string attributes) | |
| int | _ncol |
| The number of lines in the data (0 for string attributes) | |
| QString | _formatStr |
| The printf style (without the %) format specifier. | |
| int | _stats |
| Does this attribute stores statistics? A value > 0 defines the kind of stats. | |
Additional Inherited Members | |
Static Public Member Functions inherited from GmResultsDataSrcInfo | |
| static QString | formatedNumericDataSrcValue (QString fmt, const double *v, int size) |
| Returns the numeric result value in v string formated. | |
A basic class used to store meta-data information about result attributes DEFINITIONS.
|
inlinevirtual |
Returns the data src "exported" id.
Implements GmResultsDataSrcInfo.
|
inlinevirtual |
Returns the data src description, when available.
Implements GmResultsDataSrcInfo.
|
inlinevirtual |
How should dataSrc values be formatted?
Implements GmResultsDataSrcInfo.
|
inlinevirtual |
Returns an invalid trackId since this object is not a real dataSrc, but the metadata for a data src.
Implements GmResultsDataSrcInfo.
|
inlinevirtual |
The number of columns in the returned result, taking into account any applied transformations or dim filters. A size of zero means that this data src returns string values (valid only for attribute type). A value of -1 means that this object has not been fully initialized yet.
Implements GmResultsDataSrcInfo.
|
inlinevirtual |
The number of lines in the returned result, taking into account any applied transformations or dim filters. A size of zero means that this data src returns string values (valid only for attribute type). A value of -1 means that this object has not been fully initialized yet.
Implements GmResultsDataSrcInfo.
|
inlinevirtual |
No update since this object will always have an id equal to -1.
Implements GmResultsDataSrcInfo.
|
inlinevirtual |
Returns the dimension of the data src values, taking into account any applied transformations or dim filters. Equal to nlin() * ncol(). A size of zero means that this data src returns string values (valid only for attribute type). A value of -1 means that this object has not been fully initialized yet.
Implements GmResultsDataSrcInfo.
|
inlinevirtual |
Returns the data src type.
Implements GmResultsDataSrcInfo.
|
inlinevirtual |
Returns the unit in which the data is expressed.
Implements GmResultsDataSrcInfo.