BasicApplication.cpp
Go to the documentation of this file.
1 //
2 // BasicApplication.cpp
3 //
4 
5 #include "BasicApplication.hpp"
6 #include "../tools/errorhandler.hpp"
7 
8 namespace application
9 {
10 
11 // ****************************************************************************
12 // Basisklasse fuer Applikationen
13 // ****************************************************************************
15  : m_beVerbose(false)
16  , m_applicationType(Sourcetype_Unknown)
17  , m_sourceId(0)
18 {
19  infoMessage("BasicApplication: Starting constructor.", m_beVerbose);
20 }
21 
23 {
24  infoMessage("BasicApplication(): Destructor called.", m_beVerbose);
25 
26  infoMessage("BasicApplication(): Destructor is done - object is dead.", m_beVerbose);
27 }
28 
29 //
30 // Setze einen sprechenden Namen.
31 //
32 void BasicApplication::setApplicationName(std::string appName)
33 {
34  m_applicationName = appName;
35 }
36 
37 //
38 // Liefert den sprechenden Namen.
39 //
41 {
42  return m_applicationName;
43 }
44 
45 //
46 // Der Typ der Applikation, als Zahl.
47 //
48 // Basistyp ist "Sourcetype".
49 //
51 {
52  return m_applicationType;
53 }
54 
55 //
56 // Der Typ der Applikation, als Zahl.
57 //
58 // Basistyp ist "Sourcetype".
59 //
61 {
62  m_applicationType = applicationtype;
63 }
64 
69 {
70  return m_sourceId;
71 }
72 
77 {
78  m_sourceId = sourceId;
79 }
80 
81 } // namespace application
uint16_t UINT16
void setSourceId(UINT16 applicationId)
void infoMessage(std::string message, bool print)
void setApplicationType(UINT16 applicationtype)
void setApplicationName(std::string appName)


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