NCBI C++ ToolKit
Url.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 Url.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 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objtools/eutils/linkout/linkout.dtd">linkout.dtd</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objtools/eutils/linkout/linkout.def">linkout.def</a>
36 ///
37 /// New methods or data members can be added to it if needed.
38 /// See also: <a href="Url___8hpp.html">Url_.hpp</a>
39 
40 
41 #ifndef linkout__OBJTOOLS_EUTILS_LINKOUT_URL_HPP
42 #define linkout__OBJTOOLS_EUTILS_LINKOUT_URL_HPP
43 
44 
45 // generated includes
47 
48 // generated classes
49 
50 BEGIN_linkout_SCOPE // namespace linkout::
51 
52 
53 /** @addtogroup dataspec_linkout
54  *
55  * @{
56  */
57 
58 /////////////////////////////////////////////////////////////////////////////
59 ///
60 /// CUrl --
61 ///
62 
63 class NCBI_EUTILS_EXPORT CUrl : public CUrl_Base
64 {
65  typedef CUrl_Base Tparent;
66 public:
67  // constructor
68  CUrl(void);
70  // destructor
71  ~CUrl(void);
72 
73  // typedef std::string TUrl;
74 
75  /// Conversion operator to 'TUrl' type.
76  operator const TUrl&(void) const;
77  /// Assignment operator.
79 
80 private:
81  // Prohibit copy constructor and assignment operator
82  CUrl(const CUrl& value);
84 
85 };
86 /* @} */
87 
88 /////////////////// CUrl inline methods
89 
90 // constructor
91 inline
92 CUrl::CUrl(void)
93 {
94 }
95 
96 inline
98 {
99  SetUrl(value);
100 }
101 
102 inline
103 CUrl::operator const CUrl::TUrl&(void) const
104 {
105  return GetUrl();
106 }
107 
108 inline
109 CUrl& CUrl::operator=(const TUrl& value)
110 {
111  SetUrl(value);
112  return *this;
113 }
114 
115 
116 /////////////////// end of CUrl inline methods
117 
118 
119 END_linkout_SCOPE // namespace linkout::
120 
121 
122 #endif // linkout__OBJTOOLS_EUTILS_LINKOUT_URL_HPP
123 /* Original file checksum: lines: 122, chars: 3068, CRC32: c833158e */
#define BEGIN_linkout_SCOPE
Definition: Apad_.hpp:52
#define END_linkout_SCOPE
Definition: Apad_.hpp:53
cmd=llinks \S+
Definition: Url_.hpp:73
CUrl –.
Definition: ncbi_url.hpp:353
string
Definition: cgiapp.hpp:687
CUrl(void)
Default constructor.
Definition: Url.hpp:92
CUrl & operator=(const CUrl &url)
Definition: ncbi_url.cpp:352
#define NCBI_EUTILS_EXPORT
Definition: ncbi_export.h:1460
CUrl(void)
CUrl(const std::string &value)
CUrl_Base Tparent
Definition: Url.hpp:65
CUrl & operator=(const TUrl &value)
Assignment operator.
CUrl(const CUrl &value)
CUrl & operator=(const CUrl &value)
~CUrl(void)
Data storage class.
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Tue May 28 05:48:49 2024 by modify_doxy.py rev. 669887