Public Member Functions | Private Attributes
sick::cola2::VariableCommand Class Reference

Command to read a variable from the sensor. More...

#include <VariableCommand.h>

Inheritance diagram for sick::cola2::VariableCommand:
Inheritance graph
[legend]

List of all members.

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.
uint16_t getVariableIndex () const
bool processReply ()
 Processes the return from the sensor.
void setVariableIndex (const uint16_t &variable_index)
 VariableCommand (Cola2Session &session, const uint16_t &method_index)
 Constructor of the command.

Private Attributes

uint16_t m_variable_index
std::shared_ptr
< sick::data_processing::ReadWriteHelper
m_writer_ptr

Detailed Description

Command to read a variable from the sensor.

Definition at line 46 of file VariableCommand.h.


Constructor & Destructor Documentation

sick::cola2::VariableCommand::VariableCommand ( Cola2Session session,
const uint16_t &  method_index 
)

Constructor of the command.

Parameters:
sessionThe current cola2 session.
method_indexThe index of the variable.

Definition at line 43 of file VariableCommand.cpp.


Member Function Documentation

Returns if the command can be executed without a session ID. Will return false for most commands except the commands to establish a connection.

Returns:
If the command needs a session ID to be executed.

Reimplemented in sick::cola2::FieldGeometryVariableCommand, sick::cola2::FieldHeaderVariableCommand, sick::cola2::MeasurementPersistentConfigVariableCommand, sick::cola2::MonitoringCaseVariableCommand, sick::cola2::MeasurementCurrentConfigVariableCommand, sick::cola2::MonitoringCaseTableHeaderVariableCommand, sick::cola2::TypeCodeVariableCommand, and sick::cola2::DeviceNameVariableCommand.

Definition at line 59 of file VariableCommand.cpp.

Definition at line 79 of file VariableCommand.cpp.

void sick::cola2::VariableCommand::setVariableIndex ( const uint16_t &  variable_index)

Definition at line 84 of file VariableCommand.cpp.


Member Data Documentation

Definition at line 83 of file VariableCommand.h.


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


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Tue May 7 2019 03:27:37