Program Listing for File MethodCommand.h
↰ Return to documentation for file (/tmp/ws/src/sick_safetyscanners_base/include/sick_safetyscanners_base/cola2/MethodCommand.h
)
// this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
// -- BEGIN LICENSE BLOCK ----------------------------------------------
// -- END LICENSE BLOCK ------------------------------------------------
//----------------------------------------------------------------------
//----------------------------------------------------------------------
#ifndef SICK_SAFETYSCANNERS_BASE_COLA2_METHODCOMMAND_H
#define SICK_SAFETYSCANNERS_BASE_COLA2_METHODCOMMAND_H
#include "sick_safetyscanners_base/cola2/Command.h"
namespace sick {
namespace cola2 {
class MethodCommand : public Command
{
public:
MethodCommand(Cola2Session& session, const uint16_t& method_index);
std::vector<uint8_t> addTelegramData(const std::vector<uint8_t>& telegram) const;
bool canBeExecutedWithoutSessionID() const;
bool processReply();
uint16_t getMethodIndex() const;
void setMethodIndex(const uint16_t& method_index);
private:
uint16_t m_method_index;
};
} // namespace cola2
} // namespace sick
#endif // SICK_SAFETYSCANNERS_BASE_COLA2_METHODCOMMAND_H