Planeshift
Subscription Struct Reference

Manages a iNetSubscriber watching a certain message type. More...

#include <msghandler.h>

Public Member Functions

bool operator< (const Subscription &other) const
 
 Subscription (iNetSubscriber *nSubscriber, uint32_t nFlags=0x01)
 Constructor without a callback. More...
 

Public Attributes

uint32_t flags
 Additional flags for detecting if the subscriber should be notified. More...
 
iNetSubscribersubscriber
 The actual subscriber that wants to be notified. More...
 

Detailed Description

Manages a iNetSubscriber watching a certain message type.

Simple class containing data for subscribes that want to be informed of messages.

Definition at line 47 of file msghandler.h.

Constructor & Destructor Documentation

Subscription::Subscription ( iNetSubscriber nSubscriber,
uint32_t  nFlags = 0x01 
)
inline

Constructor without a callback.

Parameters
nSubscriberSets subscriber
nFlagsSets flags

Definition at line 58 of file msghandler.h.

Member Function Documentation

bool Subscription::operator< ( const Subscription other) const
inline

Definition at line 64 of file msghandler.h.

Member Data Documentation

uint32_t Subscription::flags

Additional flags for detecting if the subscriber should be notified.

Definition at line 49 of file msghandler.h.

iNetSubscriber* Subscription::subscriber

The actual subscriber that wants to be notified.

Definition at line 50 of file msghandler.h.


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