ReplicaNet and RNLobby  1
RO_RegistryBlock.h
1 /* START_LICENSE_HEADER
2 
3 Copyright (C) 2000 Martin Piper, original design and program code
4 Copyright (C) 2001 Replica Software
5 
6 This program file is copyright (C) Replica Software and can only be used under license.
7 For more information visit: http://www.replicanet.com/
8 Or email: info@replicanet.com
9 
10 END_LICENSE_HEADER */
11 #include "RNPlatform/Inc/MemoryTracking.h"
12 #ifndef __RO_REGISTRYBLOCK_H__
13 #define __RO_REGISTRYBLOCK_H__
14 
15 namespace RNReplicaNet
16 {
17 
18 class ReplicaObject;
19 
23 typedef ReplicaObject *p_RO_Func(void);
24 typedef void p_RO_FuncDelete(ReplicaObject *);
25 
30 {
31 public:
39  s_RO_RegistryBlock(int id,p_RO_Func *pfunc,p_RO_FuncDelete *pfunc_delete,const char *name = 0);
40 
45  int GetClassID(void);
46 
52 
57  void CallBackDelete(ReplicaObject *object);
58 
64  const char *GetName(void) const;
65 
66 private:
67  int mID;
68  p_RO_Func *mFunc;
69  p_RO_FuncDelete *mFuncDelete;
70  const char *mName;
71 };
72 
73 } // namespace RNReplicaNet
74 
75 #endif
const char * GetName(void) const
ReplicaObject * CallBackAllocate(void)
void CallBackDelete(ReplicaObject *object)
s_RO_RegistryBlock(int id, p_RO_Func *pfunc, p_RO_FuncDelete *pfunc_delete, const char *name=0)
Definition: ReplicaObject.h:43
Definition: RO_RegistryBlock.h:29