NCBI C++ ToolKit
reader_listener.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 
2 /* $Id: reader_listener.cpp 88274 2019-11-21 17:42:50Z ludwigf $
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  * Author: Justin Foley
28  *
29  * File Description:
30  * Objtools message listener classes - based on ILineErrorListener
31  *
32  */
33 
34 
35 
36 #include <ncbi_pch.hpp>
38 
41 
42 // ============================================================================
43 void
45  const CReaderProgress& progress)
46 // ============================================================================
47 {
48  CObjtoolsListener::PutProgress("progress", progress.Done(), progress.Total());
49 };
50 
53 
virtual void PutProgress(const string &message, const Uint8 iNumDone, const Uint8 iNumTotal)
Definition: listener.cpp:61
virtual int Done() const
Definition: message.hpp:107
virtual int Total() const
Definition: message.hpp:108
virtual void Progress(const CReaderProgress &)
#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
Modified on Fri Sep 20 14:58:00 2024 by modify_doxy.py rev. 669887