NCBI C++ ToolKit
Functions | Variables
pubseq_gateway_convert_utils.hpp File Reference
#include <connect/services/json_over_uttp.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/blob_record.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/bioseq_info/record.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/nannot/record.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/si2csi/record.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/request.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/nannot_task/fetch.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/blob_task/load_blob.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/blob_task/fetch_split_history.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/status_history/get_public_comment.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/acc_ver_hist/record.hpp>
#include <objtools/pubseq_gateway/impl/cassandra/acc_ver_hist/tasks.hpp>
#include <objtools/pubseq_gateway/impl/ipg/fetch_ipg_report.hpp>
#include "pubseq_gateway_types.hpp"
#include "pubseq_gateway_utils.hpp"
#include <string>
+ Include dependency graph for pubseq_gateway_convert_utils.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

string ToBioseqProtobuf (const CBioseqInfoRecord &bioseq_info)
 
string ToJsonString (const CBioseqInfoRecord &bioseq_info, SPSGS_ResolveRequest::TPSGS_BioseqIncludeData include_data_flags, const string &custom_blob_id="")
 
string ToJsonString (const CBlobRecord &blob)
 
string ToJsonString (const CNAnnotRecord &annot_record, int32_t sat, const string &custom_blob_id="")
 
string ToJsonString (const map< string, int > &per_na_results)
 
string ToJsonString (const SAccVerHistRec &history_record)
 
string ToJsonString (const CBioseqInfoFetchRequest &request)
 
string ToJsonString (const CSi2CsiFetchRequest &request)
 
string ToJsonString (const CBlobFetchRequest &request)
 
string ToJsonString (const CSI2CSIRecord &record)
 
string ToJsonString (const CCassBlobTaskLoadBlob &request)
 
string ToJsonString (const CCassBlobTaskFetchSplitHistory &request)
 
string ToJsonString (const CCassNAnnotTaskFetch &request)
 
string ToJsonString (const CCassStatusHistoryTaskGetPublicComment &request)
 
string ToJsonString (const CCassAccVerHistoryTaskFetch &request)
 
string ToJsonString (const CPubseqGatewayFetchIpgReportRequest &request)
 
string ToJsonString (const CIpgStorageReportEntry &ipg_entry)
 

Variables

 USING_NCBI_SCOPE
 
 USING_IDBLOB_SCOPE
 

Function Documentation

◆ ToBioseqProtobuf()

string ToBioseqProtobuf ( const CBioseqInfoRecord bioseq_info)

◆ ToJsonString() [1/16]

string ToJsonString ( const CBioseqInfoFetchRequest request)

◆ ToJsonString() [2/16]

string ToJsonString ( const CBioseqInfoRecord bioseq_info,
SPSGS_ResolveRequest::TPSGS_BioseqIncludeData  include_data_flags,
const string custom_blob_id = "" 
)

Definition at line 156 of file pubseq_gateway_convert_utils.cpp.

References buf, SPSGS_ResolveRequest::fPSGS_BlobId, SPSGS_ResolveRequest::fPSGS_CanonicalId, SPSGS_ResolveRequest::fPSGS_DateChanged, SPSGS_ResolveRequest::fPSGS_Gi, SPSGS_ResolveRequest::fPSGS_Hash, SPSGS_ResolveRequest::fPSGS_Length, SPSGS_ResolveRequest::fPSGS_MoleculeType, SPSGS_ResolveRequest::fPSGS_Name, SPSGS_ResolveRequest::fPSGS_SeqIds, SPSGS_ResolveRequest::fPSGS_SeqState, SPSGS_ResolveRequest::fPSGS_State, SPSGS_ResolveRequest::fPSGS_TaxId, CBioseqInfoRecord::GetAccession(), CBioseqInfoRecord::GetDateChanged(), CBioseqInfoRecord::GetGI(), CBioseqInfoRecord::GetHash(), CBioseqInfoRecord::GetLength(), CBioseqInfoRecord::GetMol(), CBioseqInfoRecord::GetName(), CBioseqInfoRecord::GetSat(), CBioseqInfoRecord::GetSatKey(), CBioseqInfoRecord::GetSeqIds(), CBioseqInfoRecord::GetSeqIdType(), CBioseqInfoRecord::GetSeqState(), CBioseqInfoRecord::GetState(), CBioseqInfoRecord::GetTaxId(), CBioseqInfoRecord::GetVersion(), NStr::JsonEncode(), kAccessionItem, kBlobIdItem, kDateChangedItem, kGiItem, kHashItem, kLengthItem, kMolItem, kNameItem, kSatItem, kSatKeyItem, kSep, kSeqIdsItem, kSeqIdTypeItem, kSeqStateItem, kStateItem, kTaxIdItem, kVersionItem, len, and PSGToString().

