Trigger.hpp
Go to the documentation of this file.
1 
6 #ifndef DATATYPE_TRIGGER_HPP
7 #define DATATYPE_TRIGGER_HPP
8 
9 
10 #include "../tools/errorhandler.hpp"
11 #include <stdexcept>
12 #include "../BasicDatatypes.hpp"
13 
14 namespace datatypes
15 {
16 
18 class Trigger : public BasicData
19 {
20 public:
22  Trigger ();
23 
25  Trigger (UINT32 number, UINT8 sourceId);
26 
28  virtual ~Trigger();
29 
30  // Estimate the memory usage of this object
31  virtual const UINT32 getUsedMemory() const { return sizeof(*this); };
32 
33  // Returns the number of the Trigger
34  UINT32 getNumber() const { return m_number; }
35 
36  // Sets the number.
37  void setNumber (UINT32 number);
38 
39  // For debug
40 
41  std::string toString();
42 
43 
44 private:
46 
48 };
49 
50 
51 } // namespace datatypes
52 
53 
54 #endif // TRIGGER_HPP
UINT32 m_number
The trigger counter.
Definition: Trigger.hpp:45
uint32_t UINT32
Trigger()
Default constructor.
Definition: Trigger.cpp:19
void setNumber(UINT32 number)
Definition: Trigger.cpp:41
UINT32 getNumber() const
Definition: Trigger.hpp:34
virtual ~Trigger()
Destructor.
Definition: Trigger.cpp:37
Class for a simple serializable trigger signal.
Definition: Trigger.hpp:18
std::string toString()
Definition: Trigger.cpp:50
virtual const UINT32 getUsedMemory() const
Definition: Trigger.hpp:31
uint8_t UINT8


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Sat Jun 8 2019 17:57:33