FieldSets.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 
24 // -- END LICENSE BLOCK ------------------------------------------------
25 
26 //----------------------------------------------------------------------
33 //----------------------------------------------------------------------
34 
35 #ifndef SICK_SAFETYSCANNERS_DATASTRUCTURE_FIELDSETS_H
36 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_FIELDSETS_H
37 
38 #include <iostream>
39 #include <vector>
40 
41 namespace sick {
42 namespace datastructure {
43 
47 class FieldSets
48 {
49 public:
53  FieldSets();
54 
60  std::string getVersionCVersion() const;
66  void setVersionCVersion(const std::string& version_c_version);
67 
73  uint8_t getVersionMajorVersionNumber() const;
79  void setVersionMajorVersionNumber(const uint8_t& version_major_version_number);
80 
86  uint8_t getVersionMinorVersionNumber() const;
92  void setVersionMinorVersionNumber(const uint8_t& version_minor_version_number);
93 
99  uint8_t getVersionReleaseNumber() const;
105  void setVersionReleaseNumber(const uint8_t& version_release_number);
111  std::vector<uint32_t> getNameLength() const;
117  void setNameLength(const std::vector<uint32_t>& name_length);
123  std::vector<std::string> getFieldName() const;
129  void setFieldName(const std::vector<std::string>& field_name);
130 
136  std::vector<bool> getIsDefined() const;
142  void setIsDefined(const std::vector<bool>& is_defined);
143 
144 private:
145  std::string m_version_c_version;
149  std::vector<uint32_t> m_name_length;
150  std::vector<std::string> m_field_name;
151  std::vector<bool> m_is_defined;
152 };
153 
154 
155 } // namespace datastructure
156 } // namespace sick
157 
158 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_FIELDSETS_H
uint8_t getVersionReleaseNumber() const
Gets the version release number for the scanner.
Definition: FieldSets.cpp:72
void setFieldName(const std::vector< std::string > &field_name)
Sets the field name for the scanner.
Definition: FieldSets.cpp:97
Class containing the field name of a laser scanner.
Definition: FieldSets.h:47
uint8_t getVersionMinorVersionNumber() const
Gets the minor version number for the scanner.
Definition: FieldSets.cpp:62
void setVersionReleaseNumber(const uint8_t &version_release_number)
Sets the version release number for the scanner.
Definition: FieldSets.cpp:77
void setNameLength(const std::vector< uint32_t > &name_length)
Sets the length of the field name.
Definition: FieldSets.cpp:87
void setVersionCVersion(const std::string &version_c_version)
Sets the version indicator for the scanner.
Definition: FieldSets.cpp:47
std::vector< bool > getIsDefined() const
Gets if the fields are defined.
Definition: FieldSets.cpp:102
std::vector< bool > m_is_defined
Definition: FieldSets.h:151
void setVersionMinorVersionNumber(const uint8_t &version_minor_version_number)
Sets the minor version number for the scanner.
Definition: FieldSets.cpp:67
void setIsDefined(const std::vector< bool > &is_defined)
Sets if the fields are defined.
Definition: FieldSets.cpp:107
std::string getVersionCVersion() const
Gets the version indicator for the scanner.
Definition: FieldSets.cpp:42
FieldSets()
Constructor of the field name.
Definition: FieldSets.cpp:40
std::vector< uint32_t > m_name_length
Definition: FieldSets.h:149
std::vector< std::string > m_field_name
Definition: FieldSets.h:150
uint8_t getVersionMajorVersionNumber() const
Gets the major version number for the scanner.
Definition: FieldSets.cpp:52
std::vector< uint32_t > getNameLength() const
Gets the length of the field name.
Definition: FieldSets.cpp:82
void setVersionMajorVersionNumber(const uint8_t &version_major_version_number)
Sets the major version number for the scanner.
Definition: FieldSets.cpp:57
std::vector< std::string > getFieldName() const
Gets the field name for the scanner.
Definition: FieldSets.cpp:92


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Apr 2 2021 02:45:41