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

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS_EDIT___UTILITIES__HPP
2 #define GUI_WIDGETS_EDIT___UTILITIES__HPP
3 
4 /* $Id: utilities.hpp 47067 2022-06-29 15:20:07Z asztalos $
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: Colleen Bollin
30  */
31 
32 #include <corelib/ncbistd.hpp>
33 #include <gui/gui_export.h>
34 #include <objects/seq/Pubdesc.hpp>
35 #include <objects/pub/Pub.hpp>
36 #include <objects/seq/Seqdesc.hpp>
37 
39 NCBI_GUIWIDGETS_EDIT_EXPORT string GetAdjustedRnaName(const string& orig_rna_name);
41 
43  (const objects::CPubdesc& pd,
44  vector<TEntrezId>& pmids,
45  vector<TEntrezId>& muids,
46  vector<int>& serials,
47  vector<string>& published_labels,
48  vector<string>& unpublished_labels);
49 
50 NCBI_GUIWIDGETS_EDIT_EXPORT string GetPubdescLabel(const objects::CPubdesc& pd);
51 NCBI_GUIWIDGETS_EDIT_EXPORT string GetDocSumLabel(const objects::CPubdesc& pd);
52 NCBI_GUIWIDGETS_EDIT_EXPORT string GetStringFromTitle(const objects::CTitle::C_E& title);
53 NCBI_GUIWIDGETS_EDIT_EXPORT void UpdateTitle(objects::CTitle::C_E& title, const string& val);
54 
55 
56 // interface for descriptor panels
58 {
59 public:
60  virtual void ChangeSeqdesc(const objects::CSeqdesc& desc) = 0;
61  virtual void UpdateSeqdesc(objects::CSeqdesc& desc) = 0;
62  virtual void UpdateTaxname() {};
63 };
64 
66 
67 #endif // GUI_WIDGETS_EDIT___UTILITIES__HPP
virtual void UpdateSeqdesc(objects::CSeqdesc &desc)=0
virtual void UpdateTaxname()
Definition: utilities.hpp:62
virtual void ChangeSeqdesc(const objects::CSeqdesc &desc)=0
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 END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define NCBI_GUIWIDGETS_EDIT_EXPORT
Definition: gui_export.h:526
string GetAdjustedRnaName(const string &orig_rna_name)
Definition: utilities.cpp:70
void GetPubdescLabels(const objects::CPubdesc &pd, vector< TEntrezId > &pmids, vector< TEntrezId > &muids, vector< int > &serials, vector< string > &published_labels, vector< string > &unpublished_labels)
CRef< objects::CPubdesc > GetPubdescFromEntrezById(TEntrezId id)
Definition: utilities.cpp:78
string GetDocSumLabel(const objects::CPubdesc &pd)
string GetPubdescLabel(const objects::CPubdesc &pd)
void UpdateTitle(objects::CTitle::C_E &title, const string &val)
Definition: utilities.cpp:322
string GetStringFromTitle(const objects::CTitle::C_E &title)
Definition: utilities.cpp:279
Defines to provide correct exporting from DLLs in Windows.
Modified on Sat May 25 14:21:56 2024 by modify_doxy.py rev. 669887