BasicDevice.cpp
Go to the documentation of this file.
1 //
2 // BasicDevice.cpp
3 //
4 
5 #include "BasicDevice.hpp"
6 #include "../tools/errorhandler.hpp"
7 
8 namespace devices
9 {
10 
11 // ****************************************************************************
12 // Basisklasse fuer Devices
13 // ****************************************************************************
15  : m_beVerbose(false)
16 {
17  infoMessage("BasicDevice: Starting constructor.", m_beVerbose);
18 
20  m_deviceName = "(uninitialized)";
21  m_sourceId = 0xFFFF;
22 }
23 
25 {
26  infoMessage("BasicDevice(): Destructor called.", m_beVerbose);
27 
28  infoMessage("BasicDevice(): Destructor is done - object is dead.", m_beVerbose);
29 }
30 
35 {
36  return m_devicetype;
37 }
38 
43 {
44  m_devicetype = devicetype;
45 }
46 
51 {
52  return m_sourceId;
53 }
54 
59 {
60  m_sourceId = sourceId;
61 }
62 
63 //
64 // Setzt den sprechenden Namen des Geraets.
65 //
66 void BasicDevice::setDeviceName(std::string name)
67 {
68  m_deviceName = name;
69 }
70 
71 //
72 // Liefert den sprechenden Namen des Geraets.
73 //
75 {
76  return m_deviceName;
77 }
78 
79 
80 } // namespace devices
uint16_t UINT16
void setDeviceName(std::string name)
Definition: BasicDevice.cpp:66
void infoMessage(std::string message, bool print)
void setSourceId(UINT16 deviceId)
Definition: BasicDevice.cpp:58
void setDevicetype(UINT16 devicetype)
Definition: BasicDevice.cpp:42
std::string getDeviceName()
Definition: BasicDevice.cpp:74
std::string m_deviceName
Definition: BasicDevice.hpp:42


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