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

Go to the SVN repository for this file.

1  /* $Id: reader_message_handler.hpp 88415 2019-12-03 14:21:44Z ludwigf $
2  *
3  * ===========================================================================
4  *
5  * PUBLIC DOMAIN NOTICE
6  * National Center for Biotechnology Information
7  *
8  * This software/database is a "United States Government Work" under the
9  * terms of the United States Copyright Act. It was written as part of
10  * the author's official duties as a United States Government employee and
11  * thus cannot be copyrighted. This software/database is freely available
12  * to the public for use. The National Library of Medicine and the U.S.
13  * Government have not placed any restriction on its use or reproduction.
14  *
15  * Although all reasonable efforts have been taken to ensure the accuracy
16  * and reliability of the software and data, the NLM and the U.S.
17  * Government do not and cannot warrant the performance or results that
18  * may be obtained by using this software or data. The NLM and the U.S.
19  * Government disclaim all warranties, express or implied, including
20  * warranties of performance, merchantability or fitness for any particular
21  * purpose.
22  *
23  * Please cite the author in any work or product based on this material.
24  *
25  * ===========================================================================
26  *
27  * Authors: Frank Ludwig
28  *
29  */
30 
31 
32 #ifndef _READER_MESSAGE_HANDLER_HPP_
33 #define _READER_MESSAGE_HANDLER_HPP_
34 
35 #include <corelib/ncbistd.hpp>
37 
40 
41 class CReaderListener;
42 
43 // ============================================================================
45 // ============================================================================
46 {
47 public:
49  CReaderListener* pRL = nullptr) : mpRL(pRL) {};
50 
52 
53  void
54  Report(
55  const CReaderMessage&);
56 
57  void
58  Progress(
59  const CReaderProgress&);
60 
61  size_t LevelCount(
62  EDiagSev severity) const;
63 
64 protected:
66 };
67 
70 
71 #endif // _READER_MESSAGE_HANDLER_HPP_
CReaderMessageHandler(CReaderListener *pRL=nullptr)
Include a standard set of the NCBI C++ Toolkit most basic headers.
EDiagSev
Severity level for the posted diagnostics.
Definition: ncbidiag.hpp:650
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define END_SCOPE(ns)
End the previously defined scope.
Definition: ncbistl.hpp:75
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define BEGIN_SCOPE(ns)
Define a new scope.
Definition: ncbistl.hpp:72
#define NCBI_XOBJREAD_EXPORT
Definition: ncbi_export.h:1315
Modified on Thu Feb 29 12:18:49 2024 by modify_doxy.py rev. 669887