Program Listing for File FindMeCommand.h

Return to documentation for file (/tmp/ws/src/sick_safetyscanners_base/include/sick_safetyscanners_base/cola2/FindMeCommand.h)

// this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-

// -- BEGIN LICENSE BLOCK ----------------------------------------------

// -- END LICENSE BLOCK ------------------------------------------------

//----------------------------------------------------------------------
//----------------------------------------------------------------------


#ifndef SICK_SAFETYSCANNERS_BASE_COLA2_FINDMECOMMAND_H
#define SICK_SAFETYSCANNERS_BASE_COLA2_FINDMECOMMAND_H


#include "sick_safetyscanners_base/cola2/MethodCommand.h"
#include "sick_safetyscanners_base/datastructure/CommSettings.h"

namespace sick {
namespace cola2 {


class FindMeCommand : public MethodCommand
{
public:
  typedef sick::cola2::MethodCommand base_class;

  FindMeCommand(Cola2Session& session, uint16_t blink_time);


  std::vector<uint8_t> addTelegramData(const std::vector<uint8_t>& telegram) const;


  bool canBeExecutedWithoutSessionID() const;


  bool processReply();


private:
  uint16_t m_blink_time;

  void writeDataToDataPtr(std::vector<uint8_t>::iterator data_ptr) const;
};

} // namespace cola2
} // namespace sick

#endif // SICK_SAFETYSCANNERS_BASE_COLA2_FINDMECOMMAND_H