BasicDevice.cpp
Go to the documentation of this file.
00001 //
00002 // BasicDevice.cpp
00003 //
00004 
00005 #include "BasicDevice.hpp"
00006 #include "../tools/errorhandler.hpp"
00007 
00008 namespace devices
00009 {
00010 
00011 // ****************************************************************************
00012 //     Basisklasse fuer Devices
00013 // ****************************************************************************
00014 BasicDevice::BasicDevice()
00015         : m_beVerbose(false)
00016 {
00017         infoMessage("BasicDevice: Starting constructor.", m_beVerbose);
00018         
00019         m_devicetype = Sourcetype_Unknown;
00020         m_deviceName = "(uninitialized)";
00021         m_sourceId = 0xFFFF;
00022 }
00023 
00024 BasicDevice::~BasicDevice()
00025 {
00026         infoMessage("BasicDevice(): Destructor called.", m_beVerbose);
00027         
00028         infoMessage("BasicDevice(): Destructor is done - object is dead.", m_beVerbose);
00029 }
00030 
00034 UINT16 BasicDevice::getDevicetype()
00035 {
00036         return m_devicetype;
00037 }
00038 
00042 void BasicDevice::setDevicetype(UINT16 devicetype)
00043 {
00044         m_devicetype = devicetype;
00045 }
00046 
00050 UINT16 BasicDevice::getSourceId()
00051 {
00052         return m_sourceId;
00053 }
00054 
00058 void BasicDevice::setSourceId(UINT16 sourceId)
00059 {
00060         m_sourceId = sourceId;
00061 }
00062 
00063 //
00064 // Setzt den sprechenden Namen des Geraets.
00065 //
00066 void BasicDevice::setDeviceName(std::string name)
00067 {
00068         m_deviceName = name;
00069 }
00070 
00071 //
00072 // Liefert den sprechenden Namen des Geraets.
00073 //
00074 std::string BasicDevice::getDeviceName()
00075 {
00076         return m_deviceName;
00077 }
00078 
00079 
00080 } // namespace devices


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Thu Jun 6 2019 21:02:36