Variable Represents a variable in AuboScope.
More...
#include <variable.h>
|
| | Variable (Variable &f) |
| | Variable (Variable &&f) |
| virtual | ~Variable () |
| Type | getType () |
| | Returns the type of variable.
|
| std::string | getDisplayName () |
| | Note: The variable can be renamed at any time.
|
| bool | equals (VariablePtr object) |
| | Checks if the object references the same internal Variable.
|
| size_t | hashCode () |
| | Returns the hash code for this object.
|
| std::string | toString () |
| | Returns a string representation of the variable.
|
Variable Represents a variable in AuboScope.
Variables can be used to store and pass data in programs.
Definition at line 24 of file variable.h.
◆ Type
The variable type used to determine which type of variable this instance is.
| Enumerator |
|---|
| GLOBAL | GLOBAL means that the variable is available everywhere in a program.
This variable instance can be cast to GlobalVariable.
|
| VALUE_PERSISTED | VALUE_PERSISTED means that the variable is stored with the installation. These variables are defined in the installation and will retain their values even when a robot is turned off and on.
This variable instance can be cast to ValuePersistedVariable.
|
| FEATURE | FEATURE means that a Feature is marked as a variable. The variable is defined in the installation and will exist even when a robot is turned off and on.
This variable instance can be cast to FeatureVariable.
|
Definition at line 35 of file variable.h.
◆ Variable() [1/3]
| arcs::aubo_scope::Variable::Variable |
( |
Variable & | f | ) |
|
◆ Variable() [2/3]
| arcs::aubo_scope::Variable::Variable |
( |
Variable && | f | ) |
|
◆ ~Variable()
| virtual arcs::aubo_scope::Variable::~Variable |
( |
| ) |
|
|
virtual |
◆ Variable() [3/3]
| arcs::aubo_scope::Variable::Variable |
( |
| ) |
|
|
protected |
◆ equals()
| bool arcs::aubo_scope::Variable::equals |
( |
VariablePtr | object | ) |
|
Checks if the object references the same internal Variable.
- Returns
- true if object references the same internal Variable.
◆ getDisplayName()
| std::string arcs::aubo_scope::Variable::getDisplayName |
( |
| ) |
|
Note: The variable can be renamed at any time.
- Returns
- the display name of the variable.
◆ getType()
| Type arcs::aubo_scope::Variable::getType |
( |
| ) |
|
Returns the type of variable.
- Returns
- the type of variable.
◆ hashCode()
| size_t arcs::aubo_scope::Variable::hashCode |
( |
| ) |
|
Returns the hash code for this object.
- Returns
- hashCode for this object.
◆ toString()
| std::string arcs::aubo_scope::Variable::toString |
( |
| ) |
|
Returns a string representation of the variable.
- Returns
- a string representation of the variable.
◆ DataSwitch
◆ d_
| void* arcs::aubo_scope::Variable::d_ { nullptr } |
|
private |
The documentation for this class was generated from the following file: