Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages | Examples

Plugin< PacketType > Class Template Reference
[GanefCommon]

This interface is for plugins. It is assumed that plugins have both a "pack(p)" and an "unpack(p)". More...

#include <plugin.h>

Inheritance diagram for Plugin< PacketType >:

PacketChainStep< PacketType > List of all members.

Public Member Functions

 Plugin ()
virtual ~Plugin ()
virtual const unsigned int getUniqueId () const =0
 This method must return a unique number identifying the plugin.
virtual void pack (PacketType *packet)=0
 Will be called when ever a packet must be packed, Remember to call forwardPack(packet) with your resulting packet.
virtual void unpack (PacketType *packet)=0
 Will be called when ever a packet must be unpacked, Remember to call forwardUnpack(packet) with your resulting packet.

Protected Member Functions

void forwardPack (PacketType *packet)
 This method will send the packet along the chain of plugins when packing.
void forwardUnpack (PacketType *packet)
 This method will send the packet along the chain of plugins when unpacking.

Friends

class PreSendingChain< PacketType >

Detailed Description

template<class PacketType>
class Plugin< PacketType >

This interface is for plugins. It is assumed that plugins have both a "pack(p)" and an "unpack(p)".

Author:
Lars Langer and Emanuel Greisen

Definition at line 40 of file plugin.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 6 12:24:52 2006 for Ganef by  doxygen 1.4.4