1 #ifndef PSG_PROTOBUF_DATA_HPP
2 #define PSG_PROTOBUF_DATA_HPP
14 return result.mutable_value()->ParseFromString(data);
17 return result.ParseFromString(data);
20 return value.SerializeToString(&data);
23 return value.SerializeToString(&data);
28 return result.ParseFromString(data);
35 return result.ParseFromString(data);
static bool UnpackBioseqInfo(const string &data, psg::retrieval::bioseq_info_value &result)
static bool UnpackBlobPropInfo(const string &data, psg::retrieval::blob_prop_value &result)
static bool UnpackSiInfo(const string &data, psg::retrieval::si2csi_value &result)
static bool PackSiInfo(const psg::retrieval::si2csi_value &info, string &result)
static bool UnpackBioseqInfo(const string &accession, int version, int seq_id_type, const string &data, psg::retrieval::bioseq_info &result)
static bool PackBioseqInfo(const psg::retrieval::bioseq_info &value, string &data)
static bool PackBioseqInfo(const psg::retrieval::bioseq_info_value &value, string &data)
static bool PackBlobPropInfo(const psg::retrieval::blob_prop_value &value, string &result)
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.