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

A rule specifying the execution moments (time, iterations, etc) that a result rule should be executed. More...

#include <gmResultsTimeSet.h>

Collaboration diagram for GmResultsTimeSet:

Classes

struct  Interval
 
struct  IntervalUnit
 
struct  Moments
 
struct  TimeData
 The time data internal structure.Notice that QVectors are implicitely copied, so we don't have problem storing them by value. More...
 

Public Member Functions

QString id () const
 Returns the time set name.
 
QString description () const
 Returns the time set description.
 
QStringList attributes () const
 The set of associated attributes.
 
const TimeDataattributeData (QString attribute) const
 Return the user-given time data associated with the given attribute name, NULL if there is none.
 
void print (const GmLogCategory &logger, GmLogLevel level) const
 Prints the time set description to the appointed logger / level.
 

Static Public Member Functions

static GmResultsTimeSetloadFromTable (LuaTable &tab, const GmLogCategory &parseLogger)
 Parses a time set definition from the given Lua table, returning a new time set object.
 

Private Member Functions

 Q_DISABLE_COPY (GmResultsTimeSet)
 
 GmResultsTimeSet (QString id, QString description)
 Constructor.
 

Private Attributes

QString _id
 The time set id (name)
 
QString _description
 A description of the time set.
 
QMap< QString, TimeData_data
 The configured time data map, keyed by attribute name.
 

Detailed Description

A rule specifying the execution moments (time, iterations, etc) that a result rule should be executed.

Member Function Documentation

◆ loadFromTable()

GmResultsTimeSet * GmResultsTimeSet::loadFromTable ( LuaTable & tab,
const GmLogCategory & parseLogger )
static

Parses a time set definition from the given Lua table, returning a new time set object.

The parseLogger is used to emmit messages during set parsing.


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