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

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS_EDIT___CITSUB_UPDATER__HPP
2 #define GUI_WIDGETS_EDIT___CITSUB_UPDATER__HPP
3 /* $Id: citsub_updater.hpp 41956 2018-11-20 18:42:42Z asztalos $
4  * ===========================================================================
5  *
6  * PUBLIC DOMAIN NOTICE
7  * National Center for Biotechnology Information
8  *
9  * This software/database is a "United States Government Work" under the
10  * terms of the United States Copyright Act. It was written as part of
11  * the author's official duties as a United States Government employee and
12  * thus cannot be copyrighted. This software/database is freely available
13  * to the public for use. The National Library of Medicine and the U.S.
14  * Government have not placed any restriction on its use or reproduction.
15  *
16  * Although all reasonable efforts have been taken to ensure the accuracy
17  * and reliability of the software and data, the NLM and the U.S.
18  * Government do not and cannot warrant the performance or results that
19  * may be obtained by using this software or data. The NLM and the U.S.
20  * Government disclaim all warranties, express or implied, including
21  * warranties of performance, merchantability or fitness for any particular
22  * purpose.
23  *
24  * Please cite the author in any work or product based on this material.
25  *
26  * ===========================================================================
27  *
28  * Authors: Andrea Asztalos
29  */
30 
31 
32 #include <corelib/ncbistd.hpp>
33 #include <objmgr/bioseq_handle.hpp>
34 #include <gui/gui_export.h>
35 
38  class CScope;
39  class CSeqdesc;
41 
42 
44 {
45 public:
46  /// Generates/Creates a Cit-sub publication that will be added to the sequence
47  ///
48  ///@param[in] bsh
49  /// Sequence that will be receiving a Cit-sub publication
50  ///@param[out] message
51  /// Information presented to the user
52  ///@param[out] changedSeqdesc
53  /// If it's not null, it points to an existing publication that have to be removed before the new one is added
54  ///@return
55  /// A publication descriptor that will be added to the sequence
56 
57  static CRef<objects::CSeqdesc> s_GetCitSubForUpdatedSequence(const objects::CBioseq_Handle& bsh,
58  string& message, CConstRef<objects::CSeqdesc>& changedSeqdesc, objects::CSeq_entry_Handle& seh);
59 
60  static CRef<objects::CSeqdesc> s_GetCitSubForTrimmedSequence(const objects::CBioseq_Handle& bsh,
61  string& message, CConstRef<objects::CSeqdesc>& changedSeqdesc, objects::CSeq_entry_Handle& seh);
62 
63  static const char* sm_SubmitterUpdateText;
64  static const char* sm_NoEarlierCitSub;
65  static const char* sm_ChangeExistingCitSub;
66  static const char* sm_ExistingCitSub;
67  static const char* sm_AddedCitSub;
68  static const char* sm_DifferentCitSub;
69 
70  static const char* sm_TrimmedText;
71 private:
72  static CRef<objects::CSeqdesc> sx_GetCitSubForSequence(const objects::CBioseq_Handle& bsh,
73  string& message, CConstRef<objects::CSeqdesc>& changedSeqdesc, objects::CSeq_entry_Handle& seh, const CTempString& text);
74 };
75 
77 
78 #endif
79  // GUI_WIDGETS_EDIT___CITSUB_UPDATER__HPP
static const char * sm_SubmitterUpdateText
static const char * sm_ExistingCitSub
static const char * sm_AddedCitSub
static const char * sm_ChangeExistingCitSub
static const char * sm_NoEarlierCitSub
static const char * sm_TrimmedText
static const char * sm_DifferentCitSub
CScope –.
Definition: scope.hpp:92
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
Definition: tempstr.hpp:65
Include a standard set of the NCBI C++ Toolkit most basic headers.
#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_GUIWIDGETS_EDIT_EXPORT
Definition: gui_export.h:526
Defines to provide correct exporting from DLLs in Windows.
static void text(MDB_val *v)
Definition: mdb_dump.c:62
Modified on Tue Apr 30 06:38:30 2024 by modify_doxy.py rev. 669887