FreeNOS
Public Member Functions | Data Fields
MessageHandler< Func > Struct Template Reference

Message handler function (dummy) container. More...

#include <ChannelServer.h>

Public Member Functions

 MessageHandler (const Func func, const bool reply)
 Constructor function. More...
 
const bool operator== (const struct MessageHandler< Func > &h) const
 
const bool operator!= (const struct MessageHandler< Func > &h) const
 

Data Fields

const Func exec
 Handler function. More...
 
const bool sendReply
 Whether to send a reply or not. More...
 

Detailed Description

template<class Func>
struct MessageHandler< Func >

Message handler function (dummy) container.

Definition at line 43 of file ChannelServer.h.

Constructor & Destructor Documentation

◆ MessageHandler()

template<class Func >
MessageHandler< Func >::MessageHandler ( const Func  func,
const bool  reply 
)
inline

Constructor function.

Parameters
funcFunction to execute.
replyTrue to send a reply for this message

Definition at line 51 of file ChannelServer.h.

Member Function Documentation

◆ operator!=()

template<class Func >
const bool MessageHandler< Func >::operator!= ( const struct MessageHandler< Func > &  h) const
inline

Definition at line 62 of file ChannelServer.h.

◆ operator==()

template<class Func >
const bool MessageHandler< Func >::operator== ( const struct MessageHandler< Func > &  h) const
inline

Definition at line 57 of file ChannelServer.h.

Field Documentation

◆ exec

template<class Func >
const Func MessageHandler< Func >::exec

◆ sendReply

template<class Func >
const bool MessageHandler< Func >::sendReply

Whether to send a reply or not.

Definition at line 71 of file ChannelServer.h.

Referenced by ChannelServer< DatastoreServer, DatastoreMessage >::readChannels(), and CoreServer::runCore().


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