src
datastructure
IntrusionDatum.cpp
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
#include <
sick_safetyscanners/datastructure/IntrusionDatum.h
>
36
37
namespace
sick
{
38
namespace
datastructure {
39
40
41
IntrusionDatum::IntrusionDatum
() {}
42
43
int32_t
IntrusionDatum::getSize
()
const
44
{
45
return
m_size
;
46
}
47
48
void
IntrusionDatum::setSize
(
const
int32_t& size)
49
{
50
m_size
= size;
51
}
52
53
std::vector<bool>
IntrusionDatum::getFlagsVector
()
const
54
{
55
return
m_flags_vector
;
56
}
57
58
void
IntrusionDatum::setFlagsVector
(
const
std::vector<bool>& flags_vector)
59
{
60
m_flags_vector
= flags_vector;
61
}
62
63
}
// namespace datastructure
64
}
// namespace sick
sick::datastructure::IntrusionDatum::getSize
int32_t getSize() const
Returns size of flag vector.
Definition:
IntrusionDatum.cpp:43
sick
Definition:
ApplicationNameVariableCommand.h:43
sick::datastructure::IntrusionDatum::IntrusionDatum
IntrusionDatum()
Constructor of an empty IntrusionDatum.
Definition:
IntrusionDatum.cpp:41
IntrusionDatum.h
sick::datastructure::IntrusionDatum::m_flags_vector
std::vector< bool > m_flags_vector
Definition:
IntrusionDatum.h:81
sick::datastructure::IntrusionDatum::m_size
int32_t m_size
Definition:
IntrusionDatum.h:80
sick::datastructure::IntrusionDatum::setFlagsVector
void setFlagsVector(const std::vector< bool > &flags_vector)
Setter for the flag vector.
Definition:
IntrusionDatum.cpp:58
sick::datastructure::IntrusionDatum::getFlagsVector
std::vector< bool > getFlagsVector() const
Getter for the flags vector.
Definition:
IntrusionDatum.cpp:53
sick::datastructure::IntrusionDatum::setSize
void setSize(const int32_t &size)
Setter of the size for the flag vector.
Definition:
IntrusionDatum.cpp:48
sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Aug 2 2024 08:28:39