Command to read the type code of the sensor. More...
#include <TypeCodeVariableCommand.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. | |
bool | processReply () |
Processes the return from the sensor. | |
TypeCodeVariableCommand (Cola2Session &session, datastructure::TypeCode &type_code) | |
Constructor of the Command. | |
Private Attributes | |
sick::datastructure::TypeCode & | m_type_code |
std::shared_ptr < sick::data_processing::ParseTypeCodeData > | m_type_code_parser_ptr |
std::shared_ptr < sick::data_processing::ReadWriteHelper > | m_writer_ptr |
Command to read the type code of the sensor.
Definition at line 49 of file TypeCodeVariableCommand.h.
Typedef to reference the base class.
Definition at line 55 of file TypeCodeVariableCommand.h.
sick::cola2::TypeCodeVariableCommand::TypeCodeVariableCommand | ( | Cola2Session & | session, |
datastructure::TypeCode & | type_code | ||
) |
Constructor of the Command.
session | The current cola2 session. |
type_code | Reference to the type code variable, which will be written on execution. |
Definition at line 43 of file TypeCodeVariableCommand.cpp.
void sick::cola2::TypeCodeVariableCommand::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 52 of file TypeCodeVariableCommand.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 58 of file TypeCodeVariableCommand.cpp.
bool sick::cola2::TypeCodeVariableCommand::processReply | ( | ) | [virtual] |
Processes the return from the sensor.
Reimplemented from sick::cola2::VariableCommand.
Definition at line 63 of file TypeCodeVariableCommand.cpp.
Definition at line 92 of file TypeCodeVariableCommand.h.
std::shared_ptr<sick::data_processing::ParseTypeCodeData> sick::cola2::TypeCodeVariableCommand::m_type_code_parser_ptr [private] |
Definition at line 90 of file TypeCodeVariableCommand.h.
std::shared_ptr<sick::data_processing::ReadWriteHelper> sick::cola2::TypeCodeVariableCommand::m_writer_ptr [private] |
Reimplemented from sick::cola2::VariableCommand.
Definition at line 89 of file TypeCodeVariableCommand.h.