fastdo  0.6.8
fastdo.hpp
浏览该文件的文档.
1 #ifndef __FASTDO_HPP__
2 #define __FASTDO_HPP__
3 
4 #ifdef __cplusplus
5  #define EXTERN_C extern "C"
6 #else
7  #define EXTERN_C
8 #endif
9 
10 #if defined(_MSC_VER)
11  #pragma warning ( disable : 4190 )
12  #define FASTDO_API EXTERN_C __declspec(dllexport)
13 #else
14  #define FASTDO_API EXTERN_C
15 #endif
16 
17 #include "eienwebx.hpp"
18 #include "eiendb.hpp"
19 #include "eiennet.hpp"
20 #include "eiengd.hpp"
21 #include "eienexpr.hpp"
22 #include "eientpl.hpp"
23 #include "appserv.hpp"
24 #include <iostream>
25 using namespace std;
26 using namespace winux;
27 using namespace eiendb;
28 using namespace eiennet;
29 using namespace eiengd;
30 using namespace eienexpr;
31 using namespace eientpl;
32 using namespace eienwebx;
33 
34 #define GET_RUNPARAM(type) ((type)__runParam)
35 
36 #define BEGIN_WEB_MAIN( RSP, REQ, APP ) \
37 FASTDO_API int WebMain( Response * __rsp, void * __runParam ) { \
38  Response & RSP = *__rsp; \
39  Request & REQ = __rsp->request; \
40  App & APP = *REQ.app; \
41  try {
42 
43 #define END_WEB_MAIN(RSP) \
44  } catch ( std::exception const & e ) { \
45  RSP << e.what() << endl; \
46  } catch (...) { \
47  RSP << "Unknown error" << endl; \
48  } \
49  return 0; \
50 }
51 
52 #endif // __FASTDO_HPP__
STL namespace.
Web功能的相关封装
图形库,提供简单的图片操作和绘图功能
Definition: eiengd.hpp:7
表达式引擎,提供一种简单的动态解释执行的功能
Definition: eienexpr.hpp:7
网络通信库
模板引擎
Definition: eientpl.hpp:9
数据库通用接口
Definition: eiendb_base.hpp:7
跨平台基础功能库
Definition: archives.hpp:7