AuboCaps  0.6.0
arcs::aubo_scope::PersistedVariable Class Reference

This interface represents variables stored with the installation. More...

#include <persisted_variable.h>

Inheritance diagram for arcs::aubo_scope::PersistedVariable:
Collaboration diagram for arcs::aubo_scope::PersistedVariable:

Public Member Functions

 PersistedVariable (PersistedVariable &f)
 
 PersistedVariable (PersistedVariable &&f)
 
virtual ~PersistedVariable ()
 
bool isResolvable ()
 A persisted variable can not be guaranteed to be present. More...
 
- Public Member Functions inherited from arcs::aubo_scope::Variable
 Variable (Variable &f)
 
 Variable (Variable &&f)
 
virtual ~Variable ()
 
Type getType ()
 
std::string getDisplayName ()
 Note: The variable can be renamed at any time. More...
 
bool equals (VariablePtr object)
 
size_t hashCode ()
 
std::string toString ()
 

Protected Member Functions

 PersistedVariable ()
 
- Protected Member Functions inherited from arcs::aubo_scope::Variable
 Variable ()
 

Private Attributes

void * d_ { nullptr }
 

Friends

class DataSwitch
 

Additional Inherited Members

- Public Types inherited from arcs::aubo_scope::Variable
enum  Type : int { GLOBAL, VALUE_PERSISTED, FEATURE }
 The variable type used to determine which type of variable this instance is. More...
 

Detailed Description

This interface represents variables stored with the installation.

These variables are defined in the installation and will exist even when a robot is turned off and on.

Definition at line 15 of file persisted_variable.h.

Constructor & Destructor Documentation

arcs::aubo_scope::PersistedVariable::PersistedVariable ( PersistedVariable f)
arcs::aubo_scope::PersistedVariable::PersistedVariable ( PersistedVariable &&  f)
virtual arcs::aubo_scope::PersistedVariable::~PersistedVariable ( )
virtual
arcs::aubo_scope::PersistedVariable::PersistedVariable ( )
protected

Member Function Documentation

bool arcs::aubo_scope::PersistedVariable::isResolvable ( )

A persisted variable can not be guaranteed to be present.

This method can be used to determine, if the variable is present.

The persisted variable will not be present, if the end user loads a different installation which does not contain the variable, or if the variable is deleted by the end user.

A program node storing a PersistedVariable in its Data Model will be undefined if the variable cannot be resolved (i.e. the variable is not present).

Returns
true, if this persisted variable is resolvable (i.e. present in the current installation).

Friends And Related Function Documentation

friend class DataSwitch
friend

Definition at line 43 of file persisted_variable.h.

Member Data Documentation

void* arcs::aubo_scope::PersistedVariable::d_ { nullptr }
private

Definition at line 44 of file persisted_variable.h.


The documentation for this class was generated from the following file: