UNIVERS
15.3
UNIVERS base processing software API
|
#include <hds_batch_module_enum_parameter.hpp>
Public Member Functions | |
BatchModuleEnumParameter () | |
BatchModuleEnumParameter (const QVariant &value, const QString &comment, const QVariantList &items_list) | |
virtual BatchModuleParameter * | clone () const |
virtual | ~BatchModuleEnumParameter () |
virtual const QVariant & | value () const |
virtual void | setValue (const QVariant &value) |
virtual BatchModuleParameter::Type | type () const |
const QVariantList & | itemsList () const |
virtual void | info () const |
Public Member Functions inherited from hds::BatchModuleParameter | |
BatchModuleParameter () | |
BatchModuleParameter (const QVariant &value, const QString &comment) | |
virtual | ~BatchModuleParameter () |
const QString & | comment () const |
void | setComment (const QString &comment) |
Protected Attributes | |
QVariantList | m_items_list |
Protected Attributes inherited from hds::BatchModuleParameter | |
QVariant | m_value |
QString | m_comment |
Additional Inherited Members | |
Public Types inherited from hds::BatchModuleParameter | |
enum | Type { Undefined = 0, Boolean, Integer, Double, String, StringList, Enum, File, LDB_Seismic } |
Static Public Member Functions inherited from hds::BatchModuleParameter | |
static QString | nameFromType (Type type) |
static Type | typeFromName (const QString &name) |
Enum parameter of the module.
hds::BatchModuleEnumParameter::BatchModuleEnumParameter | ( | ) |
Empty enum parameter object.
hds::BatchModuleEnumParameter::BatchModuleEnumParameter | ( | const QVariant & | value, |
const QString & | comment, | ||
const QVariantList & | items_list | ||
) |
Constructor with value, comment and list of items provided.
Value to be of invalid type if items list is empty or value as current id is out of range.
|
virtual |
Destructor.
|
virtual |
Make copy of the object.
Reimplemented from hds::BatchModuleParameter.
|
virtual |
Print parameter internal data.
Reimplemented from hds::BatchModuleParameter.
const QVariantList& hds::BatchModuleEnumParameter::itemsList | ( | ) | const |
Get list of items.
|
virtual |
Set current selected item as QVariant type.
Value of selected item will be of invalid type if items list is empty or incorrect value provided (not integer type or out of range).
Reimplemented from hds::BatchModuleParameter.
|
virtual |
Get parameter type.
Reimplemented from hds::BatchModuleParameter.
|
virtual |
Get current selected item as QVariant of integer type.
Return invalid variant type if object not initialized properly.
Reimplemented from hds::BatchModuleParameter.
|
protected |
< List of enum items.