NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | List of all members
CRefArgs Class Reference

Search Toolkit Book for CRefArgs

CRefArgs:: More...

#include <cgi/ref_args.hpp>

+ Collaboration diagram for CRefArgs:

Public Member Functions

 CRefArgs (const string &definitions=kEmptyStr)
 Create referrer parser from a set of definitions. More...
 ~CRefArgs (void)
void AddDefinitions (const string &definitions)
 Add mappings between host mask and CGI argument name for query string. More...
void AddDefinitions (const string &host_mask, const string &arg_names)
string GetQueryString (const string &referrer) const
 Find query string in the referrer. More...
bool IsListedHost (const string &referrer) const
 Check if the host from the referrer string is listed in definitions. More...

Static Public Member Functions

static string GetDefaultDefinitions (void)
 Get default set of search engine definitions. More...

Private Types

typedef multimap< string, stringTHostMap

Private Attributes

THostMap m_HostMap

Detailed Description


Extract query string from HTTP referrers

Definition at line 54 of file ref_args.hpp.

The documentation for this class was generated from the following files:
Modified on Sun Sep 25 17:49:01 2016 by rev. 506947