|
fastdo
0.6.16
|
变量类。可转为application/x-www-form-urlencoded类型字符串。可用于解析和设置get/post变量
更多...
#include <http_Vars.hpp>
Public 成员函数 | |
| Vars (winux::String const &varsData="") | |
| 构造函数1 更多... | |
| Vars (winux::Mixed const &vars) | |
| 构造函数2 更多... | |
| Vars (winux::Mixed *pVars, bool isNewAlloc=false) | |
| 构造函数3 引用外部的Mixed(Collection) 更多... | |
| Vars (Vars const &other) | |
| Vars & | operator= (Vars const &other) |
| Vars (Vars &&other) | |
| Vars & | operator= (Vars &&other) |
| virtual | ~Vars () |
| 析构函数 更多... | |
| void | clear () |
| 清空所有变量 更多... | |
| winux::String | toString (VarEncodeMode mode=vemAll) const |
| 转成urlencoded字符串。可以指定变量名和值是否编码 更多... | |
| winux::Mixed const & | operator[] (winux::String const &name) const |
| winux::Mixed & | operator[] (winux::String const &name) |
| bool | has (winux::String const &name) const |
| winux::Mixed & | createVar (winux::String const &k) |
| 创建一个变量并返回其引用 更多... | |
| Vars & | parse (winux::String const &varsData) |
| 从urlencoded数据解析变量,不清空原先变量 更多... | |
| template<typename _Ty > | |
| _Ty | get (winux::String const &name, _Ty defval=_Ty()) const |
| 取得指定类型的数据 更多... | |
| winux::Mixed & | getVars () |
| winux::Mixed const & | getVars () const |
| winux::Mixed & | exposeVars () |
| winux::Mixed const & | exposeVars () const |
变量类。可转为application/x-www-form-urlencoded类型字符串。可用于解析和设置get/post变量
在文件 http_Vars.hpp 第 16 行定义.
| http::Vars::Vars | ( | winux::String const & | varsData = "" | ) |
构造函数1
| varsData | 变量数据字符串。默认空串 |
| http::Vars::Vars | ( | winux::Mixed const & | vars | ) |
构造函数2
| vars | 变量数据(可以是Collection或字符串) |
| http::Vars::Vars | ( | winux::Mixed * | pVars, |
| bool | isNewAlloc = false |
||
| ) |
构造函数3 引用外部的Mixed(Collection)
| pVars | 指向一个Mixed(Collection) |
| isNewAlloc | 指示是否为新建的Mixed。如果是,析构时会删除,否则不会 |
| http::Vars::Vars | ( | Vars const & | other | ) |
| http::Vars::Vars | ( | Vars && | other | ) |
|
virtual |
析构函数
| void http::Vars::clear | ( | ) |
清空所有变量
| winux::String http::Vars::toString | ( | VarEncodeMode | mode = vemAll | ) | const |
转成urlencoded字符串。可以指定变量名和值是否编码
|
inline |
在文件 http_Vars.hpp 第 50 行定义.
|
inline |
在文件 http_Vars.hpp 第 51 行定义.
|
inline |
在文件 http_Vars.hpp 第 53 行定义.
| winux::Mixed& http::Vars::createVar | ( | winux::String const & | k | ) |
创建一个变量并返回其引用
| Vars& http::Vars::parse | ( | winux::String const & | varsData | ) |
从urlencoded数据解析变量,不清空原先变量
|
inline |
|
inline |
在文件 http_Vars.hpp 第 70 行定义.
|
inline |
在文件 http_Vars.hpp 第 71 行定义.
|
inline |
在文件 http_Vars.hpp 第 73 行定义.
|
inline |
在文件 http_Vars.hpp 第 74 行定义.