fastdo  0.6.8
http::Vars类 参考

解析和设置get/post变量 更多...

#include <http_misc.hpp>

Public 成员函数

 Vars (winux::AnsiString const &varsData="")
 
 Vars (winux::Mixed const &vars)
 
void clear ()
 
winux::String toString () const
 
winux::Mixed const & operator[] (winux::String const &name) const
 
winux::Mixedoperator[] (winux::String const &name)
 
bool has (winux::String const &name) const
 
Varsparse (winux::AnsiString const &varsData)
 从urlencoded数据解析变量,不清空原先变量 更多...
 
template<typename _Ty >
_Ty get (winux::String const &name, _Ty defval=_Ty()) const
 取得指定类型的数据 更多...
 
winux::MixedgetVars ()
 

详细描述

解析和设置get/post变量

在文件 http_misc.hpp286 行定义.

构造及析构函数说明

http::Vars::Vars ( winux::AnsiString const &  varsData = "")
http::Vars::Vars ( winux::Mixed const &  vars)

成员函数说明

void http::Vars::clear ( )
template<typename _Ty >
_Ty http::Vars::get ( winux::String const &  name,
_Ty  defval = _Ty() 
) const
inline

取得指定类型的数据

如果没有则返回指定的默认值

在文件 http_misc.hpp304 行定义.

winux::Mixed& http::Vars::getVars ( )
inline

在文件 http_misc.hpp309 行定义.

bool http::Vars::has ( winux::String const &  name) const
winux::Mixed const& http::Vars::operator[] ( winux::String const &  name) const
winux::Mixed& http::Vars::operator[] ( winux::String const &  name)
Vars& http::Vars::parse ( winux::AnsiString const &  varsData)

从urlencoded数据解析变量,不清空原先变量

winux::String http::Vars::toString ( ) const

该类的文档由以下文件生成: