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

Go to the SVN repository for this file.

1 #ifndef _VALIDATOR_CONTEXT_HPP_
2 #define _VALIDATOR_CONTEXT_HPP_
3 
4 /* $Id: validator_context.hpp 102426 2024-05-03 16:57:51Z kans $
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: Justin Foley
30  *
31  * File Description:
32  *
33  */
34 
35 #include <corelib/ncbistd.hpp>
36 #include <atomic>
37 #include <mutex>
38 
41 
42 class CTaxon3_reply;
43 class COrg_ref;
44 
45 BEGIN_SCOPE(validator)
46 
47 
49 {
51 
52  bool PreprocessHugeFile{false};
53  bool PostprocessHugeFile{false};
54  bool IsPatent{false};
55  bool IsPDB{false};
56  bool IsRefSeq{false};
57  string HugeSetId;
58  atomic_bool CheckECNumFileStatus{true};
59  bool NoBioSource{false};
60  bool NoPubsFound{false};
61  bool NoCitSubsFound{false};
62  bool CurrTpaAssembly{false};
63  int JustTpaAssembly{0};
64  int TpaAssemblyHist{0};
65  int TpaNoHistYesGI{0};
66  std::atomic<size_t> NumGenes{0};
67  std::atomic<size_t> NumGeneXrefs{0};
68  std::atomic<size_t> CumulativeInferenceCount{0};
74 
75  using FIdInBlob = function<bool(const CSeq_id& id)>;
76  FIdInBlob IsIdInBlob{nullptr};
77  using taxupdate_func_t = function<CRef<CTaxon3_reply>(const vector<CRef<COrg_ref>>& list)>;
79 };
80 
81 END_SCOPE(validator)
84 
85 #endif
CTaxon3_reply –.
Definition: set.hpp:45
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define bool
Definition: bool.h:34
#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_VALIDATOR_EXPORT
Definition: ncbi_export.h:913
Compare objects pointed to by (smart) pointer.
Definition: ncbiutil.hpp:67
once_flag ProteinHaveGeneralIDOnceFlag
function< bool(const CSeq_id &id)> FIdInBlob
function< CRef< CTaxon3_reply >(const vector< CRef< COrg_ref > > &list)> taxupdate_func_t
once_flag WgsSetInSeqSubmitOnceFlag
taxupdate_func_t m_taxon_update
Modified on Wed Jun 19 17:05:34 2024 by modify_doxy.py rev. 669887