Public Types | Public Member Functions | Private Attributes
sick::cola2::FieldHeaderVariableCommand Class Reference

Command to read the field header variables. More...

#include <FieldHeaderVariableCommand.h>

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

List of all members.

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.
 FieldHeaderVariableCommand (Cola2Session &session, datastructure::FieldData &field_data, const uint16_t index)
 Constructor of the command.
bool processReply ()
 Processes the return from the sensor.

Private Attributes

sick::datastructure::FieldDatam_field_data
std::shared_ptr
< sick::data_processing::ParseFieldHeaderData
m_field_header_parser_ptr
std::shared_ptr
< sick::data_processing::ReadWriteHelper
m_writer_ptr

Detailed Description

Command to read the field header variables.

Definition at line 49 of file FieldHeaderVariableCommand.h.


Member Typedef Documentation

Typedef to reference the base class.

Definition at line 55 of file FieldHeaderVariableCommand.h.


Constructor & Destructor Documentation

Constructor of the command.

Reads the header of the field variables. Takes the current cola2 session and a reference to the field data, which will be modified during execution. Depending on the sensor up to 128 variables can be defined.

Parameters:
sessionThe current cola2 session.
field_dataReference to field data, which will be modified on execution.
indexIndex of the variable. Can range from [0, 127].

Definition at line 43 of file FieldHeaderVariableCommand.cpp.


Member Function Documentation

Adds the data to the telegram.

Parameters:
telegramThe telegram which will be modified by the data.

Reimplemented from sick::cola2::VariableCommand.

Definition at line 53 of file FieldHeaderVariableCommand.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.

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

Reimplemented from sick::cola2::VariableCommand.

Definition at line 59 of file FieldHeaderVariableCommand.cpp.

Processes the return from the sensor.

Returns:
If processing of the returned data was successful.

Reimplemented from sick::cola2::VariableCommand.

Definition at line 64 of file FieldHeaderVariableCommand.cpp.


Member Data Documentation

Definition at line 99 of file FieldHeaderVariableCommand.h.

Definition at line 97 of file FieldHeaderVariableCommand.h.

Reimplemented from sick::cola2::VariableCommand.

Definition at line 96 of file FieldHeaderVariableCommand.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