fastdo  0.6.16
fastdo-0.5.x.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 "fcgiplus.hpp"
18 #include "eiendb.hpp"
19 #include "eiennet.hpp"
20 #include "eienlog.hpp"
21 #include "eiengd.hpp"
22 #include "eienexpr.hpp"
23 #include "eientpl.hpp"
24 #include "fcgiserv.hpp"
25 #include <iostream>
26 using namespace std;
27 using namespace winux;
28 using namespace eiendb;
29 using namespace eiennet;
30 using namespace eienlog;
31 using namespace eiengd;
32 using namespace eienexpr;
33 using namespace eientpl;
34 using namespace fcgi;
35 
36 #define GET_RUNPARAM(type) ((type)__runParam)
37 
38 #define BEGIN_WEB_MAIN( RSP, REQ, APP ) \
39 FASTDO_API int WebMain( Response * __rsp, void * __runParam ) { \
40  Response & RSP = *__rsp; \
41  Request & REQ = __rsp->req; \
42  FcgiApp & APP = *REQ.fcgiApp; \
43  try {
44 
45 #define END_WEB_MAIN(RSP) \
46  } catch ( std::exception const & e ) { \
47  cout << e.what() << endl; \
48  } catch (...) { \
49  cout << "Unknown error" << endl; \
50  } \
51  return 0; \
52 }
53 
54 #endif // __FASTDO_HPP__
STL namespace.
日志功能,通过UDP协议高效的收发日志
Definition: eienlog.hpp:7
图形库,提供简单的图片操作和绘图功能
Definition: eiengd.hpp:7
表达式引擎,提供一种简单的动态解释执行的功能
Definition: eienexpr.hpp:7
网络通信库
模板引擎
Definition: eientpl.hpp:9
数据库通用接口
Definition: eiendb_base.hpp:7
FastCGI相关封装
Definition: fcgiplus.hpp:14
跨平台基础功能库
Definition: archives.hpp:7