Public Member Functions | Private Attributes | List of all members
datatypes::Msg Class Reference

#include <Msg.hpp>

Inheritance diagram for datatypes::Msg:
Inheritance graph
[legend]

Public Member Functions

std::string getMsg () const
 
virtual const UINT32 getUsedMemory () const
 
 Msg (const UINT16 sourceId)
 Constructor. More...
 
 Msg (const UINT16 sourceId, const std::string message)
 Convenience constructor for the message. More...
 
bool operator== (const Msg &other) const
 Equality predicate. More...
 
void setMsg (std::string message)
 
std::string toString () const
 Conversion to string for debugging. More...
 
- Public Member Functions inherited from datatypes::BasicData
 BasicData ()
 
UINT16 getDatatype ()
 
UINT16 getSourceId ()
 
virtual void setSourceId (UINT16 id)
 
virtual ~BasicData ()
 

Private Attributes

std::string m_msgText
 

Additional Inherited Members

- Protected Attributes inherited from datatypes::BasicData
UINT16 m_datatype
 
UINT16 m_sourceId
 

Detailed Description

Definition at line 18 of file Msg.hpp.

Constructor & Destructor Documentation

datatypes::Msg::Msg ( const UINT16  sourceId)

Constructor.

Definition at line 14 of file Msg.cpp.

datatypes::Msg::Msg ( const UINT16  sourceId,
const std::string  message 
)

Convenience constructor for the message.

Definition at line 20 of file Msg.cpp.

Member Function Documentation

std::string datatypes::Msg::getMsg ( ) const

Definition at line 33 of file Msg.cpp.

virtual const UINT32 datatypes::Msg::getUsedMemory ( ) const
inlinevirtual

Implements datatypes::BasicData.

Definition at line 28 of file Msg.hpp.

bool datatypes::Msg::operator== ( const Msg other) const
inline

Equality predicate.

Definition at line 36 of file Msg.hpp.

void datatypes::Msg::setMsg ( std::string  message)

Definition at line 39 of file Msg.cpp.

std::string datatypes::Msg::toString ( ) const

Conversion to string for debugging.

Definition at line 28 of file Msg.cpp.

Member Data Documentation

std::string datatypes::Msg::m_msgText
private

Definition at line 42 of file Msg.hpp.


The documentation for this class was generated from the following files:


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Mon Oct 26 2020 03:27:30