NCBI C++ ToolKit
blastclient_.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id$
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * File Description:
27  * This code was generated by application DATATOOL
28  * using the following specifications:
29  * 'blast.asn'.
30  *
31  * ATTENTION:
32  * Don't edit or commit this file into CVS as this file will
33  * be overridden (by DATATOOL) without warning!
34  * ===========================================================================
35  */
36 
37 // standard includes
38 #include <ncbi_pch.hpp>
39 #include <serial/serialimpl.hpp>
40 
41 // generated includes
59 
60 BEGIN_objects_SCOPE // namespace ncbi::objects::
61 
62 
63 // generated classes
64 
66 {
67  TRequest request;
68  request.Assign(*m_DefaultRequest);
69  request.SetBody().Assign(req);
70  Ask(request, reply);
71 }
72 
73 
75 {
76  TRequest request;
77  request.Assign(*m_DefaultRequest);
78  request.SetBody().Assign(req);
79  Ask(request, reply, wanted);
80 }
81 
82 
84 {
85  Ask(request, reply);
86  TReplyChoice& rc = x_Choice(reply);
87  if (rc.Which() == wanted) {
88  return; // ok
89  } else {
90  rc.ThrowInvalidSelection(wanted);
91  }
92 }
93 
95 {
96  TRequestChoice request;
97  TReply reply0;
98  request.SetFinish_params(const_cast<CBlast4_finish_params_request&>(req));
99  if ( !reply ) {
100  reply = &reply0;
101  }
102  Ask(request, *reply, TReplyChoice::e_Finish_params);
104 }
105 
107 {
108  TRequestChoice request;
109  TReply reply0;
110  request.SetGet_databases();
111  if ( !reply ) {
112  reply = &reply0;
113  }
114  Ask(request, *reply, TReplyChoice::e_Get_databases);
116 }
117 
119 {
120  TRequestChoice request;
121  TReply reply0;
122  request.SetGet_matrices();
123  if ( !reply ) {
124  reply = &reply0;
125  }
126  Ask(request, *reply, TReplyChoice::e_Get_matrices);
128 }
129 
131 {
132  TRequestChoice request;
133  TReply reply0;
134  request.SetGet_parameters();
135  if ( !reply ) {
136  reply = &reply0;
137  }
138  Ask(request, *reply, TReplyChoice::e_Get_parameters);
140 }
141 
143 {
144  TRequestChoice request;
145  TReply reply0;
146  request.SetGet_paramsets();
147  if ( !reply ) {
148  reply = &reply0;
149  }
150  Ask(request, *reply, TReplyChoice::e_Get_paramsets);
152 }
153 
155 {
156  TRequestChoice request;
157  TReply reply0;
158  request.SetGet_programs();
159  if ( !reply ) {
160  reply = &reply0;
161  }
162  Ask(request, *reply, TReplyChoice::e_Get_programs);
164 }
165 
167 {
168  TRequestChoice request;
169  TReply reply0;
171  if ( !reply ) {
172  reply = &reply0;
173  }
174  Ask(request, *reply, TReplyChoice::e_Get_search_results);
176 }
177 
179 {
180  TRequestChoice request;
181  TReply reply0;
182  request.SetGet_sequences(const_cast<CBlast4_get_sequences_request&>(req));
183  if ( !reply ) {
184  reply = &reply0;
185  }
186  Ask(request, *reply, TReplyChoice::e_Get_sequences);
188 }
189 
191 {
192  TRequestChoice request;
193  TReply reply0;
194  request.SetQueue_search(const_cast<CBlast4_queue_search_request&>(req));
195  if ( !reply ) {
196  reply = &reply0;
197  }
198  Ask(request, *reply, TReplyChoice::e_Queue_search);
200 }
201 
203 {
204  TRequestChoice request;
205  TReply reply0;
206  request.SetGet_request_info(const_cast<CBlast4_get_request_info_request&>(req));
207  if ( !reply ) {
208  reply = &reply0;
209  }
210  Ask(request, *reply, TReplyChoice::e_Get_request_info);
212 }
213 
215 {
216  TRequestChoice request;
217  TReply reply0;
218  request.SetGet_sequence_parts(const_cast<CBlast4_get_seq_parts_request&>(req));
219  if ( !reply ) {
220  reply = &reply0;
221  }
222  Ask(request, *reply, TReplyChoice::e_Get_sequence_parts);
224 }
225 
227 {
228  TRequestChoice request;
229  TReply reply0;
230  request.SetGet_windowmasked_taxids();
231  if ( !reply ) {
232  reply = &reply0;
233  }
236 }
237 
239 {
240  TRequestChoice request;
241  TReply reply0;
242  request.SetGet_protocol_info(const_cast<CBlast4_get_protocol_info_request&>(req));
243  if ( !reply ) {
244  reply = &reply0;
245  }
246  Ask(request, *reply, TReplyChoice::e_Get_protocol_info);
248 }
249 
251 {
252  TRequestChoice request;
253  TReply reply0;
254  request.SetGet_search_info(const_cast<CBlast4_get_search_info_request&>(req));
255  if ( !reply ) {
256  reply = &reply0;
257  }
258  Ask(request, *reply, TReplyChoice::e_Get_search_info);
260 }
261 
263 {
264  TRequestChoice request;
265  TReply reply0;
266  request.SetGet_databases_ex(const_cast<CBlast4_get_databases_ex_request&>(req));
267  if ( !reply ) {
268  reply = &reply0;
269  }
270  Ask(request, *reply, TReplyChoice::e_Get_databases_ex);
272 }
273 
274 // constructor
276  : Tparent("blast4"), m_DefaultRequest(new TRequest)
277 {
278 }
279 
280 // destructor
282 {
283 }
284 
285 
286 
287 END_objects_SCOPE // namespace ncbi::objects::
288 
290 
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.
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.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CBlast4_finish_params_request –.
CBlast4_get_databases_ex_request –.
CBlast4_get_protocol_info_request –.
CBlast4_get_request_info_request –.
CBlast4_get_search_info_request –.
CBlast4_get_search_results_request –.
CBlast4_get_seq_parts_request –.
CBlast4_get_sequences_request –.
CBlast4_queue_search_request –.
CBlast4_reply_body –.
CBlast4_reply –.
CBlast4_request_body –.
CBlast4_request –.
CRef –.
Definition: ncbiobj.hpp:618
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.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
TFinish_params & SetFinish_params(void)
Select the variant.
TGet_databases & SetGet_databases(void)
Select the variant.
virtual CRef< CBlast4_get_databases_reply > AskGet_databases(TReply *reply=0)
virtual CRef< CBlast4_get_request_info_reply > AskGet_request_info(const CBlast4_get_request_info_request &req, TReply *reply=0)
CRef< TRequest > m_DefaultRequest
TGet_parameters & SetGet_parameters(void)
Select the variant.
virtual CRef< CBlast4_get_search_info_reply > AskGet_search_info(const CBlast4_get_search_info_request &req, TReply *reply=0)
TGet_sequences & SetGet_sequences(void)
Select the variant.
TFinish_params & SetFinish_params(void)
Select the variant.
TGet_search_results & SetGet_search_results(void)
Select the variant.
void SetGet_databases(void)
Select the variant.
TGet_search_results & SetGet_search_results(void)
Select the variant.
void SetGet_parameters(void)
Select the variant.
virtual CRef< CBlast4_get_databases_ex_reply > AskGet_databases_ex(const CBlast4_get_databases_ex_request &req, TReply *reply=0)
virtual CRef< CBlast4_finish_params_reply > AskFinish_params(const CBlast4_finish_params_request &req, TReply *reply=0)
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
void SetGet_windowmasked_taxids(void)
Select the variant.
TGet_sequence_parts & SetGet_sequence_parts(void)
Select the variant.
TGet_sequence_parts & SetGet_sequence_parts(void)
Select the variant.
virtual CRef< CBlast4_get_matrices_reply > AskGet_matrices(TReply *reply=0)
virtual CRef< CBlast4_get_protocol_info_reply > AskGet_protocol_info(const CBlast4_get_protocol_info_request &req, TReply *reply=0)
TGet_protocol_info & SetGet_protocol_info(void)
Select the variant.
void SetGet_matrices(void)
Select the variant.
virtual CRef< CBlast4_get_parameters_reply > AskGet_parameters(TReply *reply=0)
TGet_request_info & SetGet_request_info(void)
Select the variant.
virtual CRef< CBlast4_get_search_results_reply > AskGet_search_results(const CBlast4_get_search_results_request &req, TReply *reply=0)
void SetBody(TBody &value)
Assign a value to Body data member.
TGet_matrices & SetGet_matrices(void)
Select the variant.
virtual CRef< CBlast4_get_sequences_reply > AskGet_sequences(const CBlast4_get_sequences_request &req, TReply *reply=0)
TGet_sequences & SetGet_sequences(void)
Select the variant.
void SetGet_programs(void)
Select the variant.
TGet_request_info & SetGet_request_info(void)
Select the variant.
TGet_search_info & SetGet_search_info(void)
Select the variant.
virtual CRef< CBlast4_get_windowmasked_taxids_reply > AskGet_windowmasked_taxids(TReply *reply=0)
TGet_programs & SetGet_programs(void)
Select the variant.
TGet_protocol_info & SetGet_protocol_info(void)
Select the variant.
TGet_databases_ex & SetGet_databases_ex(void)
Select the variant.
TQueue_search & SetQueue_search(void)
Select the variant.
virtual CRef< CBlast4_queue_search_reply > AskQueue_search(const CBlast4_queue_search_request &req, TReply *reply=0)
virtual CRef< CBlast4_get_programs_reply > AskGet_programs(TReply *reply=0)
E_Choice Which(void) const
Which variant is currently selected.
virtual CRef< CBlast4_get_seq_parts_reply > AskGet_sequence_parts(const CBlast4_get_seq_parts_request &req, TReply *reply=0)
TGet_paramsets & SetGet_paramsets(void)
Select the variant.
TQueue_search & SetQueue_search(void)
Select the variant.
virtual CRef< CBlast4_get_paramsets_reply > AskGet_paramsets(TReply *reply=0)
TReplyChoice & x_Choice(TReply &reply)
TGet_windowmasked_taxids & SetGet_windowmasked_taxids(void)
Select the variant.
virtual ~CBlast4Client_Base(void)
virtual void Ask(const TRequest &request, TReply &reply)
TGet_search_info & SetGet_search_info(void)
Select the variant.
void SetGet_paramsets(void)
Select the variant.
TGet_databases_ex & SetGet_databases_ex(void)
Select the variant.
Modified on Mon May 20 04:58:49 2024 by modify_doxy.py rev. 669887