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

Go to the SVN repository for this file.

1 #ifndef ALGO_BLAST_API__VERSION__HPP
2 #define ALGO_BLAST_API__VERSION__HPP
3 
4 /* $Id: version.hpp 87307 2019-08-16 16:59:06Z vasilche $
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: Christiam Camacho
30  *
31  */
32 
33 /** @file version.hpp
34  * Declares singleton objects to store the version and reference for the BLAST
35  * engine.
36  */
37 
38 #include <corelib/version_api.hpp>
40 
41 /** @addtogroup AlgoBlast
42  *
43  * @{
44  */
45 
47 BEGIN_SCOPE(blast)
48 
49 /// Keeps track of the version of the BLAST engine in the NCBI C++ toolkit.
50 /// Used to perform run-time version checks
51 ///
52 /// For reference, please refer to http://apr.apache.org/versioning.html
53 class CBlastVersion : public CVersionInfo {
54 public:
59  virtual string Print(void) const {
60  return CVersionInfo::Print() + "+";
61  }
62 };
63 
64 
65 /// Class to keep track of the various BLAST references
67 {
68 public:
69  /// Enumerates the various BLAST publications
70  enum EPublication {
71  eGappedBlast = 0, ///< 1997 NAR paper
72  ePhiBlast, ///< 1998 NAR paper
73  eMegaBlast, ///< 2000 J Compt Biol paper
74  eCompBasedStats, ///< 2001 NAR paper
75  eCompAdjustedMatrices, ///< submitted for publication
76  eIndexedMegablast, ///< 2008 Bioinformatics on indexed megablast
77  eDeltaBlast, ///< 2012 Biology Direct on DeltaBLAST
78  eMaxPublications ///< Used as sentinel value
79  };
80 
81  /// Reference for requested publication
82  static string GetString(EPublication pub);
83  /// Reference for requested publication without umlaut
84  static string GetHTMLFreeString(EPublication pub);
85  /// Get Pubmed url for requested publication
86  static string GetPubmedUrl(EPublication pub);
87 
88 private:
89  /// Prohibit constructing this class
90  CReference();
91  /// Prohibit copy constructor
92  CReference(const CReference& rhs);
93  /// Prohibit assignment operator
95 };
96 
97 END_SCOPE(blast)
99 
100 /* @} */
101 
102 #endif /* ALGO_BLAST_API__VERSION__HPP */
Function calls to actually perform a BLAST search (high level).
const int kBlastPatchVersion
Patch version.
Definition: blast_engine.c:83
const int kBlastMinorVersion
Minor version.
Definition: blast_engine.c:82
const int kBlastMajorVersion
Major version.
Definition: blast_engine.c:81
#define NCBI_XBLAST_EXPORT
NULL operations for other cases.
Definition: blast_export.h:65
Keeps track of the version of the BLAST engine in the NCBI C++ toolkit.
Definition: version.hpp:53
Class to keep track of the various BLAST references.
Definition: version.hpp:67
CVersionInfo –.
CReference(const CReference &rhs)
Prohibit copy constructor.
EPublication
Enumerates the various BLAST publications.
Definition: version.hpp:70
virtual string Print(void) const
Print version information.
Definition: version.hpp:59
CReference & operator=(const CReference &rhs)
Prohibit assignment operator.
@ ePhiBlast
1998 NAR paper
Definition: version.hpp:72
@ eCompBasedStats
2001 NAR paper
Definition: version.hpp:74
@ eIndexedMegablast
2008 Bioinformatics on indexed megablast
Definition: version.hpp:76
@ eMegaBlast
2000 J Compt Biol paper
Definition: version.hpp:73
@ eDeltaBlast
2012 Biology Direct on DeltaBLAST
Definition: version.hpp:77
@ eCompAdjustedMatrices
submitted for publication
Definition: version.hpp:75
#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
virtual string Print(void) const
Print version information.
Definition: version.cpp:120
Modified on Wed May 01 14:17:54 2024 by modify_doxy.py rev. 669887