Robox Library for Cpp: BCC/31 module 1.0.0
RLibCpp BCC/31 protocol implementation
|
The variable specification data. More...
#include <variable.h>
Classes | |
class | Data |
Class to handle variable data values. More... | |
Public Member Functions | |
Variable () | |
Default constructor. | |
virtual | ~Variable () |
Class destructor. | |
Message::VarTypes | type () const |
Get the variable type. | |
void | setType (Message::VarTypes value) |
Set the variable type. | |
uint32_t | index () const |
Get the variable type. | |
void | setIndex (uint32_t value) |
Set the variable type. | |
uint32_t | count () const |
Get the number of consecutive variables. | |
void | setCount (uint32_t value) |
Set the number of consecutive variables. | |
uint32_t | bit () const |
Get the variable bit index. | |
void | setBit (uint32_t value) |
Set the variable bit index. | |
uint32_t | size () const |
Get the variable size. | |
void | setSize (uint32_t value) |
Set the variable size. | |
uint32_t | axIndex () const |
Get the first axis index. | |
void | setAxIndex (uint32_t value) |
Set the first axis index. | |
uint32_t | axCount () const |
Get the number of consecutive axes. | |
void | setAxCount (uint32_t value) |
Set the number of consecutive axes. | |
String & | name () |
Get the name of the variable. | |
void | setName (const String &value) |
Set the name of the variable. | |
uint32_t | cacheId () const |
Get the id of the variable into cache. | |
void | setCacheId (uint32_t value) |
Set the id of the variable into cache. | |
Static Public Member Functions | |
static Variable | fromVR16 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varVR16 variable. | |
static Variable | fromNvR16 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varNvR16 variable. | |
static Variable | fromLogIW16 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varLogIW16 variable. | |
static Variable | fromLogOW16 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varLogOW16 variable. | |
static Variable | fromPhyIW16 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varPhyIW16 variable. | |
static Variable | fromPhyOW16 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varPhyOW16 variable. | |
static Variable | fromParamI16 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varParamI16 variable. | |
static Variable | fromVR32 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varVR32 variable. | |
static Variable | fromNvR32 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varNvR32 variable. | |
static Variable | fromLogIW32 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varLogIW32 variable. | |
static Variable | fromLogOW32 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varLogOW32 variable. | |
static Variable | fromPhyIW32 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varPhyIW32 variable. | |
static Variable | fromPhyOW32 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varPhyOW32 variable. | |
static Variable | fromParamI32 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varParamI32 variable. | |
static Variable | fromParamF (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varParamF variable. | |
static Variable | fromAM (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varAM variable. | |
static Variable | fromAlarmN (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varAlarmN variable. | |
static Variable | fromVR64 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varVR64 variable. | |
static Variable | fromNvR64 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varNvR64 variable. | |
static Variable | fromParamI64 (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varParamI64 variable. | |
static Variable | fromVRR (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varVRR variable. | |
static Variable | fromNvRR (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varNvRR variable. | |
static Variable | fromParamR (uint32_t index, uint32_t count=1) |
Factory method to create and initialize a Message::varParamR variable. | |
static Variable | fromVSR (uint32_t index, uint32_t size=128) |
Factory method to create and initialize a Message::varVSR variable. | |
static Variable | fromNvSR (uint32_t index, uint32_t size=128) |
Factory method to create and initialize a Message::varNvSR variable. | |
static Variable | fromAlarmS (uint32_t index, uint32_t size=64) |
Factory method to create and initialize a Message::varAlarmS variable. | |
static Variable | fromLogIC (uint32_t index) |
Factory method to create and initialize a Message::varLogIC variable. | |
static Variable | fromLogOC (uint32_t index) |
Factory method to create and initialize a Message::varLogOC variable. | |
static Variable | fromPhyIC (uint32_t index) |
Factory method to create and initialize a Message::varPhyIC variable. | |
static Variable | fromPhyOC (uint32_t index) |
Factory method to create and initialize a Message::varPhyOC variable. | |
static Variable | fromAxisI16 (uint32_t index, uint32_t axIndex, uint32_t axCount=1) |
Factory method to create and initialize a Message::varAxisI16 variable. | |
static Variable | fromAxisI32 (uint32_t index, uint32_t axIndex, uint32_t axCount=1) |
Factory method to create and initialize a Message::varAxisI32 variable. | |
static Variable | fromAxisF (uint32_t index, uint32_t axIndex, uint32_t axCount=1) |
Factory method to create and initialize a Message::varAxisF variable. | |
static Variable | fromAxisI64 (uint32_t index, uint32_t axIndex, uint32_t axCount=1) |
Factory method to create and initialize a Message::varAxisI64 variable. | |
static Variable | fromAxisR (uint32_t index, uint32_t axIndex, uint32_t axCount=1) |
Factory method to create and initialize a Message::varAxisR variable. | |
static Variable | fromBitVR16 (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitVR16 variable. | |
static Variable | fromBitNvR16 (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitNvR16 variable. | |
static Variable | fromBitLogIW16 (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitLogIW16 variable. | |
static Variable | fromBitLogOW16 (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitLogOW16 variable. | |
static Variable | fromBitPhyIW16 (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitPhyIW16 variable. | |
static Variable | fromBitPhyOW16 (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitPhyOW16 variable. | |
static Variable | fromBitVR32 (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitVR32 variable. | |
static Variable | fromBitNvR32 (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitNvR32 variable. | |
static Variable | fromBitLogIW32 (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitLogIW32 variable. | |
static Variable | fromBitLogOW32 (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitLogOW32 variable. | |
static Variable | fromBitPhyIW32 (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitPhyIW32 variable. | |
static Variable | fromBitPhyOW32 (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitPhyOW32 variable. | |
static Variable | fromBitAM (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitAM variable. | |
static Variable | fromBitVR64 (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitVR64 variable. | |
static Variable | fromBitNvR64 (uint32_t index, uint32_t bit) |
Factory method to create and initialize a Message::varBitNvR64 variable. | |
static Variable | fromName (const String &name) |
Factory method to create and initialize a Message::varNamed variable. | |
static Variable | fromCache (uint32_t cacheId) |
Factory method to create and initialize a Message::varNamed variable. | |
Static Protected Member Functions | |
static Variable & | doInitStdVariable (Variable &var, Message::VarTypes type, uint32_t index, uint32_t count) |
Helper method to create and inizialize a standard variable. | |
static Variable & | doInitStringVariable (Variable &var, Message::VarTypes type, uint32_t index, uint32_t size) |
Helper method to create and inizialize a string variable. | |
static Variable & | doInitCharVariable (Variable &var, Message::VarTypes type, uint32_t index) |
Helper method to create and inizialize a char variable. | |
static Variable & | doInitAxisVariable (Variable &var, Message::VarTypes type, uint32_t index, uint32_t axIndex, uint32_t axCount) |
Helper method to create and inizialize an axis variable. | |
static Variable & | doInitBitVariable (Variable &var, Message::VarTypes type, uint32_t index, uint32_t bit) |
Helper method to create and inizialize a bit variable. | |
static Variable & | doInitNamedVariable (Variable &var, Message::VarTypes type, const String &name) |
Helper method to create and inizialize a named variable. | |
static Variable & | doInitCachedVariable (Variable &var, Message::VarTypes type, uint32_t cacheId) |
Helper method to create and inizialize a cached variable. | |
The variable specification data.
This class allows to specify a variable from type or name or cache
Some static factory methods help you to create the variable with proper values setted
Variable | ( | ) |
Default constructor.
Creates an invalid variable (Message::varInvalid) and all the fields must be initialized
|
virtual |
Class destructor.
uint32_t axCount | ( | ) | const |
Get the number of consecutive axes.
uint32_t axIndex | ( | ) | const |
Get the first axis index.
uint32_t bit | ( | ) | const |
Get the variable bit index.
uint32_t cacheId | ( | ) | const |
Get the id of the variable into cache.
uint32_t count | ( | ) | const |
Get the number of consecutive variables.
|
staticprotected |
Helper method to create and inizialize an axis variable.
var | The variable storage to be initialize |
type | The type of variable |
index | The variable index |
axIndex | The axis index |
axCount | The number of axis |
|
staticprotected |
Helper method to create and inizialize a bit variable.
var | The variable storage to be initialize |
type | The type of variable |
index | The variable index |
bit | The bit number |
|
staticprotected |
Helper method to create and inizialize a cached variable.
var | The variable storage to be initialize |
type | The type of variable |
cacheId | The variable identifier into cache |
|
staticprotected |
Helper method to create and inizialize a char variable.
var | The variable storage to be initialize |
type | The type of variable |
index | The variable index |
|
staticprotected |
Helper method to create and inizialize a named variable.
var | The variable storage to be initialize |
type | The type of variable |
name | The variable definition |
|
staticprotected |
Helper method to create and inizialize a standard variable.
var | The variable storage to be initialize |
type | The type of variable |
index | The variable index |
count | The number of repetitions |
|
staticprotected |
Helper method to create and inizialize a string variable.
var | The variable storage to be initialize |
type | The type of variable |
index | The variable index |
size | The size of the string |
|
static |
Factory method to create and initialize a Message::varAlarmN variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varAlarmS variable.
index | The variable index |
size | The size of the string |
|
static |
Factory method to create and initialize a Message::varAM variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varAxisF variable.
index | The variable index |
axIndex | The axis index |
axCount | The number of axis |
|
static |
Factory method to create and initialize a Message::varAxisI16 variable.
index | The variable index |
axIndex | The axis index |
axCount | The number of axis |
|
static |
Factory method to create and initialize a Message::varAxisI32 variable.
index | The variable index |
axIndex | The axis index |
axCount | The number of axis |
|
static |
Factory method to create and initialize a Message::varAxisI64 variable.
index | The variable index |
axIndex | The axis index |
axCount | The number of axis |
|
static |
Factory method to create and initialize a Message::varAxisR variable.
index | The variable index |
axIndex | The axis index |
axCount | The number of axis |
|
static |
Factory method to create and initialize a Message::varBitAM variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varBitLogIW16 variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varBitLogIW32 variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varBitLogOW16 variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varBitLogOW32 variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varBitNvR16 variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varBitNvR32 variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varBitNvR64 variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varBitPhyIW16 variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varBitPhyIW32 variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varBitPhyOW16 variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varBitPhyOW32 variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varBitVR16 variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varBitVR32 variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varBitVR64 variable.
index | The variable index |
bit | The bit number |
|
static |
Factory method to create and initialize a Message::varNamed variable.
cacheId | The variable identifier into cache |
|
static |
Factory method to create and initialize a Message::varLogIC variable.
index | The variable index |
|
static |
Factory method to create and initialize a Message::varLogIW16 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varLogIW32 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varLogOC variable.
index | The variable index |
|
static |
Factory method to create and initialize a Message::varLogOW16 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varLogOW32 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varNamed variable.
name | The name of the variable : variable name syntax is RDE35 like |
|
static |
Factory method to create and initialize a Message::varNvR16 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varNvR32 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varNvR64 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varNvRR variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varNvSR variable.
index | The variable index |
size | The size of the string |
|
static |
Factory method to create and initialize a Message::varParamF variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varParamI16 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varParamI32 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varParamI64 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varParamR variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varPhyIC variable.
index | The variable index |
|
static |
Factory method to create and initialize a Message::varPhyIW16 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varPhyIW32 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varPhyOC variable.
index | The variable index |
|
static |
Factory method to create and initialize a Message::varPhyOW16 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varPhyOW32 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varVR16 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varVR32 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varVR64 variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varVRR variable.
index | The variable index |
count | The number of repetitions |
|
static |
Factory method to create and initialize a Message::varVSR variable.
index | The variable index |
size | The size of the string |
uint32_t index | ( | ) | const |
Get the variable type.
QString & name | ( | ) |
Get the name of the variable.
void setAxCount | ( | uint32_t | value | ) |
Set the number of consecutive axes.
value | The value to set |
void setAxIndex | ( | uint32_t | value | ) |
Set the first axis index.
value | The value to set |
void setBit | ( | uint32_t | value | ) |
Set the variable bit index.
value | The value to set |
void setCacheId | ( | uint32_t | value | ) |
Set the id of the variable into cache.
value | The value to set |
void setCount | ( | uint32_t | value | ) |
Set the number of consecutive variables.
value | The value to set |
void setIndex | ( | uint32_t | value | ) |
Set the variable type.
value | The value to set |
void setName | ( | const String & | value | ) |
Set the name of the variable.
value | The value to set |
void setSize | ( | uint32_t | value | ) |
Set the variable size.
value | The value to set |
void setType | ( | Message::VarTypes | value | ) |
Set the variable type.
value | The value to set |
uint32_t size | ( | ) | const |
Get the variable size.
Message::VarTypes type | ( | ) | const |
Get the variable type.