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

Go to the SVN repository for this file.

1 #ifndef _INFLUENZA_SET_HPP_
2 #define _INFLUENZA_SET_HPP_
3 
4 /* $Id: influenza_set.hpp 101210 2023-11-16 14:19:11Z gotvyans $
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:
30  *
31  * File Description:
32  *
33  * ===========================================================================
34  */
35 
36 #include <corelib/ncbistd.hpp>
37 #include <objmgr/bioseq_handle.hpp>
38 
41 
43 public:
44  CInfluenzaSet(const string& key);
46 
47  static string GetKey(const COrg_ref& org);
48  bool OkToMakeSet() const;
49  void MakeSet();
50 
51  typedef enum {
52  eNotInfluenza = 0,
56  eInfluenzaD
57  } EInfluenzaType;
58 
59  static EInfluenzaType GetInfluenzaType(const string& taxname);
60  static size_t GetNumRequired(EInfluenzaType fluType);
61 
62  void AddBioseq(CBioseq_Handle bsh);
63 
64 protected:
65  typedef vector<CBioseq_Handle> TMembers;
67  const string m_Key;
69  size_t m_Required;
70 };
71 
72 bool NCBI_CLEANUP_EXPORT g_FindSegs(const CBioSource& src, size_t numRequired, set<size_t>& segsFound);
73 
76 
77 #endif // _INFLUENZA_SET_HPP_
CBioseq_Handle –.
TMembers m_Members
EInfluenzaType m_FluType
vector< CBioseq_Handle > TMembers
const string m_Key
CObject –.
Definition: ncbiobj.hpp:180
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_CLEANUP_EXPORT
Definition: ncbi_export.h:953
bool g_FindSegs(const CBioSource &src, size_t numRequired, set< size_t > &segsFound)
const struct ncbi::grid::netcache::search::fields::KEY key
Modified on Thu Feb 29 12:20:08 2024 by modify_doxy.py rev. 669887