72 Ask(request, reply, wanted);
80 if (rc.
Which() == wanted) {
84 oss <<
"CEntrez2Client: 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.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:
#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 Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const TError & GetError(void) const
Get the variant data.
virtual CRef< CEntrez2_link_set > AskGet_links(const CEntrez2_get_links &req, TReply *reply=0)
TGet_term_hierarchy & SetGet_term_hierarchy(void)
Select the variant.
TGet_term_hierarchy & SetGet_term_hierarchy(void)
Select the variant.
virtual CRef< CEntrez2_id_list > AskGet_linked(const CEntrez2_get_links &req, TReply *reply=0)
TGet_link_counts & SetGet_link_counts(void)
Select the variant.
TGet_term_pos & SetGet_term_pos(void)
Select the variant.
TGet_linked & SetGet_linked(void)
Select the variant.
virtual void Ask(const TRequest &request, TReply &reply)
virtual CRef< CEntrez2_hier_node > AskGet_term_hierarchy(const CEntrez2_hier_query &req, TReply *reply=0)
virtual CRef< CEntrez2_link_count_list > AskGet_link_counts(const CEntrez2_id &req, TReply *reply=0)
TGet_link_counts & SetGet_link_counts(void)
Select the variant.
TGet_term_pos GetGet_term_pos(void) const
Get the variant data.
virtual CRef< CEntrez2_term_list > AskGet_term_list(const CEntrez2_term_pos &req, TReply *reply=0)
virtual int AskGet_term_pos(const CEntrez2_term_query &req, TReply *reply=0)
void SetGet_info(void)
Select the variant.
TGet_docsum & SetGet_docsum(void)
Select the variant.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
TGet_info & SetGet_info(void)
Select the variant.
void SetRequest(TRequest &value)
Assign a value to Request data member.
CRef< TRequest > m_DefaultRequest
TEval_boolean & SetEval_boolean(void)
Select the variant.
TGet_links & SetGet_links(void)
Select the variant.
TEval_boolean & SetEval_boolean(void)
Select the variant.
virtual CRef< CEntrez2_info > AskGet_info(TReply *reply=0)
virtual ~CEntrez2Client_Base(void)
TGet_linked & SetGet_linked(void)
Select the variant.
CEntrez2Client_Base(void)
TGet_docsum & SetGet_docsum(void)
Select the variant.
TGet_term_list & SetGet_term_list(void)
Select the variant.
virtual CRef< CEntrez2_boolean_reply > AskEval_boolean(const CEntrez2_eval_boolean &req, TReply *reply=0)
bool IsError(void) const
Check if variant Error is selected.
TReplyChoice & x_Choice(TReply &reply)
TGet_links & SetGet_links(void)
Select the variant.
virtual CRef< CEntrez2_docsum_list > AskGet_docsum(const CEntrez2_id_list &req, TReply *reply=0)
E_Choice Which(void) const
Which variant is currently selected.
TGet_term_list & SetGet_term_list(void)
Select the variant.
@ e_Get_info
the database info
@ e_Get_term_pos
position of the term
@ e_Eval_boolean
result of boolean query