Public Member Functions | Public Attributes | List of all members
MessageSender Struct Reference

Public Member Functions

 MessageSender (sev, id)
 
template<typename T >
 operator<< (const T &t)
 
 ~MessageSender ()
 

Public Attributes

boost::shared_ptr< ErrorObjep
 

Detailed Description

Definition at line 150 of file MessageLoggerDesign.txt.

Constructor & Destructor Documentation

MessageSender::MessageSender ( sev  ,
id   
)
inline

Definition at line 151 of file MessageLoggerDesign.txt.

151 : ep(new ErrorObj(sev,id)) {}
a pre services activity issues a LogError("id") f LogWarning is a free returning a MessageSender which it constructs The MessageSender class contains an ErrorObj which the ctor initializes to point to an ErrorObj on the constructed from ELwarning and myid This ErrorObj
boost::shared_ptr< ErrorObj > ep
MessageSender::~MessageSender ( )
inline

Definition at line 154 of file MessageLoggerDesign.txt.

154  {
155  UnstructuredQslot * s = messageLoggerQ()->getSlot();
156  MessageLoggerSlot * m = static_cast<MessageLoggerSlot *> (s);
157  m->command = LOG;
158  m->Object = ep;
159  s->commit();
160  }
static const double m
Definition: Units.h:79
UnstructuredQSlot * getSlot()
Even though this code calls delete on s
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:87
boost::shared_ptr< ErrorObj > ep
MessageLoggerQ * messageLoggerQ()

Member Function Documentation

template<typename T >
MessageSender::operator<< ( const T t)
inline

Definition at line 153 of file MessageLoggerDesign.txt.

153 { *ep << t; }
boost::shared_ptr< ErrorObj > ep

Member Data Documentation

boost::shared_ptr<ErrorObj> MessageSender::ep

Definition at line 161 of file MessageLoggerDesign.txt.


The documentation for this struct was generated from the following file: