LightWrap++
AC++wrapperfortheLightWave3DSDK
lw_server.h
Go to the documentation of this file.
1 #ifndef LW_SERVER_H
2 #define LW_SERVER_H
3 
4 #include <vector>
5 #include <lwserver.h>
6 
7 namespace lwpp
8 {
9  typedef void SimpleHandler();
10 
11  typedef std::vector<ServerRecord> PluginList;
12  typedef PluginList::iterator PluginIterator;
13 
14  typedef std::vector<SimpleHandler *> HandlerList;
15  typedef HandlerList::iterator HandlerIterator;
16 
17  class LWServer
18  {
19  static PluginList *pluginList();
20  static HandlerList *startupList();
21  static HandlerList *shutdownList();
22  public:
23  static void *Startup(void);
24  static void Shutdown(void *);
26  {
27  shutdownList()->push_back(sh);
28  }
30  {
31  startupList()->push_back(sh);
32  }
33  static void AddPlugin(const char *className, const char *name, ActivateFunc *activate, ServerTagInfo tagInfo[]);
34  };
35 
36 
38  {
39  public:
41  {
43  }
44  };
45 
47  {
48  public:
50  {
52  }
53  };
54 }
55 
56 #endif // LW_SERVER_H