NCBI C++ ToolKit
src
cgi
cgi_impl.hpp
Go to the documentation of this file.
Go to the SVN repository for this file.
1
/* $Id: cgi_impl.hpp 96606 2022-04-19 17:37:17Z sadyrovr $
2
* ===========================================================================
3
*
4
* PUBLIC DOMAIN NOTICE
5
* National Center for Biotechnology Information
6
*
7
* This software/database is a "United States Government Work" under the
8
* terms of the United States Copyright Act. It was written as part of
9
* the author's official duties as a United States Government employee and
10
* thus cannot be copyrighted. This software/database is freely available
11
* to the public for use. The National Library of Medicine and the U.S.
12
* Government have not placed any restriction on its use or reproduction.
13
*
14
* Although all reasonable efforts have been taken to ensure the accuracy
15
* and reliability of the software and data, the NLM and the U.S.
16
* Government do not and cannot warrant the performance or results that
17
* may be obtained by using this software or data. The NLM and the U.S.
18
* Government disclaim all warranties, express or implied, including
19
* warranties of performance, merchantability or fitness for any particular
20
* purpose.
21
*
22
* Please cite the author in any work or product based on this material.
23
*
24
* ===========================================================================
25
*
26
* Author: Denis Vakatov
27
*
28
*/
29
30
#include <
corelib/ncbi_url.hpp
>
31
#include <
cgi/ncbicgi.hpp
>
32
33
34
BEGIN_NCBI_SCOPE
35
36
37
class
NCBI_XCGI_EXPORT
CCgiEntries_Parser
:
public
CUrlArgs_Parser
38
{
39
public
:
40
CCgiEntries_Parser
(
TCgiEntries
*
entries
,
41
TCgiIndexes
* indexes,
42
CCgiRequest::TFlags
flags
);
43
protected
:
44
virtual
void
AddArgument
(
unsigned
int
position,
45
const
string
& name,
46
const
string
&
value
,
47
EArgType
arg_type);
48
private
:
49
static
CCgiRequest::TFlags
TFlagsToCCgiRequestTFlags
(
TFlags
flags
) {
return
~
flags
; }
50
static
TFlags
CCgiRequestTFlagsToTFlags
(
CCgiRequest::TFlags
flags
) {
return
~
flags
; }
51
52
TCgiEntries
*
m_Entries
;
53
TCgiIndexes
*
m_Indexes
;
54
};
55
56
57
END_NCBI_SCOPE
CCgiEntries_Parser
Definition:
cgi_impl.hpp:38
CCgiEntries_Parser::CCgiRequestTFlagsToTFlags
static TFlags CCgiRequestTFlagsToTFlags(CCgiRequest::TFlags flags)
Definition:
cgi_impl.hpp:50
CCgiEntries_Parser::TFlagsToCCgiRequestTFlags
static CCgiRequest::TFlags TFlagsToCCgiRequestTFlags(TFlags flags)
Definition:
cgi_impl.hpp:49
CCgiEntries_Parser::m_Indexes
TCgiIndexes * m_Indexes
Definition:
cgi_impl.hpp:53
CCgiEntries_Parser::m_Entries
TCgiEntries * m_Entries
Definition:
cgi_impl.hpp:52
CUrlArgs_Parser
CUrlArgs_Parser::
Definition:
ncbi_url.hpp:170
multimap< string, CCgiEntry, PNocase_Conditional >
ncbi_url.hpp
URL parsing classes.
flags
static uch flags
Definition:
ct_nlmzip_trees.cpp:342
TCgiIndexes
list< string > TCgiIndexes
Definition:
ncbicgi.hpp:641
CCgiRequest::TFlags
int TFlags
Startup initialization.
Definition:
ncbicgi.hpp:703
END_NCBI_SCOPE
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition:
ncbistl.hpp:103
BEGIN_NCBI_SCOPE
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition:
ncbistl.hpp:100
CUrlArgs_Parser::TFlags
int TFlags
An inverted subset of CCgiRequest::TFlags.
Definition:
ncbi_url.hpp:174
CUrlArgs_Parser::AddArgument
virtual void AddArgument(unsigned int position, const string &name, const string &value, EArgType arg_type=eArg_Index)=0
Process next query argument.
CUrlArgs_Parser::EArgType
EArgType
Query type flag.
Definition:
ncbi_url.hpp:203
NCBI_XCGI_EXPORT
#define NCBI_XCGI_EXPORT
Definition:
ncbi_export.h:1097
rapidjson::value
const GenericPointer< typename T::ValueType > T2 value
Definition:
pointer.h:1227
ncbicgi.hpp
entries
static wxAcceleratorEntry entries[3]
Definition:
wx_main_frame.cpp:170
Generated by
1.9.0
Modified on Fri Sep 20 14:58:12 2024 by modify_doxy.py rev. 669887