Program Listing for File DeviceStatus.h
↰ Return to documentation for file (/tmp/ws/src/sick_safetyscanners_base/include/sick_safetyscanners_base/datastructure/DeviceStatus.h
)
// this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
// -- BEGIN LICENSE BLOCK ----------------------------------------------
// -- END LICENSE BLOCK ------------------------------------------------
//----------------------------------------------------------------------
//----------------------------------------------------------------------
#ifndef SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_DEVICESTATUS_H
#define SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_DEVICESTATUS_H
#include <iostream>
namespace sick {
namespace datastructure {
class DeviceStatus
{
public:
enum e_sopas_device_status
{
E_UNKNOWN,
E_START_UP,
E_SERVICE_MODE,
E_NORMAL_OPERATION,
E_SUSPENDED_OPERATION,
E_SERVICE_RECOMMENDED,
E_SERVICE_REQUIRED,
E_RECOVERABLE_ERROR,
E_FATAL_ERROR
};
DeviceStatus();
uint8_t getDeviceStatus() const;
void setDeviceStatus(const uint8_t& device_status);
private:
uint8_t m_device_status;
};
} // namespace datastructure
} // namespace sick
#endif // SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_DEVICESTATUS_H