NCBI C++ ToolKit
cgiapp_cached.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef CGI___CGIAPP_CACHED__HPP
2 #define CGI___CGIAPP_CACHED__HPP
3 
4 /* $Id: cgiapp_cached.hpp 94883 2021-09-20 16:20:29Z sadyrovr $
5 * ===========================================================================
6 *
7 * PUBLIC DOMAIN NOTICE
8 * National Center for Biotechnology Information
9 *
10 * This software/database is a "United States Government Work" under the
11 * terms of the United States Copyright Act. It was written as part of
12 * the author's official duties as a United States Government employee and
13 * thus cannot be copyrighted. This software/database is freely available
14 * to the public for use. The National Library of Medicine and the U.S.
15 * Government have not placed any restriction on its use or reproduction.
16 *
17 * Although all reasonable efforts have been taken to ensure the accuracy
18 * and reliability of the software and data, the NLM and the U.S.
19 * Government do not and cannot warrant the performance or results that
20 * may be obtained by using this software or data. The NLM and the U.S.
21 * Government disclaim all warranties, express or implied, including
22 * warranties of performance, merchantability or fitness for any particular
23 * purpose.
24 *
25 * Please cite the author in any work or product based on this material.
26 *
27 * ===========================================================================
28 *
29 * Author: Maxim Didenko
30 *
31 * File Description:
32 * Base class for (Fast-)CGI applications
33 */
34 
35 #include <cgi/cgiapp.hpp>
37 
38 /** @addtogroup CGIBase
39  *
40  * @{
41  */
42 
43 
45 
46 
47 /////////////////////////////////////////////////////////////////////////////
48 // CCgiApplication::
49 //
50 
52 {
53 
54 public:
56  ~CCgiApplicationCached(void);
57 
58  void Init(void) override;
59 
60 protected:
61  ICache* GetCacheStorage() const override;
62 
63 private:
64 
67 
68  // forbidden
71 };
72 
73 
74 /////////////////////////////////////////////////////////////////////////////
75 // Environment
76 NCBI_PARAM_DECL(string, CGI, ResultCacheSectionName);
77 typedef NCBI_PARAM_TYPE(CGI, ResultCacheSectionName) TCGI_ResultCacheSectionName;
78 
80 
81 
82 /* @} */
83 
84 
85 #endif // CGI___CGIAPP_CACHED__HPP
definition of a Culling tree
Definition: ncbi_tree.hpp:100
BLOB cache read/write/maintenance interface.
Definition: icache.hpp:64
virtual void Init(void)
This method is called on the CGI application initialization – before starting to process a HTTP reque...
Definition: cgiapp.cpp:864
const TPluginManagerParamTree * m_CacheTreeParams
typedef NCBI_PARAM_TYPE(CGI, ResultCacheSectionName) TCGI_ResultCacheSectionName
virtual ICache * GetCacheStorage(void) const
Definition: cgiapp.cpp:1381
CCgiApplicationCached & operator=(const CCgiApplicationCached &)
NCBI_PARAM_DECL(string, CGI, ResultCacheSectionName)
CCgiApplicationCached(const CCgiApplicationCached &)
CGI
Definition: cgiapp.hpp:685
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define NCBI_XCGI_EXPORT
Definition: ncbi_export.h:1097
Plugin manager (using class factory paradigm).
Modified on Mon Dec 11 02:40:53 2023 by modify_doxy.py rev. 669887