lmsg::Handler< Msg > Class Template Reference
[DMT message facility]

Message handler template class. More...

#include <MsgHandler.hh>

Inheritance diagram for lmsg::Handler< Msg >:

lmsg::MsgHandler

List of all members.

Public Member Functions

 Handler (void)
 Constructor.
 ~Handler (void)
 Destructor.
error_type handleMsg (AppServer &app, const MsgHeader &hdr)
 Process message.
Msg & getMessage (void)
 Get message reference.
const Msg & getMessage (void) const
 Get message reference.


Detailed Description

template<class Msg>
class lmsg::Handler< Msg >

Message handler template class.

Handler is a template for clases handling a single kind of message. The data portion of the message is passed as the template argument, and virtual methods of the class perform the message processing.

Author:
John Zweizig
Version:
1.1; last modified March 4, 2008

Constructor & Destructor Documentation

template<class Msg>
lmsg::Handler< Msg >::Handler ( void   )  [inline]

Constructor.

Default constructor.

template<class Msg>
lmsg::Handler< Msg >::~Handler ( void   )  [inline]

Destructor.

Destructor.


Member Function Documentation

template<class Msg>
error_type lmsg::Handler< Msg >::handleMsg ( AppServer &  app,
const MsgHeader hdr 
) [virtual]

Process message.

Perform message specific processing.

Parameters:
app Appserver to be used to reply to the message.
hdr Message header information.
Returns:
Lmsg error code.

Implements lmsg::MsgHandler.

template<class Msg>
Msg & lmsg::Handler< Msg >::getMessage ( void   )  [inline, virtual]

Get message reference.

Get a reference to the input message.

Returns:
Reference to the input message

Implements lmsg::MsgHandler.

template<class Msg>
const Msg & lmsg::Handler< Msg >::getMessage ( void   )  const [inline]

Get message reference.

Get a constant reference to the input message.

Returns:
Constant reference to the input message


The documentation for this class was generated from the following file:
Generated on Sun Mar 8 19:21:34 2009 for dmt by  doxygen 1.5.4