Program Listing for File MeasurementData.h

Return to documentation for file (/tmp/ws/src/sick_safetyscanners_base/include/sick_safetyscanners_base/datastructure/MeasurementData.h)

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

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

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

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

#ifndef SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_MEASUREMENTDATA_H
#define SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_MEASUREMENTDATA_H

#include <stdint.h>
#include <vector>

#include "sick_safetyscanners_base/datastructure/ScanPoint.h"

namespace sick {
namespace datastructure {

class MeasurementData
{
public:
  MeasurementData();

  uint32_t getNumberOfBeams() const;

  void setNumberOfBeams(const uint32_t& number_of_beams);

  std::vector<ScanPoint> getScanPointsVector() const;

  void addScanPoint(ScanPoint scan_point);

  bool isEmpty() const;

  void setIsEmpty(bool is_empty);

private:
  bool m_is_empty;

  uint32_t m_number_of_beams;
  std::vector<ScanPoint> m_scan_points_vector;
};

} // namespace datastructure
} // namespace sick

#endif // SICK_SAFETYSCANNERS_BASE_DATASTRUCTURE_MEASUREMENTDATA_H