Accelerated Computation Engine
|
#include <eabstractanalytic_input.h>
Public Types | |
enum | Type { Boolean, Integer, Double, String, Selection, FileIn, FileOut, DataIn, DataOut } |
enum | Role { CommandLineName, Title, WhatsThis, Default, Minimum, Maximum, Decimals, SelectionValues, FileFilters, DataType } |
Public Member Functions | |
virtual int | size () const =0 |
virtual EAbstractAnalytic::Input::Type | type (int index) const =0 |
virtual QVariant | data (int index, Role role) const =0 |
virtual void | set (int index, const QVariant &value)=0 |
virtual void | set (int index, QFile *file)=0 |
virtual void | set (int index, EAbstractData *data)=0 |
Input (EAbstractAnalytic *parent) | |
This represents the input class that handles taking in all user input for its parent analytic. An implementation of this class must define all inputs for its analytic type and then handle setting all values for that input to its parent analytic. For file and data object inputs/outputs the ACE system handles closing them on its own so an implementation of this class does not need to worry about that; for those types only a pointer is passed and not actual ownership of the underlying objects.
Defines all possible data roles an argument can possess.
Defines all possible argument types that can be used as input for an analytic.
|
explicit |
Constructs a new input object with the given analytic as its parent.
parent | The parent analytic object for this new input object. |
|
pure virtual |
This interface returns data for a given role on an argument with the given index.
index | Index of argument whose data with the given role is returned. |
role | Role for the data that is returned. |
|
pure virtual |
This interface sets an argument with the given index to the given value.
index | Index of argument whose value is set to the given value. |
value | Variant value which is set to the argument with the given index. |
|
pure virtual |
This interface passes a pointer to the qt file device for a file input/output argument with the given index.
index | Index of argument whose qt file device pointer is given. |
file | Pointer to qt file device for the argument with the given index. |
|
pure virtual |
This interface passes a pointer to the abstract data object for a data input/output argument with the given index.
index | Index of argument whose abstract data object pointer is given. |
data | Pointer to abstract data object for the argument with the given index. |
|
pure virtual |
This interface returns the total number of arguments this analytic type contains.
|
pure virtual |
This interface returns the argument type for a given index.
index | Index of argument whose type is returned. |