NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <corelib/ncbistr.hpp>
#include <objects/seqloc/Seq_id.hpp>
#include "insdc_utils.hpp"
#include "pubseq_gateway_utils.hpp"
Go to the source code of this file.
Go to the SVN repository for this file.
Functions | |
USING_SCOPE (objects) | |
bool | IsINSDCSeqIdType (CBioseqInfoRecord::TSeqIdType seq_id_type) |
string | GetBioseqRecordId (const CBioseqInfoRecord &record) |
SINSDCDecision | DecideINSDC (const vector< CBioseqInfoRecord > &records, CBioseqInfoRecord::TVersion version) |
Variables | |
USING_NCBI_SCOPE | |
SINSDCDecision DecideINSDC | ( | const vector< CBioseqInfoRecord > & | records, |
CBioseqInfoRecord::TVersion | version | ||
) |
Definition at line 81 of file insdc_utils.cpp.
References CRequestStatus::e200_Ok, CRequestStatus::e404_NotFound, CRequestStatus::e500_InternalServerError, GetBioseqRecordId(), IsINSDCSeqIdType(), and dtl::version.
Referenced by CPSGCache::x_LookupINSDCBioseqInfo(), CPSGS_AsyncBioseqInfoBase::x_OnBioseqInfoWithoutSeqIdType(), and CPSGS_AsyncResolveBase::x_OnBioseqInfoWithoutSeqIdType().
string GetBioseqRecordId | ( | const CBioseqInfoRecord & | record | ) |
Definition at line 57 of file insdc_utils.cpp.
References buf, CBioseqInfoRecord::GetAccession(), CBioseqInfoRecord::GetGI(), CBioseqInfoRecord::GetSeqIdType(), CBioseqInfoRecord::GetVersion(), len, and PSGToString().
Referenced by DecideINSDC().
bool IsINSDCSeqIdType | ( | CBioseqInfoRecord::TSeqIdType | seq_id_type | ) |
Definition at line 44 of file insdc_utils.cpp.
References CSeq_id_Base::e_Ddbj, CSeq_id_Base::e_Embl, CSeq_id_Base::e_Genbank, CSeq_id_Base::e_Tpd, CSeq_id_Base::e_Tpe, and CSeq_id_Base::e_Tpg.
Referenced by AreSeqIdTypesMatched(), DecideINSDC(), IPSGS_Processor::GetEffectiveSeqIdType(), IPSGS_Processor::ParseInputSeqId(), CPSGCache::x_LookupBioseqInfo(), CPSGS_AsyncBioseqInfoBase::x_OnBioseqInfo(), and CPSGS_AsyncResolveBase::x_OnBioseqInfo().
USING_SCOPE | ( | objects | ) |
USING_NCBI_SCOPE |
Definition at line 39 of file insdc_utils.cpp.