NCBI C++ ToolKit
pubseq_gateway_convert_utils.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef PUBSEQ_GATEWAY_CONVERT_UTILS__HPP
2 #define PUBSEQ_GATEWAY_CONVERT_UTILS__HPP
3 
4 /* $Id: pubseq_gateway_convert_utils.hpp 98678 2022-12-19 19:54:23Z satskyse $
5  * ===========================================================================
6  *
7  * PUBLIC DOMAIN NOTICE
8  * National Center for Biotechnology Information
9  *
10  * This software/database is a "United States Government Work" under the
11  * terms of the United States Copyright Act. It was written as part of
12  * the author's official duties as a United States Government employee and
13  * thus cannot be copyrighted. This software/database is freely available
14  * to the public for use. The National Library of Medicine and the U.S.
15  * Government have not placed any restriction on its use or reproduction.
16  *
17  * Although all reasonable efforts have been taken to ensure the accuracy
18  * and reliability of the software and data, the NLM and the U.S.
19  * Government do not and cannot warrant the performance or results that
20  * may be obtained by using this software or data. The NLM and the U.S.
21  * Government disclaim all warranties, express or implied, including
22  * warranties of performance, merchantability or fitness for any particular
23  * purpose.
24  *
25  * Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors: Sergey Satskiy
30  *
31  * File Description: Various format conversion utilities
32  *
33  *
34  */
35 
49 
50 #include "pubseq_gateway_types.hpp"
51 #include "pubseq_gateway_utils.hpp"
52 
53 
56 using namespace ipg;
57 
58 #include <string>
59 using namespace std;
60 
61 
62 string ToBioseqProtobuf(const CBioseqInfoRecord & bioseq_info);
63 string ToJsonString(const CBioseqInfoRecord & bioseq_info,
65  const string & custom_blob_id = "");
66 string ToJsonString(const CBlobRecord & blob);
67 string ToJsonString(const CNAnnotRecord & annot_record, int32_t sat,
68  const string & custom_blob_id = "");
69 string ToJsonString(const map<string, int> & per_na_results);
70 string ToJsonString(const SAccVerHistRec & history_record);
71 
72 string ToJsonString(const CBioseqInfoFetchRequest & request);
73 string ToJsonString(const CSi2CsiFetchRequest & request);
74 string ToJsonString(const CBlobFetchRequest & request);
75 
76 string ToJsonString(const CSI2CSIRecord & record);
77 
78 string ToJsonString(const CCassBlobTaskLoadBlob & request);
79 string ToJsonString(const CCassBlobTaskFetchSplitHistory & request);
80 string ToJsonString(const CCassNAnnotTaskFetch & request);
82 string ToJsonString(const CCassAccVerHistoryTaskFetch & request);
84 string ToJsonString(const CIpgStorageReportEntry & ipg_entry);
85 
86 #endif
Int4 int32_t
string ToBioseqProtobuf(const CBioseqInfoRecord &bioseq_info)
string ToJsonString(const CBioseqInfoRecord &bioseq_info, SPSGS_ResolveRequest::TPSGS_BioseqIncludeData include_data_flags, const string &custom_blob_id="")
Modified on Sat Apr 13 11:43:27 2024 by modify_doxy.py rev. 669887