32 #ifndef _HUGE_FILE_VALIDATOR_HPP_
33 #define _HUGE_FILE_VALIDATOR_HPP_
55 bool IsPatent =
false;
57 bool IsRefSeq =
false;
59 bool NoBioSource =
true;
60 bool NoPubsFound =
true;
61 bool NoCitSubsFound =
true;
62 bool CurrIsGI =
false;
63 bool CurrTpaAssembly =
false;
64 int JustTpaAssembly = 0;
65 int TpaAssemblyHist = 0;
66 int TpaNoHistYesGI = 0;
67 int CumulativeInferenceCount = 0;
68 bool NotJustLocalOrGeneral =
false;
69 bool HasRefSeq =
false;
73 unsigned int numMisplacedFeats {0};
82 NoCitSubsFound =
true;
84 CurrTpaAssembly =
false;
88 CumulativeInferenceCount = 0;
89 NotJustLocalOrGeneral =
false;
91 pubSerialNumbers.
clear();
92 conflictingSerialNumbers.
clear();
94 numMisplacedFeats = 0;
108 bool IsInBlob(
const CSeq_id&
id)
const;
110 void UpdateValidatorContext(
const TGlobalInfo& globalInfo,
113 void ReportGlobalErrors(
const TGlobalInfo& globalInfo,
119 const string& genbankSetId,
126 void x_ReportMissingPubs(
IValidError& errors)
const;
128 void x_ReportMissingCitSubs(
bool hasRefSeqAccession,
IValidError& errors)
const;
130 void x_ReportCollidingSerialNumbers(
const set<int>& collidingNumbers,
133 void x_ReportMissingBioSources(
IValidError& errors)
const;
135 void x_ReportConflictingBiomols(
IValidError& errors)
const;
139 string x_GetIdString()
const;
141 string x_GetHugeSetLabel()
const;
152 const string& genbankSetId,
156 const string& genbankSetId,
User-defined methods of the data storage class.
unique_ptr< string > m_pIdString
void PostprocessErrors(const TGlobalInfo &globalInfo, const string &genbankSetId, CRef< CValidError > &pErrors) const
edit::CHugeAsnReader TReader
TReader::TBioseqInfo TBioseqInfo
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define NCBI_VALIDATOR_EXPORT
unsigned int
A callback function used to compare two keys in a database.
CHugeAsnReader::TBioseqInfo TBioseqInfo
string g_GetIdString(const edit::CHugeAsnReader &reader)
void g_PostprocessErrors(const CHugeFileValidator::TGlobalInfo &globalInfo, const string &genbankSetId, CRef< CValidError > &pErrors)
string g_GetHugeSetIdString(const edit::CHugeAsnReader &reader)
set< int > pubSerialNumbers
set< CMolInfo::TBiomol > biomols
set< int > conflictingSerialNumbers
static CS_CONTEXT * context