PCL
|
A formal description of an enumerated process parameter. More...
#include <MetaParameter.h>
Public Member Functions | |
MetaEnumeration (MetaProcess *P) | |
MetaEnumeration (MetaTable *T) | |
~MetaEnumeration () noexcept(false) override | |
virtual size_type | DefaultValueIndex () const |
virtual IsoString | ElementAliases () const |
virtual IsoString | ElementId (size_type idx) const =0 |
virtual int | ElementValue (size_type idx) const =0 |
virtual IsoString | Id () const override=0 |
bool | IsEnumeration () const override |
virtual size_type | NumberOfElements () const =0 |
![]() | |
MetaParameter (MetaProcess *P) | |
MetaParameter (MetaTable *T) | |
~MetaParameter () noexcept(false) override | |
virtual IsoString | Aliases () const |
virtual String | Comment () const |
virtual String | Description () const |
virtual bool | IsBlock () const |
virtual bool | IsBoolean () const |
virtual bool | IsNumeric () const |
virtual bool | IsReadOnly () const |
virtual bool | IsRequired () const |
virtual bool | IsString () const |
virtual bool | IsTable () const |
virtual bool | IsVariableLength () const |
virtual bool | NeedsUnlocking () const |
virtual bool | NeedsValidation () const |
![]() | |
MetaObject (const MetaObject &)=delete | |
MetaObject (MetaObject &&x)=delete | |
MetaObject (MetaObject *parent) | |
virtual | ~MetaObject () noexcept(false) |
size_type | Length () const |
MetaObject & | operator= (const MetaObject &)=delete |
MetaObject & | operator= (MetaObject &&x)=delete |
const MetaObject * | operator[] (size_type i) const |
MetaObject * | Parent () |
const MetaObject * | Parent () const |
Additional Inherited Members | |
![]() | |
using | children_list = IndirectArray< MetaObject > |
MetaEnumeration represents an enumerated process parameter. An enumerated process parameter defines a finite set of unique-identifier/value associations.
Definition at line 1494 of file MetaParameter.h.
|
inline |
Constructs a metaparameter representing an enumerated parameter of the specified process class *P.
Definition at line 1502 of file MetaParameter.h.
|
inline |
Constructs a metaparameter representing an enumerated value in a column of a table process parameter represented by the metatable *T. The new metaparameter is appended to the list of existing columns in the metatable *T.
Definition at line 1513 of file MetaParameter.h.
|
inlineoverridenoexcept |
Destroys a MetaEnumeration object.
Definition at line 1521 of file MetaParameter.h.
|
inlinevirtual |
Returns the enumeration index corresponding to the default value for the enumerated process parameter that this metaparameter represents.
The returned value must be in the range 0 to n-1, where n is the number of enumeration elements defined in the enumerated process parameter.
Definition at line 1583 of file MetaParameter.h.
|
inlinevirtual |
Returns a list of alias identifiers for this enumerated parameter.
An enumerated process parameter can define one or more aliased elements. Aliased enumeration elements are useful to maintain compatibility with previous versions of a process.
The returned string is a comma-separated list of "alias_id=element_id" items. Formally:
aliased-elements-list: alias-specification[, aliased-elements-list] alias-specification: alias-element-id = element-id
When the PixInsight core application imports a process instance (e.g., from a process icon) it automatically replaces alias enumeration identifiers with actual (current) identifiers. This allows a developer to change the enumeration identifiers of a process parameters without breaking compatibility with existing process instances.
Definition at line 1614 of file MetaParameter.h.
Returns the unique enumeration identifier corresponding to the specified enumeration index idx, in the enumerated process parameter represented by this metaparameter.
Enumeration identifiers must be valid C identifiers, unique within the set of enumeration elements defined in the enumerated process parameter.
|
pure virtual |
Returns the enumeration value corresponding to the specified enumeration index idx, in the enumerated process parameter represented by this metaparameter.
|
overridepure virtual |
Returns the identifier of the process parameter that this metaparameter represents.
Each process parameter must have a valid, unique (within its parent process) C identifier.
Implements pcl::MetaParameter.
|
inlineoverridevirtual |
Returns true iff this metaparameter represents an enumerated process parameter. Enumerated process parameters are represented as subclasses of MetaEnumeration.
Reimplemented from pcl::MetaParameter.
Definition at line 1527 of file MetaParameter.h.
|
pure virtual |
Returns the number of enumeration elements defined in the enumerated process parameter represented by this metaparameter.
Each enumeration element is a unique-identifier/value association.
The returned value must be > 0.