fastdo  0.6.16
webx_Request.hpp
浏览该文件的文档.
1 #pragma once
2 
3 namespace eienwebx
4 {
5 
6 class App;
7 
9 class EIENWEBX_DLL Request : virtual public http::Request
10 {
11 public:
12  Request( App * app );
13 
15  virtual winux::String dumpEnv() const override;
16 
18  template < typename _AppClass >
19  _AppClass * getApp() const { return static_cast<_AppClass*>(app); }
20 
23  {
24  return winux::RealPathEx( path, this->doDirPath );
25  }
26 
28  App * app;
33 
34 protected:
37 
38 private:
39  friend class App;
41 };
42 
43 
44 } // namespace eienwebx
#define EIENWEBX_DLL
_AppClass * getApp() const
返回指定类型的App对象指针
XString< tchar > String
Definition: utilities.hpp:261
Web功能的相关封装
#define DISABLE_OBJECT_COPY(clsname)
Definition: utilities.hpp:85
App * app
App对象指针
HTTP请求
Definition: http_Request.hpp:8
App类,内部有Do文件载入/执行功能
Definition: webx_App.hpp:13
winux::String realPath(winux::String const &path)
根据当前do文件目录路径计算绝对路径
String RealPathEx(String const &path, String const &workDirAbsPath)
根据指定工作目录计算绝对路径,不会检查存在性
winux::String doDirPath
当前do文件目录路径
代表一个请求
Definition: webx_Request.hpp:9
winux::String doFullPath
当前do文件全路径
winux::StringArray _importDoPaths
防止一个请求内App::importDoFile()无穷递归导入
XStringArray< tchar > StringArray
Definition: utilities.hpp:272