76 if (rc.
Which() == wanted) {
80 oss <<
"CID1Client: server error: " << rc.
GetError();
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
@ID1server_back.hpp User-defined methods of the data storage class.
CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:
CStrictId< SStrictId_Gi, SStrictId_Gi::TId > TGi
#define STD_CATCH_ALL_XX(err_name, err_subcode, message)
Standard handling of "exception"-derived exceptions; catches non-standard exceptions and generates "u...
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
virtual void x_Disconnect(void)
Disconnect as cleanly as possible.
virtual void x_Connect(void) override
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
virtual CRef< CSeq_entry > AskGetsefromgi(const CID1server_maxcomplex &req, TReply *reply=0)
TGetsefromgi & SetGetsefromgi(void)
Select the variant.
TGetgihist & SetGetgihist(void)
Select the variant.
TGetgirev & SetGetgirev(void)
Select the variant.
E_Choice Which(void) const
Which variant is currently selected.
void x_Disconnect(void)
Disconnect as cleanly as possible.
void SetFini(void)
Select the variant.
virtual void AskInit(TReply *reply=0)
TError GetError(void) const
Get the variant data.
bool IsError(void) const
Check if variant Error is selected.
virtual ~CID1Client_Base(void)
virtual NCBI_NS_NCBI::TGi AskGetgi(const CSeq_id &req, TReply *reply=0)
void SetInit(void)
Select the variant.
virtual int AskGetgistate(const NCBI_NS_NCBI::TGi &req, TReply *reply=0)
TGetgistate & SetGetgistate(void)
Select the variant.
TReplyChoice & x_Choice(TReply &reply)
virtual list< CRef< CSeq_id > > AskGetseqidsfromgi(const NCBI_NS_NCBI::TGi &req, TReply *reply=0)
TGotseqentry & SetGotseqentry(void)
Select the variant.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
TGotblobinfo & SetGotblobinfo(void)
Select the variant.
virtual CRef< CID1blob_info > AskGetblobinfo(const CID1server_maxcomplex &req, TReply *reply=0)
TGotgi GetGotgi(void) const
Get the variant data.
const TIds & GetIds(void) const
Get the variant data.
virtual list< CRef< CID1Seq_hist > > AskGetgihist(const NCBI_NS_NCBI::TGi &req, TReply *reply=0)
TGetblobinfo & SetGetblobinfo(void)
Select the variant.
virtual void Ask(const TRequest &request, TReply &reply)
virtual CRef< CID1SeqEntry_info > AskGetsewithinfo(const CID1server_maxcomplex &req, TReply *reply=0)
const TGirevhist & GetGirevhist(void) const
Get the variant data.
TGetseqidsfromgi & SetGetseqidsfromgi(void)
Select the variant.
TGetsewithinfo & SetGetsewithinfo(void)
Select the variant.
TGetgi & SetGetgi(void)
Select the variant.
TGotsewithinfo & SetGotsewithinfo(void)
Select the variant.
virtual list< CRef< CID1Seq_hist > > AskGetgirev(const NCBI_NS_NCBI::TGi &req, TReply *reply=0)
virtual void AskFini(TReply *reply=0)
void x_Connect(void)
These run with m_Mutex already acquired.
TGistate GetGistate(void) const
Get the variant data.
const TGihist & GetGihist(void) const
Get the variant data.
@ e_Gihist
because hand crafted Seq-hist does not follow same conventions