LightWrap++
AC++wrapperfortheLightWave3DSDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
*);
25
static
void
AddShutdownHandler
(
SimpleHandler
*sh)
26
{
27
shutdownList()->push_back(sh);
28
}
29
static
void
AddStartupHandler
(
SimpleHandler
*sh)
30
{
31
startupList()->push_back(sh);
32
}
33
static
void
AddPlugin
(
const
char
*className,
const
char
*name, ActivateFunc *activate, ServerTagInfo tagInfo[]);
34
};
35
36
37
class
ShutdownHandler
38
{
39
public
:
40
ShutdownHandler
(
SimpleHandler
*sh)
41
{
42
lwpp::LWServer::AddShutdownHandler
(sh);
43
}
44
};
45
46
class
StartupHandler
47
{
48
public
:
49
StartupHandler
(
SimpleHandler
*sh)
50
{
51
lwpp::LWServer::AddStartupHandler
(sh);
52
}
53
};
54
}
55
56
#endif // LW_SERVER_H
include
lwpp
lw_server.h
Generated on Wed Sep 19 2012 18:30:22 for LightWrap++ by
1.8.1.1