Command to read the header of the monitoring case table. More...
#include <MonitoringCaseVariableCommand.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. | |
MonitoringCaseVariableCommand (Cola2Session &session, datastructure::MonitoringCaseData &monitoring_case_data, const uint16_t index) | |
Constructor of the command. | |
bool | processReply () |
Processes the return from the sensor. | |
Private Attributes | |
sick::datastructure::MonitoringCaseData & | m_monitoring_case_data |
std::shared_ptr < sick::data_processing::ParseMonitoringCaseData > | m_monitoring_case_parser_ptr |
std::shared_ptr < sick::data_processing::ReadWriteHelper > | m_writer_ptr |
Command to read the header of the monitoring case table.
Definition at line 49 of file MonitoringCaseVariableCommand.h.
Typedef to reference the base class.
Definition at line 55 of file MonitoringCaseVariableCommand.h.
sick::cola2::MonitoringCaseVariableCommand::MonitoringCaseVariableCommand | ( | Cola2Session & | session, |
datastructure::MonitoringCaseData & | monitoring_case_data, | ||
const uint16_t | index | ||
) |
Constructor of the command.
session | The current cola2 session. |
monitoring_case_data | Reference to the monitoring case data. |
index | Index of the variable to ask from the sensor, in range [0-254] |
Definition at line 44 of file MonitoringCaseVariableCommand.cpp.
void sick::cola2::MonitoringCaseVariableCommand::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 55 of file MonitoringCaseVariableCommand.cpp.
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 61 of file MonitoringCaseVariableCommand.cpp.
bool sick::cola2::MonitoringCaseVariableCommand::processReply | ( | ) | [virtual] |
Processes the return from the sensor.
Reimplemented from sick::cola2::VariableCommand.
Definition at line 66 of file MonitoringCaseVariableCommand.cpp.
sick::datastructure::MonitoringCaseData& sick::cola2::MonitoringCaseVariableCommand::m_monitoring_case_data [private] |
Definition at line 97 of file MonitoringCaseVariableCommand.h.
std::shared_ptr<sick::data_processing::ParseMonitoringCaseData> sick::cola2::MonitoringCaseVariableCommand::m_monitoring_case_parser_ptr [private] |
Definition at line 95 of file MonitoringCaseVariableCommand.h.
std::shared_ptr<sick::data_processing::ReadWriteHelper> sick::cola2::MonitoringCaseVariableCommand::m_writer_ptr [private] |
Reimplemented from sick::cola2::VariableCommand.
Definition at line 94 of file MonitoringCaseVariableCommand.h.