NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <objects/seqfeat/Org_ref.hpp>
#include <objects/general/Object_id.hpp>
#include <objects/general/Dbtag.hpp>
#include "common_tax.inc"
Go to the source code of this file.
Go to the SVN repository for this file.
Macros | |
#define | MAKE_COMMON(o1, o2, o3, Field) if (o1.IsSet##Field() && o2.IsSet##Field() && NStr::Equal(o1.Get##Field(), o2.Get##Field())) o3.Set##Field(o1.Get##Field()); |
#define | NO_FLAG(a, f) (( a & f ) == 0) |
Typedefs | |
typedef map< string, CRef< COrg_ref >, PNocase > | TOrgrefMap |
Functions | |
bool | s_FindWholeWord (string taxname, string value) |
void | s_MakeCommonStringList (const list< string > &list1, const list< string > &list2, list< string > &list3) |
DEFINE_STATIC_FAST_MUTEX (s_OrgRefMapMutex) | |
static void | s_ProcessOrgRefMapLine (const CTempString &line) |
static void | s_InitializeOrgRefMap (void) |
Variables | |
static const char *const | s_taxonName = "taxon" |
static const string | s_nomenclature = "nomenclature=" |
static TOrgrefMap | s_OrgRefMap |
static vector< string > | s_CommonTaxnameList |
static bool | s_OrgRefMapInitialized = false |
#define MAKE_COMMON | ( | o1, | |
o2, | |||
o3, | |||
Field | |||
) | if (o1.IsSet##Field() && o2.IsSet##Field() && NStr::Equal(o1.Get##Field(), o2.Get##Field())) o3.Set##Field(o1.Get##Field()); |
Definition at line 261 of file Org_ref.cpp.
Definition at line 342 of file Org_ref.cpp.
DEFINE_STATIC_FAST_MUTEX | ( | s_OrgRefMapMutex | ) |
Definition at line 200 of file Org_ref.cpp.
References NStr::Find(), isalpha(), NStr::IsBlank(), and rapidjson::value.
Referenced by COrg_ref::IsSubspeciesValid(), and COrg_ref::IsVarietyValid().
|
static |
Definition at line 415 of file Org_ref.cpp.
References ILineReader::AtEOF(), CRef< C, Locker >::Empty(), file, g_FindDataFile(), i, LOG_POST, NCBI_CATCH, ILineReader::New(), s_OrgRefMapInitialized, and s_ProcessOrgRefMapLine().
Referenced by COrg_ref::GetTaxnameList(), and COrg_ref::TableLookup().
void s_MakeCommonStringList | ( | const list< string > & | list1, |
const list< string > & | list2, | ||
list< string > & | list3 | ||
) |
Definition at line 263 of file Org_ref.cpp.
References NStr::Equal(), and ITERATE.
Referenced by COrg_ref::MakeCommon().
|
static |
Definition at line 351 of file Org_ref.cpp.
References NStr::Equal(), NStr::IsBlank(), kEmptyStr, NON_CONST_ITERATE, s_CommonTaxnameList, s_OrgRefMap, COrg_ref_Base::SetCommon(), CDbtag_Base::SetDb(), COrg_ref_Base::SetDb(), COrg_ref_Base::SetOrgname(), CDbtag_Base::SetTag(), COrg_ref_Base::SetTaxname(), NStr::Split(), NStr::StringToNonNegativeInt(), t, and NStr::TruncateSpacesInPlace().
Referenced by s_InitializeOrgRefMap().
|
static |
Definition at line 344 of file Org_ref.cpp.
Referenced by COrg_ref::GetTaxnameList(), and s_ProcessOrgRefMapLine().
Definition at line 69 of file Org_ref.cpp.
|
static |
Definition at line 343 of file Org_ref.cpp.
Referenced by s_ProcessOrgRefMapLine(), and COrg_ref::TableLookup().
Definition at line 345 of file Org_ref.cpp.
Referenced by s_InitializeOrgRefMap().
Definition at line 68 of file Org_ref.cpp.
Referenced by COrg_ref::FilterOutParts(), COrg_ref::GetTaxId(), and COrg_ref::SetTaxId().