30 #ifndef _NetworkCallback_H__ 31 #define _NetworkCallback_H__ 44 virtual void call() = 0;
53 NetworkCallback(
T*
object,
void (
T::*
function) (
void)) : object_(object), function_(function) {}
55 virtual void call()
override 56 { (this->object_->*function_)(); }
63 template <
class T,
class U>
70 virtual void call()
override 71 { (this->object_->*function_)( this->oldValue_ ); }
Shared library macros, enums, constants and forward declarations for the network library ...
virtual void call() override
Definition: NetworkCallback.h:55
virtual ~NetworkCallback()
Definition: NetworkCallback.h:54
virtual void call() override
Definition: NetworkCallback.h:70
U oldValue_
Definition: NetworkCallback.h:75
virtual ~NetworkCallbackBase()
Definition: NetworkCallback.h:46
Definition: NetworkPrereqs.h:168
Definition: NetworkPrereqs.h:166
typedef void(ENET_CALLBACK *ENetPacketFreeCallback)(struct _ENetPacket *)
NetworkCallbackNotify()
Definition: NetworkCallback.h:68
NetworkCallbackBase()
Definition: NetworkCallback.h:45
T * object_
Definition: NetworkCallback.h:59
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _NetworkExport
Definition: NetworkPrereqs.h:59
Definition: InputPrereqs.h:78
NetworkCallbackNotify(T *object, void(T::*function)(const U &))
Definition: NetworkCallback.h:67
Definition: NetworkCallback.h:39
void setOldValue(const U &value)
Definition: NetworkCallback.h:72
static void registerCallback(NetworkCallbackBase *cb)
Definition: NetworkCallbackManager.cc:37
Definition: NetworkCallback.h:41
Definition: InputPrereqs.h:80
T * object_
Definition: NetworkCallback.h:74
virtual ~NetworkCallbackNotify()
Definition: NetworkCallback.h:69
NetworkCallback(T *object, void(T::*function)(void))
Definition: NetworkCallback.h:53