LeechCraft  %{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LeechCraft::Util::VersionActionMapper< ActionType, VerType > Class Template Reference

#include "versionactionmapper.h"

Classes

struct  Simple
 

Public Types

typedef std::function< bool(QDataStream &)> Functor_t
 

Public Member Functions

 VersionActionMapper ()
 
void AddFunctor (VerType version, ActionType action, Functor_t functor)
 
bool Process (const QByteArray &ba)
 
bool Process (QDataStream &in)
 

Detailed Description

template<typename ActionType, typename VerType = quint8>
class LeechCraft::Util::VersionActionMapper< ActionType, VerType >

Definition at line 41 of file versionactionmapper.h.

Member Typedef Documentation

template<typename ActionType , typename VerType = quint8>
typedef std::function<bool (QDataStream&)> LeechCraft::Util::VersionActionMapper< ActionType, VerType >::Functor_t

Definition at line 44 of file versionactionmapper.h.

Constructor & Destructor Documentation

template<typename ActionType , typename VerType = quint8>
LeechCraft::Util::VersionActionMapper< ActionType, VerType >::VersionActionMapper ( )
inline

Definition at line 66 of file versionactionmapper.h.

Member Function Documentation

template<typename ActionType , typename VerType = quint8>
void LeechCraft::Util::VersionActionMapper< ActionType, VerType >::AddFunctor ( VerType  version,
ActionType  action,
Functor_t  functor 
)
inline

Definition at line 70 of file versionactionmapper.h.

template<typename ActionType , typename VerType = quint8>
bool LeechCraft::Util::VersionActionMapper< ActionType, VerType >::Process ( const QByteArray &  ba)
inline

Definition at line 76 of file versionactionmapper.h.

template<typename ActionType , typename VerType = quint8>
bool LeechCraft::Util::VersionActionMapper< ActionType, VerType >::Process ( QDataStream &  in)
inline

Definition at line 82 of file versionactionmapper.h.


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