NCBI C++ ToolKit
PubmedBookArticleSet_.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 PubmedBookArticleSet_.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/objtools/eutils/efetch/efetch.xsd">efetch.xsd</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objtools/eutils/efetch/efetch.def">efetch.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 eutils__OBJTOOLS_EUTILS_EFETCH_PUBMEDBOOKARTICLESET_BASE_HPP
42 #define eutils__OBJTOOLS_EUTILS_EFETCH_PUBMEDBOOKARTICLESET_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #include <list>
49 
50 #ifndef BEGIN_eutils_SCOPE
51 # define BEGIN_eutils_SCOPE BEGIN_SCOPE(eutils)
52 # define END_eutils_SCOPE END_SCOPE(eutils)
53 #endif
54 BEGIN_eutils_SCOPE // namespace eutils::
55 
56 
57 // forward declarations
58 class CPubmedBookArticle;
59 
60 
61 // generated classes
62 
63 
64 /** @addtogroup dataspec_efetch
65  *
66  * @{
67  */
68 
69 /////////////////////////////////////////////////////////////////////////////
70 ///
71 /// CPubmedBookArticleSet_Base --
72 ///
73 
74 class CPubmedBookArticleSet_Base : public NCBI_NS_NCBI::CSerialObject
75 {
76  typedef NCBI_NS_NCBI::CSerialObject Tparent;
77 public:
78  // constructor
80  // destructor
81  virtual ~CPubmedBookArticleSet_Base(void);
82 
83  // type info
85 
86  // types
88  typedef NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CPubmedBookArticle > > TPubmedBookArticle;
89 
90  // member index
91  enum class E_memberIndex {
92  e__allMandatory = 0,
94  };
95  typedef Tparent::CMemberIndex<E_memberIndex, 2> TmemberIndex;
96 
97  // getters
98  // setters
99 
100  /// Check if a value has been assigned to PubmedBookArticle data member.
101  ///
102  /// Data member PubmedBookArticle is optional;
103  /// its type is defined as 'typedef NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CPubmedBookArticle > > TPubmedBookArticle'
104  /// @return
105  /// - true, if a value has been assigned.
106  /// - false, otherwise.
107  bool IsSetPubmedBookArticle(void) const;
108 
109  /// Check if it is safe to call GetPubmedBookArticle method.
110  ///
111  /// @return
112  /// - true, if the data member is getatable.
113  /// - false, otherwise.
114  bool CanGetPubmedBookArticle(void) const;
115 
116  /// Reset PubmedBookArticle data member.
117  void ResetPubmedBookArticle(void);
118 
119  /// Get the PubmedBookArticle member data.
120  ///
121  /// @return
122  /// Reference to the member data.
123  const TPubmedBookArticle& GetPubmedBookArticle(void) const;
124 
125  /// Assign a value to PubmedBookArticle data member.
126  ///
127  /// @return
128  /// Reference to the data value.
130 
131  /// Reset the whole object
132  virtual void Reset(void);
133 
134 
135 private:
136  // Prohibit copy constructor and assignment operator
139 
140  // data
142  NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CPubmedBookArticle > > m_PubmedBookArticle;
143 };
144 
145 /* @} */
146 
147 
148 
149 
150 
151 ///////////////////////////////////////////////////////////
152 ///////////////////// inline methods //////////////////////
153 ///////////////////////////////////////////////////////////
154 inline
156 {
157  return ((m_set_State[0] & 0x3) != 0);
158 }
159 
160 inline
162 {
163  return true;
164 }
165 
166 inline
168 {
169  return m_PubmedBookArticle;
170 }
171 
172 inline
174 {
175  m_set_State[0] |= 0x1;
176  return m_PubmedBookArticle;
177 }
178 
179 ///////////////////////////////////////////////////////////
180 ////////////////// end of inline methods //////////////////
181 ///////////////////////////////////////////////////////////
182 
183 
184 
185 
186 
187 END_eutils_SCOPE // namespace eutils::
188 
189 
190 #endif // eutils__OBJTOOLS_EUTILS_EFETCH_PUBMEDBOOKARTICLESET_BASE_HPP
#define BEGIN_eutils_SCOPE
#define END_eutils_SCOPE
CPubmedBookArticleSet_Base –.
uint32_t Uint4
4-byte (32-bit) unsigned integer
Definition: ncbitype.h:103
void ResetPubmedBookArticle(void)
Reset PubmedBookArticle data member.
CPubmedBookArticleSet_Base(const CPubmedBookArticleSet_Base &)
Tparent::CMemberIndex< E_memberIndex, 2 > TmemberIndex
bool CanGetPubmedBookArticle(void) const
Check if it is safe to call GetPubmedBookArticle method.
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CPubmedBookArticle > > m_PubmedBookArticle
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CPubmedBookArticle > > TPubmedBookArticle
const TPubmedBookArticle & GetPubmedBookArticle(void) const
Get the PubmedBookArticle member data.
TPubmedBookArticle & SetPubmedBookArticle(void)
Assign a value to PubmedBookArticle data member.
CPubmedBookArticleSet_Base & operator=(const CPubmedBookArticleSet_Base &)
virtual void Reset(void)
Reset the whole object.
NCBI_NS_NCBI::CSerialObject Tparent
bool IsSetPubmedBookArticle(void) const
Check if a value has been assigned to PubmedBookArticle data member.
Modified on Fri Sep 20 14:58:03 2024 by modify_doxy.py rev. 669887