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

Command for method calls to the sensor. More...

#include <MethodCommand.h>

Inheritance diagram for sick::cola2::MethodCommand:
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 getMethodIndex () const
 MethodCommand (Cola2Session &session, const uint16_t &method_index)
 Constructor of the method command.
bool processReply ()
 Processes the return from the sensor.
void setMethodIndex (const uint16_t &method_index)

Private Attributes

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

Detailed Description

Command for method calls to the sensor.

Definition at line 46 of file MethodCommand.h.


Constructor & Destructor Documentation

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

Constructor of the method command.

Parameters:
sessionThe current cola2 session.
method_indexThe index of the method to call in the sensor.

Definition at line 43 of file MethodCommand.cpp.


Member Function Documentation

Adds the data to the telegram.

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

Implements sick::cola2::Command.

Reimplemented in sick::cola2::ChangeCommSettingsCommand.

Definition at line 50 of file MethodCommand.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 in sick::cola2::ChangeCommSettingsCommand.

Definition at line 58 of file MethodCommand.cpp.

Definition at line 78 of file MethodCommand.cpp.

Processes the return from the sensor.

Returns:
If processing of the returned data was successful.

Implements sick::cola2::Command.

Reimplemented in sick::cola2::ChangeCommSettingsCommand.

Definition at line 63 of file MethodCommand.cpp.

void sick::cola2::MethodCommand::setMethodIndex ( const uint16_t &  method_index)

Definition at line 83 of file MethodCommand.cpp.


Member Data Documentation

Definition at line 83 of file MethodCommand.h.

Reimplemented from sick::cola2::Command.

Reimplemented in sick::cola2::ChangeCommSettingsCommand.

Definition at line 84 of file MethodCommand.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