NCBI C++ ToolKit
|
#include <corelib/request_status.hpp>
#include <corelib/ncbidiag.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/bioseq_info/record.hpp>
#include "pubseq_gateway_types.hpp"
#include <string>
#include <vector>
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
struct | SINSDCDecision |
Functions | |
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 | |
USING_IDBLOB_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_IDBLOB_SCOPE |
Definition at line 42 of file insdc_utils.hpp.
USING_NCBI_SCOPE |
Definition at line 41 of file insdc_utils.hpp.