![]() |
stromx
0.8.0
|
Description of a parameter. More...
#include <Parameter.h>
Public Types | |
| enum | AccessMode { NO_ACCESS, NONE_READ, NONE_WRITE, INITIALIZED_READ, INITIALIZED_WRITE, ACTIVATED_WRITE } |
Public Types inherited from stromx::runtime::Description | |
| enum | Type { NO_TYPE, PARAMETER, INPUT, OUTPUT } |
| enum | UpdateBehavior { PERSISTENT, PUSH, PULL, INTERNAL } |
Public Member Functions | |
| Parameter (const unsigned int id, const VariantHandle &variant, ParameterGroup *const group=0) | |
| AccessMode | accessMode () const |
| void | setAccessMode (const AccessMode mode) |
| UpdateBehavior | updateBehavior () const |
| void | setUpdateBehavior (const UpdateBehavior behavior) |
| virtual const Parameter * | group () const |
| virtual const std::vector< const Parameter * > & | members () const |
| virtual Type | originalType () const |
| virtual Type | currentType () const |
Public Member Functions inherited from stromx::runtime::Description | |
| Description (const unsigned int id, const VariantHandle &variant) | |
| const std::string & | title () const |
| unsigned int | id () const |
| const VariantHandle & | variant () const |
| void | setTitle (const std::string &title) |
| const VariantHandle & | visualization () const |
| void | setVisualization (const VariantHandle &visualization) |
| virtual const Data & | max () const |
| virtual const Data & | min () const |
| virtual const Data & | step () const |
| virtual const std::vector< EnumDescription > & | descriptions () const |
| virtual unsigned int | rows () const |
| virtual unsigned int | cols () const |
Description of a parameter.
In addition to the information stored in the parent class parameter descriptions store information about the access mode of a given parameter. Moreover, parameter groups are supported.
The possible access modes of a parameter.
| Status | None | Intialized | Active | Executing |
| NO_ACCESS | - | - | - | - |
| NONE_READ | R | R | R | R |
| NONE_WRITE | R/W | R | R | R |
| INITIALIZED_READ | - | R | R | R |
| INITIALIZED_WRITE | - | R/W | R | R |
| ACTIVATED_WRITE | - | R/W | R/W | R/W |
| Enumerator | |
|---|---|
| NO_ACCESS | The parameter can never be accessed. |
| NONE_READ | The parameter can be read during each status of the operator. |
| NONE_WRITE | The parameter can be read during each status of the operator. It can be written during the status Operator::NONE. |
| INITIALIZED_READ | The parameter can be read during the status Operator::INITIALIZED, Operator::ACTIVE and Operator::EXECUTING. |
| INITIALIZED_WRITE | This parameter can be read during the status Operator::INITIALIZED, Operator::ACTIVE and Operator::EXECUTING. It can be written during the status Operator::INITIALIZED. |
| ACTIVATED_WRITE | This parameter can be read during the status Operator::INITIALIZED, Operator::ACTIVE and Operator::EXECUTING. It can be written during the status Operator::INITIALIZED, Operator::ACTIVE and Operator::EXECUTING. |
| stromx::runtime::Parameter::Parameter | ( | const unsigned int | id, |
| const VariantHandle & | variant, | ||
| ParameterGroup *const | group = 0 |
||
| ) |
Constructs a parameter description.
|
inline |
Returns the access mode.
|
inlinevirtual |
Input and output connectors can be configured to act as operator parameters. Such a connector is listed as an operator parameter. The current type always refers to way the connector is currently configured, i.e. possibly as a parameter.
Reimplemented from stromx::runtime::Description.
|
inlinevirtual |
Returns the group the parameter belongs to. Returns 0 if the parameter does not belong to any group.
|
inlinevirtual |
Returns the members of this parameter group. If the parameter is not a parameter group or it has no members the returned list is empty.
Reimplemented in stromx::runtime::ParameterGroup.
|
inlinevirtual |
Input and output connectors can be configured to act as operator parameters. Such a connector is listed as an operator parameter. Its original type however remains that of a connector and signals the client that the parameter can be configured back to a connector if necessary.
Reimplemented from stromx::runtime::Description.
|
inline |
Sets the access mode.
|
inline |
Sets the update behavior.
|
inline |
Returns the update behavior. The update behavior describes when the value of an operator might be updated parameter by either an action from the client (i.e. Operator::setParameter()) or by the operator itself.
1.8.12