Robox Library for Cpp: BCC/31 module 1.0.0
RLibCpp BCC/31 protocol implementation
Public Member Functions | List of all members
BaseWriteVariableData Class Reference

Internal class for Write and Force operations. More...

#include <client.h>

Inheritance diagram for BaseWriteVariableData:
OperationData ErrorData ForceVariableData WriteVariableData

Public Member Functions

 BaseWriteVariableData ()
 Class constructor.
 
 BaseWriteVariableData (const BaseWriteVariableData &src)
 Class copy constructor.
 
 BaseWriteVariableData (const Variable &var)
 Class constructor from variable.
 
void copyFrom (BaseWriteVariableData &src)
 Performs a deep copy (i.e. clone) of the data from src
 
void copyValuesFrom (const Variable::Data::Vector &src)
 Performs a deep copy of values (i.e. clone) from src
 
void clear ()
 Clears the storage.
 
Variablevar ()
 Get the definition [IN].
 
void setVar (const Variable &value)
 Set the definition [IN].
 
SafeModes safe () const
 Get the desired SafeModes [IN].
 
void setSafe (SafeModes value)
 Set the desired SafeModes [IN].
 
bool coherentValues () const
 Get the coherentValues flag [IN].
 
void setCoherentValues (bool value)
 Set the coherentValues flag [IN].
 
Variable::Data::Vectorvalues ()
 Get the list of variable values. [IN].
 
void setValues (const Variable::Data::Vector &value)
 Set the list of variable values. [IN].
 
- Public Member Functions inherited from OperationData
void setState (uint64_t senderId, ActivityStates state, uint64_t data=0)
 Set the activity state.
 
void setProgress (uint64_t senderId, int32_t min, int32_t max, int32_t cur)
 Set the activity progress.
 
- Public Member Functions inherited from ErrorData
 ErrorData ()
 Class contructor.
 
void setErrorFromMessage (Message *src)
 Set error information from a source message.
 
void clearError ()
 Clear the error information.
 
void setError (Message::ErrCodes errCode)
 Set the error information.
 
void setError (Message::ErrCodes errCode, uint16_t errExtra)
 Set the error information.
 
Message::ErrCodes nackErrCode () const
 Get the received NACK error code : if the value equals Message::errCodesNoError then no NACK message was received.
 
uint16_t nackErrExtra () const
 Get the optional error extra data of the last NACK message received from the remote device.
 

Additional Inherited Members

- Public Attributes inherited from OperationData
Signal3< uint64_t, ActivityStates, uint64_t > stateChanged
 Signal emitted when the state of the operation changes.
 
Signal4< uint64_t, int32_t, int32_t, int32_t > progressChanged
 Signal emitted when the progress of the operation changes.
 
- Protected Member Functions inherited from ErrorData
void setNackErrCode (Message::ErrCodes value)
 Set the received NACK error code : if the value equals Message::errCodesNoError then no NACK message was received.
 
void setNackErrExtra (uint16_t value)
 Set the optional error extra data of the last NACK message received from the remote device.
 
uint16_t nackErrFlags () const
 Get the error information validity flags.
 
void setNackErrFlags (uint16_t value)
 Set the error information validity flags.
 

Detailed Description

Internal class for Write and Force operations.

Constructor & Destructor Documentation

◆ BaseWriteVariableData() [1/3]

Class constructor.

◆ BaseWriteVariableData() [2/3]

Class copy constructor.

Parameters
srcThe source object

◆ BaseWriteVariableData() [3/3]

Class constructor from variable.

Parameters
varThe variable to use

Member Function Documentation

◆ clear()

void clear ( )

Clears the storage.

◆ coherentValues()

bool coherentValues ( ) const

Get the coherentValues flag [IN].

If setted, the message data size are limited to the protocol's maximum data size: data are retrieved with a single transition so they are garanteed to be coherent
If resetted, the message data size may exceed the protocol's maximum data size and are retrieved with multiple transitions , so they may be not coherent

Returns
The parameter value

◆ copyFrom()

void copyFrom ( BaseWriteVariableData & src)

Performs a deep copy (i.e. clone) of the data from src

Parameters
srcThe source object

◆ copyValuesFrom()

void copyValuesFrom ( const Variable::Data::Vector & src)

Performs a deep copy of values (i.e. clone) from src

Parameters
srcThe source object

◆ safe()

SafeModes safe ( ) const

Get the desired SafeModes [IN].

Returns
The parameter value

◆ setCoherentValues()

void setCoherentValues ( bool value)

Set the coherentValues flag [IN].

If setted, the message data size are limited to the protocol's maximum data size: data are retrieved with a single transition so they are garanteed to be coherent
If resetted, the message data size may exceed the protocol's maximum data size and are retrieved with multiple transitions , so they may be not coherent

Parameters
valueThe value to set

◆ setSafe()

void setSafe ( SafeModes value)

Set the desired SafeModes [IN].

Parameters
valueThe value to set

◆ setValues()

void setValues ( const Variable::Data::Vector & value)

Set the list of variable values. [IN].

Parameters
valueThe value to set

◆ setVar()

void setVar ( const Variable & value)

Set the definition [IN].

Parameters
valueThe value to set

◆ values()

Variable::Data::Vector & values ( )

Get the list of variable values. [IN].

Returns
The parameter value
Remarks
The values will be used in consecutive variables, starting from the first specified index (or axis index) and with the natural list order.

◆ var()

Variable & var ( )

Get the definition [IN].

Returns
The parameter value