NCBI C++ ToolKit
remap_client_.hpp
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  */
27 
28 /// @file remap_client_.hpp
29 /// Data storage class.
30 ///
31 /// This file was generated by application DATATOOL
32 /// using the following specifications:
33 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/remap/remap.asn">remap.asn</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/remap/remap.def">remap.def</a>
36 ///
37 /// ATTENTION:
38 /// Don't edit or commit this file into CVS as this file will
39 /// be overridden (by DATATOOL) without warning!
40 
41 #ifndef OBJECTS_REMAP_REMAP_CLIENT_BASE_HPP
42 #define OBJECTS_REMAP_REMAP_CLIENT_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #include <list>
49 #include <string>
54 #include <serial/rpcbase.hpp>
55 
57 
58 #ifndef BEGIN_objects_SCOPE
59 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
60 # define END_objects_SCOPE END_SCOPE(objects)
61 #endif
62 BEGIN_objects_SCOPE // namespace ncbi::objects::
63 
64 
65 // generated classes
66 
67 
68 /** @addtogroup dataspec_NCBI_Remap
69  *
70  * @{
71  */
72 
73 /////////////////////////////////////////////////////////////////////////////
74 ///
75 /// CRemapClient_Base --
76 ///
77 
78 class NCBI_REMAP_EXPORT CRemapClient_Base : public CRPCClient<CRemap_request, CRemap_reply>
79 {
81 public:
82  // constructor
83  CRemapClient_Base(void);
84  // destructor
85  virtual ~CRemapClient_Base(void);
86 
91 
92  virtual void Ask(const TRequest& request, TReply& reply);
93  virtual void Ask(const TRequest& request, TReply& reply,
94  TReplyChoice::E_Choice wanted);
95 
96 
97  virtual const TRequest& GetDefaultRequest(void) const;
98  virtual TRequest& SetDefaultRequest(void);
99  virtual void SetDefaultRequest(const TRequest& request);
100 
101  virtual void Ask(const TRequestChoice& req, TReply& reply);
102  virtual void Ask(const TRequestChoice& req, TReply& reply,
103  TReplyChoice::E_Choice wanted);
104 
105  virtual CRef<CRemap_result> AskRemap
106  (const CRemap_query& req, TReply* reply = 0);
107 
108  virtual list< string > AskMaps_to_builds
109  (const string& req, TReply* reply = 0);
110 
111  virtual list< string > AskMaps_from_builds
112  (const string& req, TReply* reply = 0);
113 
114  virtual list< string > AskAll_builds
115  (TReply* reply = 0);
116 
117 
118 private:
120 
121  TReplyChoice& x_Choice(TReply& reply);
122 };
123 
124 /* @} */
125 
126 
127 
128 
129 
130 ///////////////////////////////////////////////////////////
131 ///////////////////// inline methods //////////////////////
132 ///////////////////////////////////////////////////////////
133 inline
135 {
136  return reply.SetReply();
137 }
138 
139 inline
141 {
142  Tparent::Ask(request, reply);
143 }
144 
145 
146 inline
148 {
149  return *m_DefaultRequest;
150 }
151 
152 inline
154 {
155  return *m_DefaultRequest;
156 }
157 
158 inline
160 {
161  m_DefaultRequest->Assign(request);
162 }
163 
164 
165 ///////////////////////////////////////////////////////////
166 ////////////////// end of inline methods //////////////////
167 ///////////////////////////////////////////////////////////
168 
169 
170 
171 
172 
173 END_objects_SCOPE // namespace ncbi::objects::
174 
176 
177 
178 #endif // OBJECTS_REMAP_REMAP_CLIENT_BASE_HPP
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.
CRMReply –.
Definition: RMReply.hpp:66
CRMRequest –.
Definition: RMRequest.hpp:66
CRPCClient – prototype client for ASN.1/XML-based RPC.
Definition: rpcbase.hpp:63
CRef –.
Definition: ncbiobj.hpp:618
CRemapClient_Base –.
CRemap_query –.
Definition: Remap_query.hpp:66
CRemap_reply –.
Definition: Remap_reply.hpp:66
CRemap_request –.
virtual void Ask(const TRequest &request, TReply &reply)
Definition: rpcbase.hpp:87
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define NCBI_REMAP_EXPORT
Definition: ncbi_export.h:728
TReplyChoice & x_Choice(TReply &reply)
CRPCClient< CRemap_request, CRemap_reply > Tparent
virtual const TRequest & GetDefaultRequest(void) const
CRemap_request TRequest
virtual void Ask(const TRequest &request, TReply &reply)
E_Choice
Choice variants.
Definition: RMReply_.hpp:91
CRMRequest TRequestChoice
CRef< TRequest > m_DefaultRequest
CRemap_reply TReply
void SetReply(TReply &value)
Assign a value to Reply data member.
virtual TRequest & SetDefaultRequest(void)
Modified on Wed Sep 04 15:04:16 2024 by modify_doxy.py rev. 669887