logog
logger optimized for games
statics.hpp
Go to the documentation of this file.
1 
5 #ifndef __LOGOG_STATICS_HPP__
6 #define __LOGOG_STATICS_HPP__
7 
8 
9 namespace logog
10 {
11 
12 class Timer;
13 class Formatter;
14 class Target;
15 class Mutex;
16 
17 extern void DestroyAllNodes();
18 extern void DestroyGlobalTimer();
19 extern void DestroyDefaultFormatter();
20 extern void DestroyStringSearchMutex();
21 extern void DestroyMessageCreationMutex();
22 
23 /* Technically this information should be in node.hpp but statics is responsible for
24  * this global list.
25  */
26 class Statics
27 {
28 public:
31  void *(*s_pfMalloc)( size_t );
34  void (*s_pfFree)( void * );
36  void *s_pAllNodes;
57 
58  Statics();
59  ~Statics();
60 
62  void Reset();
63 
64 };
65 
66 extern Statics &Static();
67 
71 extern void DestroyStatic();
72 
73 }
74 #endif // __LOGOG_STATICS_HPP
[Thread]
Definition: api.hpp:8
Definition: timer.hpp:14
Statics & Static()
[Mutex]
Definition: mutex.hpp:48
Formatter * s_pDefaultFormatter
Definition: statics.hpp:52
void DestroyGlobalTimer()
void * s_pAllTargets
Definition: statics.hpp:42
Statics * s_pSelf
Definition: statics.hpp:56
void(* s_pfFree)(void *)
Definition: statics.hpp:34
Timer * s_pTimer
Definition: statics.hpp:46
void * s_pAllNodes
Definition: statics.hpp:36
Definition: formatter.hpp:25
void DestroyDefaultFormatter()
void * s_pStringSearchMutex
Definition: statics.hpp:48
int s_nSockets
Definition: statics.hpp:54
Definition: statics.hpp:26
void DestroyAllNodes()
void * s_pAllFilterNodes
Definition: statics.hpp:40
void * s_pDefaultFilter
Definition: statics.hpp:44
Mutex * s_pMessageCreationMutex
Definition: statics.hpp:50
void DestroyMessageCreationMutex()
void DestroyStringSearchMutex()
void * s_pAllSubscriberNodes
Definition: statics.hpp:38
void DestroyStatic()