NCBI C++ ToolKit
remap_client.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: remap_client.hpp 55090 2012-07-16 12:24:38Z ivanov $
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 /// @remap_client.hpp
29 /// User-defined methods of the data storage class.
30 ///
31 /// This file was originally generated by application DATATOOL
32 /// using the following specifications:
33 /// 'remap.asn'.
34 ///
35 /// New methods or data members can be added to it if needed.
36 /// See also: remap_client_.hpp
37 
38 
39 #ifndef OBJECTS_REMAP_REMAP_CLIENT_HPP
40 #define OBJECTS_REMAP_REMAP_CLIENT_HPP
41 
42 
43 // generated includes
45 
46 // additional includes
48 
49 // generated classes
50 
52 
53 BEGIN_objects_SCOPE // namespace ncbi::objects::
54 
55 /////////////////////////////////////////////////////////////////////////////
57 {
59 public:
60  // constructor
61  CRemapClient(const string& url = kDefaultUrl);
62  // destructor
63  ~CRemapClient(void);
64 
65  // Convenience methods for querying
66 
67  /// Remap a single Seq-loc
68  CRef<objects::CSeq_loc> Remap(const objects::CSeq_loc& loc,
69  const string& from_build,
70  const string& to_build);
71  /// Remap multiple Seq-locs
72  void Remap(const vector<CRef<objects::CSeq_loc> >& locs,
73  const string& from_build,
74  const string& to_build,
76 
77  static const char* kDefaultUrl;
78 
79 protected:
80  // we override this to use a server that's not a named service
81  void x_Connect();
82 
83 private:
84  // Prohibit copy constructor and assignment operator
87 
88  string m_Url;
89 
90 };
91 
92 /////////////////// CRemapClient inline methods
93 
94 // constructor
95 inline
96 CRemapClient::CRemapClient(const string& url) : m_Url(url)
97 {
99 }
100 
101 
102 /////////////////// end of CRemapClient inline methods
103 
104 
105 END_objects_SCOPE // namespace ncbi::objects::
106 
108 
109 #endif // OBJECTS_REMAP_REMAP_CLIENT_HPP
110 /* Original file checksum: lines: 94, chars: 2610, CRC32: 5aa8f76b */
CRemapClient_Base –.
@remap_client.hpp User-defined methods of the data storage class.
CRemapClient_Base Tparent
CRef< objects::CSeq_loc > Remap(const objects::CSeq_loc &loc, const string &from_build, const string &to_build)
Remap a single Seq-loc.
void Remap(const vector< CRef< objects::CSeq_loc > > &locs, const string &from_build, const string &to_build, vector< CRef< objects::CSeq_loc > > &result)
Remap multiple Seq-locs.
CRemapClient(const string &url=kDefaultUrl)
static const char * kDefaultUrl
CRemapClient & operator=(const CRemapClient &value)
CRemapClient(const CRemapClient &value)
virtual void x_Connect(void) override
Definition: rpcbase.hpp:199
#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
void SetVersion(TVersion value)
Assign a value to Version data member.
virtual TRequest & SetDefaultRequest(void)
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Data storage class.
else result
Definition: token2.c:20
Modified on Mon May 27 04:36:21 2024 by modify_doxy.py rev. 669887