#include <QueryParams.h>

Public Types | |
typedef std::pair< String, QueryParam::Pointer > | Param |
typedef std::vector< Param > | Params |
Public Member Functions | |
QueryParam::Pointer | get (const String &name) const |
returns query parameter by name More... | |
void | pack (Ipc::TypedMsgHdr &msg) const |
store params into msg More... | |
void | unpack (const Ipc::TypedMsgHdr &msg) |
Static Public Member Functions | |
static bool | Parse (const String &aParamsStr, QueryParams &aParams) |
parses the query string parameters More... | |
Private Member Functions | |
Params::const_iterator | find (const String &name) const |
find query parameter by name More... | |
Static Private Member Functions | |
static QueryParam::Pointer | CreateParam (QueryParam::Type aType) |
creates a parameter of the specified type More... | |
static bool | ParseParam (const String ¶mStr, Param ¶m) |
parses string like "param=value"; returns true if success More... | |
Private Attributes | |
Params | params |
Detailed Description
Definition at line 23 of file QueryParams.h.
Member Typedef Documentation
◆ Param
typedef std::pair<String, QueryParam::Pointer> Mgr::QueryParams::Param |
Definition at line 26 of file QueryParams.h.
◆ Params
typedef std::vector<Param> Mgr::QueryParams::Params |
Definition at line 27 of file QueryParams.h.
Member Function Documentation
◆ CreateParam()
|
staticprivate |
Definition at line 126 of file QueryParams.cc.
References NULL, Mgr::QueryParam::ptInt, Mgr::QueryParam::ptString, and TexcHere.
Referenced by unpack().
◆ find()
|
private |
Definition at line 57 of file QueryParams.cc.
References String::caseCmp(), Must, params, and String::size().
Referenced by get().
◆ get()
Mgr::QueryParam::Pointer Mgr::QueryParams::get | ( | const String & | name | ) | const |
Definition at line 19 of file QueryParams.cc.
References find(), Must, NULL, params, and String::size().
Referenced by Mgr::Inquirer::applyQueryParams().
◆ pack()
void Mgr::QueryParams::pack | ( | Ipc::TypedMsgHdr & | msg | ) | const |
Definition at line 27 of file QueryParams.cc.
References Must, NULL, params, Ipc::TypedMsgHdr::putInt(), and Ipc::TypedMsgHdr::putString().
Referenced by Mgr::ActionParams::pack().
◆ Parse()
|
static |
Definition at line 102 of file QueryParams.cc.
References i, len, params, ParseParam(), String::size(), and String::substr().
Referenced by CacheManager::ParseUrl().
◆ ParseParam()
Definition at line 69 of file QueryParams.cc.
References i, REG_EXTENDED, REG_ICASE, regcomp(), regexec(), regfree(), regmatch_t::rm_eo, regmatch_t::rm_so, String::substr(), and String::termedBuf().
Referenced by Parse().
◆ unpack()
void Mgr::QueryParams::unpack | ( | const Ipc::TypedMsgHdr & | msg | ) |
load params from msg
Definition at line 39 of file QueryParams.cc.
References CreateParam(), Ipc::TypedMsgHdr::getInt(), Ipc::TypedMsgHdr::getPod(), Ipc::TypedMsgHdr::getString(), Must, params, String::size(), and type.
Referenced by Mgr::ActionParams::ActionParams().
Member Data Documentation
◆ params
|
private |
The documentation for this class was generated from the following files:
- src/mgr/QueryParams.h
- src/mgr/QueryParams.cc