FemProcess
The GeMA Fem Process Plugin
Public Member Functions | Public Attributes | List of all members
GmpFemPhysicsCommon::Value Struct Reference

A structure used to specify value accessors needed by the physics. More...

#include <gmpFemPhysicsCommon.h>

Inheritance diagram for GmpFemPhysicsCommon::Value:
Inheritance graph
[legend]
Collaboration diagram for GmpFemPhysicsCommon::Value:
Collaboration graph
[legend]

Public Member Functions

 Value ()
 Default constructor needed to enable storing a Value in a QVariant. Builds an invalid Value.
 
 Value (int id, QString name, QString description, QString unit, const ValueType &type, const RequiredIf &required=RequiredIf(true))
 Value constructor given a single possible type.
 
 Value (int id, QString name, QString description, QString unit, const QList< ValueType > &types, const RequiredIf &required=RequiredIf(true))
 Value constructor given multiple possible types.
 
 operator QVariant () const
 Operator to convert a Value to a QVariant.
 

Public Attributes

int _id
 Value id storing its intended position in the values list.
 
QString _name
 Value name.
 
QString _description
 Value description (for error messages)
 
QString _unit
 Value unit.
 
QList< ValueType_types
 Value types (if more than one, types will be tried on the given order). Empty for history values.
 
RequiredIf _required
 Is the value required?
 
int _historyRefId
 The reference Value describing the base attribute that this accessor points to.
 
int _historyState
 The desired history state. 0 means current state, 1 = previous state and so on.
 
bool _historyLocked
 Should the accessor be locked to the state (true) or to the data (false).
 

Detailed Description

A structure used to specify value accessors needed by the physics.


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