Referenced by CPSGS_TSEChunkProcessor::OnGetBlobProp(), CBlobPropCallback::operator()(), CPSGS_OSGResolveBase::SendBioseqInfo(), CPSGS_Dispatcher::x_ConcludeIDGetNARequestStatus(), CPSGS_GetProcessor::x_GetBlobFinalStage(), CPSGS_IPGResolveProcessor::x_InitiateIPGFetch(), CPSGCache::x_LookupBioseqInfo(), CPSGCache::x_LookupBlobProp(), CPSGCache::x_LookupINSDCBioseqInfo(), CPSGCache::x_LookupSi2csi(), CPSGS_AsyncBioseqInfoBase::x_MakeRequest(), CPSGS_AccessionVersionHistoryProcessor::x_OnAccVerHistData(), CPSGS_AsyncBioseqInfoBase::x_OnBioseqInfo(), CPSGS_AsyncResolveBase::x_OnBioseqInfo(), CPSGS_AsyncBioseqInfoBase::x_OnBioseqInfoWithoutSeqIdType(), CPSGS_AsyncResolveBase::x_OnBioseqInfoWithoutSeqIdType(), CPSGS_IPGResolveProcessor::x_OnIPGResolveData(), CPSGS_AccessionVersionHistoryProcessor::x_OnSeqIdResolveFinished(), CPSGS_AnnotProcessor::x_OnSeqIdResolveFinished(), CPSGS_AsyncResolveBase::x_OnSi2csiRecord(), CPSGS_CassBlobBase::x_PrepareBlobPropData(), CPSGS_AsyncResolveBase::x_PreparePrimaryBioseqInfoQuery(), CPSGS_AsyncResolveBase::x_PrepareSi2csiQuery(), CPSGS_GetBlobProcessor::x_Process(), CPSGS_TSEChunkProcessor::x_ProcessIdModVerId2InfoFinalStage(), CPSGS_TSEChunkProcessor::x_ProcessSatInfoChunkVerId2InfoFinalStage(), CPSGS_AnnotProcessor::x_RequestBlobProp(), CPSGS_CassBlobBase::x_RequestID2BlobChunks(), CPSGS_CassBlobBase::x_RequestOriginalBlobChunks(), CPSGS_TSEChunkProcessor::x_RequestTSEChunk(), CPSGS_CDDProcessor::x_SendAnnot(), CPSGS_AnnotProcessor::x_SendAnnotDataToClient(), CPSGS_AccessionVersionHistoryProcessor::x_SendBioseqInfo(), CPSGS_AnnotProcessor::x_SendBioseqInfo(), CPSGS_GetProcessor::x_SendBioseqInfo(), CPSGS_ResolveProcessor::x_SendBioseqInfo(), CPSGS_WGSProcessor::x_SendBioseqInfo(), CPSGS_OSGGetBlobBase::x_SendBlobProps(), CPSGS_SNPProcessor::x_SendBlobProps(), CPSGS_WGSProcessor::x_SendBlobProps(), CPSGS_SNPProcessor::x_SendChunkBlobProps(), CPSGS_OSGGetBlobBase::x_SendChunkBlobProps(), and CPSGS_WGSProcessor::x_SendChunkBlobProps().

◆ ToJsonString() [3/16]

string ToJsonString ( const CBlobFetchRequest request)

◆ ToJsonString() [4/16]

string ToJsonString ( const CBlobRecord blob)

◆ ToJsonString() [5/16]

string ToJsonString ( const CCassAccVerHistoryTaskFetch request)

◆ ToJsonString() [6/16]

string ToJsonString ( const CCassBlobTaskFetchSplitHistory request)

◆ ToJsonString() [7/16]

string ToJsonString ( const CCassBlobTaskLoadBlob request)

◆ ToJsonString() [8/16]

string ToJsonString ( const CCassNAnnotTaskFetch request)

◆ ToJsonString() [9/16]

◆ ToJsonString() [10/16]

string ToJsonString ( const CIpgStorageReportEntry ipg_entry)

◆ ToJsonString() [11/16]

string ToJsonString ( const CNAnnotRecord annot_record,
int32_t  sat,
const string custom_blob_id = "" 
)

◆ ToJsonString() [12/16]

string ToJsonString ( const CPubseqGatewayFetchIpgReportRequest request)

◆ ToJsonString() [13/16]

string ToJsonString ( const CSi2CsiFetchRequest request)

◆ ToJsonString() [14/16]

string ToJsonString ( const CSI2CSIRecord record)

◆ ToJsonString() [15/16]

string ToJsonString ( const map< string, int > &  per_na_results)

◆ ToJsonString() [16/16]

string ToJsonString ( const SAccVerHistRec history_record)

Variable Documentation

◆ USING_IDBLOB_SCOPE

USING_IDBLOB_SCOPE

Definition at line 55 of file pubseq_gateway_convert_utils.hpp.

◆ USING_NCBI_SCOPE

USING_NCBI_SCOPE

Definition at line 54 of file pubseq_gateway_convert_utils.hpp.

Modified on Sun Mar 03 03:15:27 2024 by modify_doxy.py rev. 669887