1 #ifndef OBJTOOLS_DATA_LOADERS_CDD_CDD_ACCESS__CDD_CLIENT__HPP
2 #define OBJTOOLS_DATA_LOADERS_CDD_CDD_ACCESS__CDD_CLIENT__HPP
45 #define DEFAULT_CDD_SERVICE_NAME "getCddSeqAnnot"
46 #define DEFAULT_CDD_POOL_SOFT_LIMIT 10
47 #define DEFAULT_CDD_POOL_AGE_LIMIT 900
48 #define DEFAULT_CDD_EXCLUDE_NUCLEOTIDES true
68 EDataFormat data_format = eDefaultFormat);
73 typedef vector< CConstRef<CCDD_Reply> >
TReplies;
132 bool IsValidId(
const CSeq_id&
id);
136 static string BlobIdToString(
const TBlobId& blob_id);
150 static int x_NextSerialNumber(
void);
172 virtual const char* GetErrCodeString(
void)
const override;
User-defined methods of the data storage class.
User-defined methods of the data storage class.
#define DEFAULT_CDD_POOL_AGE_LIMIT
#define DEFAULT_CDD_POOL_SOFT_LIMIT
#define DEFAULT_CDD_SERVICE_NAME
#define DEFAULT_CDD_EXCLUDE_NUCLEOTIDES
NCBI_EXCEPTION_DEFAULT(CCDDClientException, CException)
set< CSeq_id_Handle > TSeq_idSet
CRef< CCDD_Reply_Get_Blob_Id > TBlobInfo
CRef< CSeq_annot > TBlobData
unique_ptr< CCDDBlobCache > m_Cache
multimap< time_t, CRef< CCDDClient > > TClientPool
TClientPool::iterator TClient
bool m_ExcludeNucleotides
void SetClientTimeout(CTimeout timeout)
CCDD_Request_Packet TRequests
EDataFormat
Serial data format for requests and replies.
@ eSemiBinary
JSON requests, binary ASN.1 replies.
@ eDefaultFormat
Determined by [CCddClient] data_format.
@ eJSON
Bidirectional JSON.
vector< CConstRef< CCDD_Reply > > TReplies
CCDDClient(const CCDDClient &value)
CRPCClient< CCDD_Request_Packet, CCDD_Reply > Tparent
void JustFetch(CCDD_Reply &reply)
CCDDClient & operator=(const CCDDClient &value)
const TReplies & GetReplies(void)
CRPCClient – prototype client for ASN.1/XML-based RPC.
CTimeout – Timeout interval.
std::ofstream out("events_result.xml")
main entry point for tests
EErrCode
Error types that an application can generate.
virtual void ReadReply(CObjectIStream &in, TReply &reply)
virtual void Ask(const TRequest &request, TReply &reply)
virtual void WriteRequest(CObjectOStream &out, const TRequest &request)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_CDD_ACCESS_EXPORT
const GenericPointer< typename T::ValueType > T2 value
std::istream & in(std::istream &in_, double &x_)
static CNamedPipeClient * client