1 #ifndef __DATATHREAD_H__
2 #define __DATATHREAD_H__
11 #include "../../../users.h"
13 uint32_t n2l(unsigned char * c)
15 uint32_t t = *c++ << 24;
22 void l2n(uint32_t t, unsigned char * c)
24 *c++ = t >> 24 & 0x000000FF;
25 *c++ = t >> 16 & 0x000000FF;
26 *c++ = t >> 8 & 0x000000FF;
27 *c++ = t & 0x000000FF;
30 typedef std::map<std::string, std::string> PV_LIST;
37 void SetUsers(USERS * u) { users = u; };
38 void SetStore(BASE_STORE * s) { store = s; };
40 bool isDone() const { return done; };
44 friend void DTXMLStart(void * data, const char * name, const char ** attr);
45 friend void DTXMLEnd(void * data, const char * name);
68 static void * Run(void * self);
81 void ParseTag(const std::string & name, const char ** attr);
84 void DTXMLStart(void * data, const char * name, const char ** attr);
85 void DTXMLEnd(void * data, const char * name);