Line | |
---|
1 | #ifndef DIM_HH
|
---|
2 | #define DIM_HH
|
---|
3 |
|
---|
4 | #include "dim_common.h"
|
---|
5 | #include "sllist.hxx"
|
---|
6 | #include "dllist.hxx"
|
---|
7 |
|
---|
8 | class DimCore
|
---|
9 | {
|
---|
10 | public:
|
---|
11 | static int inCallback;
|
---|
12 | };
|
---|
13 |
|
---|
14 | class DllExp DimErrorHandler{
|
---|
15 | public:
|
---|
16 | virtual void errorHandler(int severity, int code, char *msg) = 0;
|
---|
17 | virtual ~DimErrorHandler() {};
|
---|
18 | };
|
---|
19 |
|
---|
20 | class DllExp DimTimer
|
---|
21 | {
|
---|
22 | public:
|
---|
23 | int firedFlag;
|
---|
24 | int runningFlag;
|
---|
25 | DimTimer();
|
---|
26 | DimTimer(int time);
|
---|
27 | virtual ~DimTimer();
|
---|
28 | int start(int time);
|
---|
29 | int stop();
|
---|
30 | int fired() { return firedFlag;};
|
---|
31 | void clear() { firedFlag = 0;};
|
---|
32 | virtual void timerHandler() { };
|
---|
33 | };
|
---|
34 |
|
---|
35 | class DllExp DimThread
|
---|
36 | {
|
---|
37 | public:
|
---|
38 | long itsId;
|
---|
39 | DimThread();
|
---|
40 | virtual ~DimThread();
|
---|
41 | int start();
|
---|
42 | // int stop();
|
---|
43 | // void start(int time);
|
---|
44 | // int stop();
|
---|
45 | // int fired() { return firedFlag;};
|
---|
46 | // void clear() { firedFlag = 0;};
|
---|
47 | virtual void threadHandler() { };
|
---|
48 | };
|
---|
49 |
|
---|
50 | class DllExp DimUtil
|
---|
51 | {
|
---|
52 | public:
|
---|
53 | static char *getEnvVar(char *varName);
|
---|
54 | DimUtil();
|
---|
55 | ~DimUtil();
|
---|
56 | static char *itsBuffer;
|
---|
57 | static int itsBufferSize;
|
---|
58 | };
|
---|
59 |
|
---|
60 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.