torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::Message Class Reference

#include <Message.hpp>

+ Collaboration diagram for torc::generic::Message:

Public Member Functions

const std::string getMessage () const
 
void setMessage (const std::string &inSource)
 
const MessageSeverity getSeverity () const
 
void setSeverity (const MessageSeverity &inSource)
 
 Message ()
 
 Message (const std::string &inMessage, MessageSeverity inSeverity)
 
 ~Message () throw ()
 
 Message (const Message &inSource)
 
Messageoperator= (const Message &inSource)
 

Private Attributes

std::string mMessage
 
MessageSeverity mSeverity
 

Detailed Description

The actual message object. It consists of the actual message string and the currently set severity of this message.

Definition at line 29 of file Message.hpp.

Constructor & Destructor Documentation

torc::generic::Message::Message ( )
torc::generic::Message::Message ( const std::string &  inMessage,
MessageSeverity  inSeverity 
)

Definition at line 35 of file Message.cpp.

35  :
36  mMessage(inMessage), mSeverity(inSeverity) {}
std::string mMessage
Definition: Message.hpp:50
MessageSeverity mSeverity
Definition: Message.hpp:51
torc::generic::Message::~Message ( )
throw (
)

Definition at line 38 of file Message.cpp.

38 {}
torc::generic::Message::Message ( const Message inSource)

Definition at line 40 of file Message.cpp.

40  :
41  mMessage(source.mMessage), mSeverity(source.mSeverity) {}
std::string mMessage
Definition: Message.hpp:50
MessageSeverity mSeverity
Definition: Message.hpp:51

Member Function Documentation

const std::string torc::generic::Message::getMessage ( ) const
inline

Definition at line 54 of file Message.hpp.

54  {
55  return mMessage;
56 }
std::string mMessage
Definition: Message.hpp:50

+ Here is the caller graph for this function:

const MessageSeverity torc::generic::Message::getSeverity ( ) const
inline

Definition at line 58 of file Message.hpp.

58  {
59  return mSeverity;
60 }
MessageSeverity mSeverity
Definition: Message.hpp:51

+ Here is the caller graph for this function:

Message & torc::generic::Message::operator= ( const Message inSource)

Definition at line 43 of file Message.cpp.

43  {
44  if(this != &source) {
45  mMessage = source.mMessage;
46  mSeverity = source.mSeverity;
47  }
48  return *this;
49 }
std::string mMessage
Definition: Message.hpp:50
MessageSeverity mSeverity
Definition: Message.hpp:51
void torc::generic::Message::setMessage ( const std::string &  inSource)

Definition at line 25 of file Message.cpp.

25  {
26  mMessage = inSource;
27 }
std::string mMessage
Definition: Message.hpp:50
void torc::generic::Message::setSeverity ( const MessageSeverity inSource)

Definition at line 29 of file Message.cpp.

29  {
30  mSeverity = inSource;
31 }
MessageSeverity mSeverity
Definition: Message.hpp:51

Field Documentation

std::string torc::generic::Message::mMessage
private

Definition at line 50 of file Message.hpp.

MessageSeverity torc::generic::Message::mSeverity
private

Definition at line 51 of file Message.hpp.


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