|
fastdo
0.6.16
|
CGI App类 更多...
#include <webx_CgiApp.hpp>


额外继承的成员函数 | |
Public 类型 继承自 eienwebx::App | |
| enum | ErrorCode { Err_Success, Err_DoFileNotFound, Err_WebMainNotFound, Err_InfiniteRecursion } |
| 执行do文件的错误码 更多... | |
Public 成员函数 继承自 eienwebx::App | |
| App () | |
| 构造函数0 更多... | |
| App (winux::ConfigureSettings const &settings, AppServerExternalData *externalData) | |
| 构造函数2 更多... | |
| virtual | ~App () |
| 析构函数 更多... | |
| bool | init (winux::ConfigureSettings const &settings, AppServerExternalData *externalData) |
| 初始化App对象 更多... | |
| virtual int | run (void *runParam) |
| 运行 更多... | |
| int | loadedDoFiles (winux::Mixed *arrDoFiles) const |
| 产品模式下,显示所有已经加载的do文件 更多... | |
| bool | unloadDoFile (winux::String const &doFullPath) |
| 卸载指定的do文件 更多... | |
| winux::DllLoader & | loadModule (winux::String const &modFullPath) |
| 加载一个模块,若已经加载则返回其引用. 更多... | |
| int | loadedModules (winux::Mixed *arrModules) const |
| 显示已经加载的模块 更多... | |
| bool | unloadModule (winux::String const &modFullPath) |
| 卸载一个模块 更多... | |
| App & | loadEnv () |
| 加载可执行文件的环境变量 更多... | |
| winux::String | dumpEnv () const |
| 倾泻出应用全部环境变量 更多... | |
| virtual ErrorCode | execWebMain (winux::String const &doFullPath, Response *rsp, void *runParam, int *retCode) |
| 执行生成页面内容的过程,载入绝对路径doFullPath的do文件,并调用其WebMain()。 更多... | |
| ErrorCode | importDoFile (winux::String const &doFullPath, Response *rsp, void *runParam, int *retCode, winux::String *errDetail) |
| import一个do文件,并把它的输出作为指定rsp的输出 更多... | |
| void * | getParam () const |
取得可能在do中由setParam()传递的参数 更多... | |
| template<typename _Ty > | |
| _Ty | getParam () const |
取得可能在do中由setParam()传递的参数 更多... | |
| void | setParam (void *param) |
| 设置可能在do中传递的参数 更多... | |
| void * | getRunParam () const |
取得从run()传进的参数 更多... | |
| template<typename _Ty > | |
| _Ty | getRunParam () const |
取得从run()传进的参数 更多... | |
| AppServerExternalData * | getExternalData () |
| 取得外部定义的相关数据 更多... | |
| void | setExternalData (AppServerExternalData *data) |
| 设置外部定义的相关数据 更多... | |
| SessionServer * | getSessServ () |
取得SessionServer * 更多... | |
| void | setSessServ (SessionServer *sessServ) |
设置SessionServer * 更多... | |
Public 属性 继承自 eienwebx::App | |
| winux::ConfigureSettings | settings |
| 配置设置对象 更多... | |
| struct eienwebx::App::AppConfig | appConfig |
| winux::StringStringMap | environVars |
| 可执行文件的environ环境变量 更多... | |
Protected 类型 继承自 eienwebx::App | |
| typedef int(* | PFN_WebMain) (Response *, void *) |
do文件中WebMain()的类型 更多... | |
| typedef winux::DllLoader::Function< PFN_WebMain > | WebMainFunc |
WebMain()函数对象类型 更多... | |
Protected 成员函数 继承自 eienwebx::App | |
| void | _clearModules () |
| 清空已加载的模块和WebMain函数 更多... | |
| ErrorCode | _importDoFileDevelopment (winux::String const &doFullPath, Response *rsp, void *runParam, int *retCode, winux::String *errDetail) |
| 开发模式下,导入do文件并运行 更多... | |
| ErrorCode | _importDoFileProduction (winux::String const &doFullPath, Response *rsp, void *runParam, int *retCode, winux::String *errDetail) |
| 产品模式下,导入do文件并运行 更多... | |
Protected 属性 继承自 eienwebx::App | |
| SessionServer * | _sessServ |
| 会话服务器 更多... | |
| void * | _runParam |
来自run()传递进来的参数 更多... | |
| void * | _param |
来自setParam()传递进来的参数 更多... | |
| AppServerExternalData * | _externalData |
创建App对象的程序传递进来的结构。由外部定义,定义是自定的,所在于全局名称空间::,可通过头文件定义结构再通过包含头文件去使用 更多... | |
| std::map< winux::String, winux::SimplePointer< winux::DllLoader > > | _loadedDlls |
| 已经加载的dll 更多... | |
| std::map< winux::String, WebMainFunc > | _loadedWebMainFuncs |
已经取得的WebMain()指针 更多... | |
| winux::Mutex | _mtxApp |
互斥量,保护App共用成员数据 更多... | |
| bool | _isSetDoDirAsWorkDir |
| 是否设置Do文件目录作为工作目录,多线程环境下应该设为false 更多... | |