Main Page
Namespaces
Classes
Files
File List
File Members
src
devices
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
// ****************************************************************************
14
BasicDevice::BasicDevice
()
15
: m_beVerbose(false)
16
{
17
infoMessage
(
"BasicDevice: Starting constructor."
,
m_beVerbose
);
18
19
m_devicetype
=
Sourcetype_Unknown
;
20
m_deviceName
=
"(uninitialized)"
;
21
m_sourceId
= 0xFFFF;
22
}
23
24
BasicDevice::~BasicDevice
()
25
{
26
infoMessage
(
"BasicDevice(): Destructor called."
,
m_beVerbose
);
27
28
infoMessage
(
"BasicDevice(): Destructor is done - object is dead."
,
m_beVerbose
);
29
}
30
34
UINT16
BasicDevice::getDevicetype
()
35
{
36
return
m_devicetype
;
37
}
38
42
void
BasicDevice::setDevicetype
(
UINT16
devicetype)
43
{
44
m_devicetype
= devicetype;
45
}
46
50
UINT16
BasicDevice::getSourceId
()
51
{
52
return
m_sourceId
;
53
}
54
58
void
BasicDevice::setSourceId
(
UINT16
sourceId)
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
//
74
std::string
BasicDevice::getDeviceName
()
75
{
76
return
m_deviceName
;
77
}
78
79
80
}
// namespace devices
devices::BasicDevice::m_sourceId
UINT16 m_sourceId
Definition:
BasicDevice.hpp:41
devices::BasicDevice::m_beVerbose
bool m_beVerbose
Definition:
BasicDevice.hpp:37
UINT16
uint16_t UINT16
Definition:
BasicDatatypes.hpp:27
Sourcetype_Unknown
Definition:
BasicDatatypes.hpp:78
devices::BasicDevice::getDevicetype
UINT16 getDevicetype()
Definition:
BasicDevice.cpp:34
devices::BasicDevice::setDeviceName
void setDeviceName(std::string name)
Definition:
BasicDevice.cpp:66
devices::BasicDevice::m_devicetype
UINT16 m_devicetype
Definition:
BasicDevice.hpp:40
devices::BasicDevice::BasicDevice
BasicDevice()
Definition:
BasicDevice.cpp:14
infoMessage
void infoMessage(std::string message, bool print)
Definition:
errorhandler.cpp:45
devices::BasicDevice::setSourceId
void setSourceId(UINT16 deviceId)
Definition:
BasicDevice.cpp:58
devices
Definition:
BasicDevice.cpp:8
devices::BasicDevice::setDevicetype
void setDevicetype(UINT16 devicetype)
Definition:
BasicDevice.cpp:42
devices::BasicDevice::getSourceId
UINT16 getSourceId()
Definition:
BasicDevice.cpp:50
devices::BasicDevice::getDeviceName
std::string getDeviceName()
Definition:
BasicDevice.cpp:74
devices::BasicDevice::m_deviceName
std::string m_deviceName
Definition:
BasicDevice.hpp:42
devices::BasicDevice::~BasicDevice
virtual ~BasicDevice()
Definition:
BasicDevice.cpp:24
BasicDevice.hpp
libsick_ldmrs
Author(s): SICK AG
, Martin Günther
, Jochen Sprickerhof
autogenerated on Mon Oct 26 2020 03:27:29