NCBI C++ ToolKit
|
Search Toolkit Book for CUrlArgs_Parser
#include <corelib/ncbi_url.hpp>
Public Types | |
enum | Flags { fSemicolonIsArgDelimiter = (1 << 11) , fEnableParsingAsIndex = (1 << 14) } |
typedef int | TFlags |
An inverted subset of CCgiRequest::TFlags. More... | |
Public Member Functions | |
CUrlArgs_Parser (TFlags flags=0) | |
virtual | ~CUrlArgs_Parser (void) |
void | SetQueryString (const string &query, NStr::EUrlEncode encode) |
Parse query string, call AddArgument() to store each value. More... | |
void | SetQueryString (const string &query, const IUrlEncoder *encoder=0) |
Parse query string, call AddArgument() to store each value. More... | |
void | SetSemicolonIsNotArgDelimiter (bool enable=true) |
Treat semicolon as query string argument separator. More... | |
Protected Types | |
enum | EArgType { eArg_Value , eArg_Index } |
Query type flag. More... | |
Protected Member Functions | |
virtual void | AddArgument (unsigned int position, const string &name, const string &value, EArgType arg_type=eArg_Index)=0 |
Process next query argument. More... | |
Protected Attributes | |
TFlags | m_Flags |
Private Member Functions | |
void | x_SetIndexString (const string &query, const IUrlEncoder &encoder) |