00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- 00002 00003 // -- BEGIN LICENSE BLOCK ---------------------------------------------- 00004 00024 // -- END LICENSE BLOCK ------------------------------------------------ 00025 00026 //---------------------------------------------------------------------- 00033 //---------------------------------------------------------------------- 00034 00035 #ifndef SICK_SAFETYSCANNERS_COLA2_CLOSESESSION_H 00036 #define SICK_SAFETYSCANNERS_COLA2_CLOSESESSION_H 00037 00038 00039 #include <sick_safetyscanners/cola2/Command.h> 00040 00041 namespace sick { 00042 namespace cola2 { 00043 00047 class CloseSession : public Command 00048 { 00049 public: 00055 explicit CloseSession(Cola2Session& session); 00056 00063 void addTelegramData(sick::datastructure::PacketBuffer::VectorBuffer& telegram) const; 00064 00065 00072 bool canBeExecutedWithoutSessionID() const; 00073 00079 bool processReply(); 00080 }; 00081 00082 } // namespace cola2 00083 } // namespace sick 00084 00085 #endif // SICK_SAFETYSCANNERS_COLA2_CLOSESESSION_H