DeviceNameVariableCommand.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 
24 // -- END LICENSE BLOCK ------------------------------------------------
25 
26 //----------------------------------------------------------------------
33 //----------------------------------------------------------------------
34 
35 #ifndef SICK_SAFETYSCANNERS_COLA2_DEVICENAMEVARIABLECOMMAND_H
36 #define SICK_SAFETYSCANNERS_COLA2_DEVICENAMEVARIABLECOMMAND_H
37 
38 #include <string>
39 
43 
44 namespace sick {
45 namespace cola2 {
46 
48 {
49 public:
54 
62  DeviceNameVariableCommand(Cola2Session& session, std::string& device_name);
63 
70 
77  bool canBeExecutedWithoutSessionID() const;
78 
84  bool processReply();
85 
86 
87 private:
88  std::shared_ptr<sick::data_processing::ReadWriteHelper> m_writer_ptr;
89  std::shared_ptr<sick::data_processing::ParseDeviceName> m_device_name_parser_ptr;
90 
91  std::string& m_device_name;
92 };
93 
94 } // namespace cola2
95 } // namespace sick
96 
97 #endif // SICK_SAFETYSCANNERS_COLA2_DEVICENAMEVARIABLECOMMAND_H
void addTelegramData(sick::datastructure::PacketBuffer::VectorBuffer &telegram) const
Adds the data to the telegram.
std::shared_ptr< sick::data_processing::ParseDeviceName > m_device_name_parser_ptr
DeviceNameVariableCommand(Cola2Session &session, std::string &device_name)
Constructor of the Command. Takes the current session and the reference for the device name...
sick::cola2::VariableCommand base_class
Typedef to reference the base class.
bool processReply()
Processes the return from the sensor.
std::shared_ptr< sick::data_processing::ReadWriteHelper > m_writer_ptr
Command to read a variable from the sensor.
bool canBeExecutedWithoutSessionID() const
Returns if the command can be executed without a session ID. Will return false for most commands exce...
std::vector< uint8_t > VectorBuffer
Typedef for a vector buffer, to sort the incoming packets.
Definition: PacketBuffer.h:71
Establishes a cola2 session with a sensor and enables execution of commands in this session...
Definition: Cola2Session.h:72


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Thu May 9 2019 02:41:08