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

Go to the SVN repository for this file.

1 #ifndef MY_NCBI_CALLBACK__HPP
2 #define MY_NCBI_CALLBACK__HPP
3 
4 /* $Id: myncbi_callback.hpp 101029 2023-10-18 12:33:48Z satskyse $
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  * Authors: Sergey Satskiy
30  *
31  * File Description:
32  *
33  */
34 
35 #include <functional>
37 
38 
39 using TMyNCBIErrorCB = function<void(const string & cookie,
40  CRequestStatus::ECode status,
41  int code,
42  EDiagSev severity,
43  const string & message)>;
44 using TMyNCBIDataCB = function<void(const string & cookie,
46 
47 class IPSGS_Processor;
48 
49 
51 {
52  public:
55  const string & cookie);
56 
58  int code,
59  EDiagSev severity,
60  const string & message);
61 
62  private:
65  string m_Cookie;
66 
68 };
69 
70 
71 
73 {
74  public:
76  TMyNCBIDataCB my_ncbi_data_cb,
77  const string & cookie);
78 
80 
81  private:
84  string m_Cookie;
85 
87 };
88 
89 
90 #endif
91 
IPSGS_Processor * m_Processor
CMyNCBIDataCallback(IPSGS_Processor *processor, TMyNCBIDataCB my_ncbi_data_cb, const string &cookie)
TMyNCBIDataCB m_MyNCBIDataCB
void operator()(CPSG_MyNCBIRequest_WhoAmI::SUserInfo info)
psg_time_point_t m_MyNCBITiming
TMyNCBIErrorCB m_MyNCBIErrorCB
void operator()(CRequestStatus::ECode status, int code, EDiagSev severity, const string &message)
IPSGS_Processor * m_Processor
psg_time_point_t m_MyNCBITiming
CMyNCBIErrorCallback(IPSGS_Processor *processor, TMyNCBIErrorCB my_ncbi_error_cb, const string &cookie)
Interface class (and self-factory) for request processor objects that can retrieve data from a given ...
EDiagSev
Severity level for the posted diagnostics.
Definition: ncbidiag.hpp:650
static MDB_envinfo info
Definition: mdb_load.c:37
void my_ncbi_error_cb(void *user_data)
function< void(const string &cookie, CPSG_MyNCBIRequest_WhoAmI::SUserInfo info)> TMyNCBIDataCB
function< void(const string &cookie, CRequestStatus::ECode status, int code, EDiagSev severity, const string &message)> TMyNCBIErrorCB
psg_clock_t::time_point psg_time_point_t
Definition: inftrees.h:24
Modified on Tue May 28 05:49:32 2024 by modify_doxy.py rev. 669887