-
Notifications
You must be signed in to change notification settings - Fork 0
/
manager_cs.h
executable file
·57 lines (48 loc) · 937 Bytes
/
manager_cs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef __CS_H__
#define __CS_H__
#include "layer.h"
int ParseXMLElement2(hustr name, HUMap & xmlmp, xmlproc * xml);
class CS_manager :virtual public Mutex
{
public:
void CreateCS(const char * str, HUMap & xmlmp)
{
//printf("CreateCS++ %s\r\n",str);
lock();
m_cs[str].accept(xmlmp);
// m_cs[str].fetch(xmlmp);
// m_cs[str].remove("name");
unlock();
//m_cs[str].display();
//printf("CreateCS--\r\n");
return;
}
void PostScfg(HUMap & mp);
void PostCS(HUMap::OrderList & mp);
void PostCS(const char * str);
void Stop()
{
lock();
stop = 1;
unlock();
}
void Start()
{
lock();
stop = 0;
unlock();
}
CS_manager()
{
stop = 0;
}
virtual ~CS_manager()
{
}
int stop;
xmlproc * elemgr;
//map<hustr, element *> m_ele;
typedef map<hustr, HUMap::OrderList>::iterator iterator;
map<hustr, HUMap::OrderList> m_cs;
};
#endif //__CS_H__