CloseSession.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_CLOSESESSION_H
36 #define SICK_SAFETYSCANNERS_COLA2_CLOSESESSION_H
37 
38 
40 
41 namespace sick {
42 namespace cola2 {
43 
47 class CloseSession : public Command
48 {
49 public:
55  explicit CloseSession(Cola2Session& session);
56 
64  std::vector<uint8_t> addTelegramData(const std::vector<uint8_t>& telegram) const;
65 
66 
73  bool canBeExecutedWithoutSessionID() const;
74 
80  bool processReply();
81 };
82 
83 } // namespace cola2
84 } // namespace sick
85 
86 #endif // SICK_SAFETYSCANNERS_COLA2_CLOSESESSION_H
CloseSession(Cola2Session &session)
Constructor of the command to close a cola2 session.
Base class for commands. Defines the base interface and does the common tasks.
Definition: Command.h:61
bool processReply()
Processes the return 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 > addTelegramData(const std::vector< uint8_t > &telegram) const
Adds data to the telegram. The close cola2 session command does not carry any extra data and therefor...
Establishes a cola2 session with a sensor and enables execution of commands in this session...
Definition: Cola2Session.h:72
Command to close a cola2 session between host and sensor.
Definition: CloseSession.h:47


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Apr 2 2021 02:45:41