Trigger.cpp
Go to the documentation of this file.
00001 //
00002 // Trigger.cpp
00003 // Contains the class "Trigger"
00004 //
00005 
00006 //      HISTORY
00007 //
00008 // 1.0.0        2011-06-06, VWi
00009 //                      Initial version
00010 
00011 
00012 #include "Trigger.hpp"
00013 #include "../tools/errorhandler.hpp"
00014 #include <sstream>      // for std::ostringstream
00015 
00016 namespace datatypes
00017 {
00018         
00019 Trigger::Trigger()
00020         : m_number (0)
00021 {
00022         m_datatype = Datatype_Trigger;
00023 }
00024 
00028 Trigger::Trigger (UINT32 number, UINT8 sourceId)
00029         : m_number (number)
00030 {
00031         m_datatype = Datatype_Trigger;
00032         m_sourceId = sourceId;
00033 }
00034 
00035 
00036 // MSVC requires that virtual destructors are located in the cpp-file ...
00037 Trigger::~Trigger()
00038 {}
00039 
00040 
00041 void Trigger::setNumber (UINT32 number)
00042 {
00043         m_number = number;
00044 }
00045 
00046 
00047 //
00048 // For debug
00049 //
00050 std::string Trigger::toString()
00051 {
00052         std::ostringstream stream;
00053 
00054         stream  << "DeviceID="
00055                         << m_sourceId
00056                         << ", Number="
00057                         << m_number;
00058 
00059         return stream.str();
00060 }
00061 
00062 }       // namespace datatypes
00063 


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Wed Jun 14 2017 04:04:50