Command to read the persistent configuration from the sensor. More...
#include <MeasurementPersistentConfigVariableCommand.h>
Public Types | |
typedef sick::cola2::VariableCommand | base_class |
Typedef to reference the base class. | |
Public Member Functions | |
void | addTelegramData (sick::datastructure::PacketBuffer::VectorBuffer &telegram) const |
Adds the data to the telegram. | |
bool | canBeExecutedWithoutSessionID () const |
Returns if the command can be executed without a session ID. Will return false for most commands except the commands to establish a connection. | |
MeasurementPersistentConfigVariableCommand (Cola2Session &session, datastructure::ConfigData &config_data) | |
Constructor of the command. | |
bool | processReply () |
Processes the return from the sensor. | |
Private Attributes | |
sick::datastructure::ConfigData & | m_config_data |
std::shared_ptr < sick::data_processing::ParseMeasurementPersistentConfigData > | m_measurement_persistent_config_parser_ptr |
std::shared_ptr < sick::data_processing::ReadWriteHelper > | m_writer_ptr |
Command to read the persistent configuration from the sensor.
Definition at line 49 of file MeasurementPersistentConfigVariableCommand.h.
typedef sick::cola2::VariableCommand sick::cola2::MeasurementPersistentConfigVariableCommand::base_class |
Typedef to reference the base class.
Definition at line 55 of file MeasurementPersistentConfigVariableCommand.h.
sick::cola2::MeasurementPersistentConfigVariableCommand::MeasurementPersistentConfigVariableCommand | ( | Cola2Session & | session, |
datastructure::ConfigData & | config_data | ||
) |
Constructor of the command.
Takes the current cola2 session and a reference to the field data variable which will be written on execution. The index defines which field variable will be read. Depending on the sensor up to 128 variables can be defined.
session | The current cola2 session. |
config_data | The config data reference which will be modified on execution. |
Definition at line 43 of file MeasurementPersistentConfigVariableCommand.cpp.
void sick::cola2::MeasurementPersistentConfigVariableCommand::addTelegramData | ( | sick::datastructure::PacketBuffer::VectorBuffer & | telegram | ) | const [virtual] |
Adds the data to the telegram.
telegram | The telegram which will be modified by the data. |
Reimplemented from sick::cola2::VariableCommand.
Definition at line 53 of file MeasurementPersistentConfigVariableCommand.cpp.
bool sick::cola2::MeasurementPersistentConfigVariableCommand::canBeExecutedWithoutSessionID | ( | ) | const |
Returns if the command can be executed without a session ID. Will return false for most commands except the commands to establish a connection.
Reimplemented from sick::cola2::VariableCommand.
Definition at line 59 of file MeasurementPersistentConfigVariableCommand.cpp.
bool sick::cola2::MeasurementPersistentConfigVariableCommand::processReply | ( | ) | [virtual] |
Processes the return from the sensor.
Reimplemented from sick::cola2::VariableCommand.
Definition at line 64 of file MeasurementPersistentConfigVariableCommand.cpp.
sick::datastructure::ConfigData& sick::cola2::MeasurementPersistentConfigVariableCommand::m_config_data [private] |
Definition at line 98 of file MeasurementPersistentConfigVariableCommand.h.
std::shared_ptr<sick::data_processing::ParseMeasurementPersistentConfigData> sick::cola2::MeasurementPersistentConfigVariableCommand::m_measurement_persistent_config_parser_ptr [private] |
Definition at line 96 of file MeasurementPersistentConfigVariableCommand.h.
std::shared_ptr<sick::data_processing::ReadWriteHelper> sick::cola2::MeasurementPersistentConfigVariableCommand::m_writer_ptr [private] |
Reimplemented from sick::cola2::VariableCommand.
Definition at line 94 of file MeasurementPersistentConfigVariableCommand.h.