| 
    fastdo
    0.5.12
    
   | 
 
FCGI程序类,代表整个FCGI程序 更多...
#include <fcgiplus.hpp>

类 | |
| struct | ConfigParams | 
| 配置参数  更多... | |
Public 类型 | |
| enum | ErrorCode { Err_Success, Err_DoFileNotFound, Err_WebMainNotFound, Err_InfiniteRecursion } | 
| 执行do文件的错误码  更多... | |
Public 成员函数 | |
| FcgiApp (winux::Configure &conf, struct FcgiServerData *servData=NULL) | |
| 构造函数,初始化操作  更多... | |
| ~FcgiApp () | |
| int | run (void *runParam) | 
| 运行处理  更多... | |
| void * | getParam () const | 
| 取得do传递的参数  更多... | |
| template<typename _Ty > | |
| _Ty | getParam () const | 
| void | setParam (void *param) | 
| 设置do传递参数  更多... | |
| void * | getRunParam () const | 
| 取得run()传递的参数  更多... | |
| template<typename _Ty > | |
| _Ty | getRunParam () const | 
| struct FcgiServerData * | getServerData () | 
| 取得服务器相关数据  更多... | |
| void | setServerData (struct FcgiServerData *data) | 
| SessionServer * | getSessServ () | 
| 取得/设置SessionServer  更多... | |
| void | setSessServ (SessionServer *sessServ) | 
| virtual ErrorCode | execWebMain (Response *rsp, void *runParam, int *retCode) | 
| 执行生成页面内容的过程  更多... | |
| ErrorCode | importDoFile (winux::String const &doFile, Response *rsp, void *runParam, int *retCode, winux::String *errDetail) | 
| import一个do文件,并把它的输出作为指定rsp的输出  更多... | |
| int | loadedDoFiles (winux::Mixed *arrDoFiles) const | 
| 产品模式下,显示所有已经加载的do文件  更多... | |
| bool | unloadDoFile (winux::String const &doFullPath) | 
| 卸载指定的do文件,如果是当前页面则不会释放  更多... | |
| winux::DllLoader & | loadModule (winux::String const &modFile) | 
| 加载一个模块,若已经加载则返回其引用.  更多... | |
| int | loadedModules (winux::Mixed *arrModules) const | 
| 显示已经加载的模块  更多... | |
| bool | unloadModule (winux::String const &modFile) | 
| 卸载一个模块  更多... | |
Public 属性 | |
| Request | request | 
| 请求  更多... | |
| winux::Configure & | config | 
| 配置  更多... | |
| struct fcgi::FcgiApp::ConfigParams | configParams | 
友元 | |
| class | Request | 
| class | Response | 
FCGI程序类,代表整个FCGI程序
在文件 fcgiplus.hpp 第 297 行定义.
执行do文件的错误码
| 枚举值 | |
|---|---|
| Err_Success | |
| Err_DoFileNotFound | |
| Err_WebMainNotFound | |
| Err_InfiniteRecursion | |
在文件 fcgiplus.hpp 第 333 行定义.
| fcgi::FcgiApp::FcgiApp | ( | winux::Configure & | conf, | 
| struct FcgiServerData * | servData = NULL  | 
        ||
| ) | 
构造函数,初始化操作
| conf | 配置对象 | 
| servData | fcgiserv传入的数据 | 
| fcgi::FcgiApp::~FcgiApp | ( | ) | 
      
  | 
  virtual | 
执行生成页面内容的过程
默认将以SCRIPT_FILENAME载入动态模块的方式运行处理
      
  | 
  inline | 
取得do传递的参数
在文件 fcgiplus.hpp 第 312 行定义.
      
  | 
  inline | 
在文件 fcgiplus.hpp 第 314 行定义.
      
  | 
  inline | 
取得run()传递的参数
在文件 fcgiplus.hpp 第 320 行定义.
      
  | 
  inline | 
在文件 fcgiplus.hpp 第 322 行定义.
      
  | 
  inline | 
取得服务器相关数据
在文件 fcgiplus.hpp 第 325 行定义.
      
  | 
  inline | 
取得/设置SessionServer
在文件 fcgiplus.hpp 第 329 行定义.
| ErrorCode fcgi::FcgiApp::importDoFile | ( | winux::String const & | doFile, | 
| Response * | rsp, | ||
| void * | runParam, | ||
| int * | retCode, | ||
| winux::String * | errDetail | ||
| ) | 
import一个do文件,并把它的输出作为指定rsp的输出
| doFile | do文件路径 | 
| rsp | 指示输出到的Response对象 | 
| retCode | 表示导入do的WebMain()返回代码,为NULL则忽略此值 | 
| errDetail | 载入do的详细错误信息 | 
| int fcgi::FcgiApp::loadedDoFiles | ( | winux::Mixed * | arrDoFiles | ) | const | 
产品模式下,显示所有已经加载的do文件
| int fcgi::FcgiApp::loadedModules | ( | winux::Mixed * | arrModules | ) | const | 
显示已经加载的模块
| winux::DllLoader& fcgi::FcgiApp::loadModule | ( | winux::String const & | modFile | ) | 
加载一个模块,若已经加载则返回其引用.
| int fcgi::FcgiApp::run | ( | void * | runParam | ) | 
运行处理
      
  | 
  inline | 
设置do传递参数
在文件 fcgiplus.hpp 第 317 行定义.
      
  | 
  inline | 
在文件 fcgiplus.hpp 第 326 行定义.
      
  | 
  inline | 
在文件 fcgiplus.hpp 第 330 行定义.
| bool fcgi::FcgiApp::unloadDoFile | ( | winux::String const & | doFullPath | ) | 
卸载指定的do文件,如果是当前页面则不会释放
| bool fcgi::FcgiApp::unloadModule | ( | winux::String const & | modFile | ) | 
卸载一个模块
      
  | 
  friend | 
在文件 fcgiplus.hpp 第 413 行定义.
      
  | 
  friend | 
在文件 fcgiplus.hpp 第 414 行定义.
| winux::Configure& fcgi::FcgiApp::config | 
配置
在文件 fcgiplus.hpp 第 375 行定义.
| struct fcgi::FcgiApp::ConfigParams fcgi::FcgiApp::configParams | 
| Request fcgi::FcgiApp::request | 
请求
在文件 fcgiplus.hpp 第 372 行定义.