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

Go to the SVN repository for this file.

1 #ifndef MISC_FIX_PUB__HPP
2 #define MISC_FIX_PUB__HPP
3 
4 /* $Id: fix_pub.hpp 92923 2021-02-23 14:44:58Z foleyjp $
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: Alexey Dobronadezhdin
30  *
31  * File Description:
32  * Code for fixing up publications.
33  *
34  * ===========================================================================
35  */
36 #include <corelib/ncbistd.hpp>
37 #include <corelib/ncbiobj.hpp>
38 
40 
41 class IMessageListener;
42 
44 
45 namespace edit {
46  class CAuthListValidator;
47 };
48 
49 class CPub;
50 class CPub_equiv;
51 class CCit_art;
52 
53 class NCBI_STD_DEPRECATED("Superseded by edit::CPubFix. Please use that class instead.")
55 {
56 public:
57 
58  CPubFixing(bool always_lookup, bool replace_cit, bool merge_ids, IMessageListener* err_log);
59  virtual ~CPubFixing();
60 
61  void FixPub(CPub& pub);
62  void FixPubEquiv(CPub_equiv& pub_equiv);
63  const edit::CAuthListValidator& GetValidator() const;
64 
66  static string GetErrorId(int code, int subcode);
67 
68 private:
72 
74  unique_ptr<edit::CAuthListValidator> mp_authlist_validator;
75 };
76 
79 
80 #endif // MISC_FIX_PUB__HPP
void FixPub(CPub &pub)
static CRef< CCit_art > FetchPubPmId(TEntrezId pmid)
bool m_always_lookup
Definition: fix_pub.hpp:69
CPubFixing(bool always_lookup, bool replace_cit, bool merge_ids, IMessageListener *err_log)
void FixPubEquiv(CPub_equiv &pub_equiv)
virtual ~CPubFixing()
bool m_merge_ids
Definition: fix_pub.hpp:71
static string GetErrorId(int code, int subcode)
const edit::CAuthListValidator & GetValidator() const
IMessageListener * m_err_log
Definition: fix_pub.hpp:73
bool m_replace_cit
Definition: fix_pub.hpp:70
unique_ptr< edit::CAuthListValidator > mp_authlist_validator
Definition: fix_pub.hpp:74
Definition: Pub.hpp:56
IMessageListener::
Include a standard set of the NCBI C++ Toolkit most basic headers.
SStrictId_Entrez::TId TEntrezId
TEntrezId type for entrez ids which require the same strictness as TGi.
Definition: ncbimisc.hpp:1041
#define NCBI_STD_DEPRECATED(message)
#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
Definition: fix_pub.hpp:45
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
Definition: inftrees.h:24
Modified on Fri Sep 20 14:58:09 2024 by modify_doxy.py rev. 669887