NCBI C++ ToolKit
PublicationTypeList_.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 PublicationTypeList_.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_PUBLICATIONTYPELIST_BASE_HPP
42 #define eutils__OBJTOOLS_EUTILS_EFETCH_PUBLICATIONTYPELIST_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 CPublicationType;
59 
60 
61 // generated classes
62 
63 
64 /** @addtogroup dataspec_efetch
65  *
66  * @{
67  */
68 
69 /////////////////////////////////////////////////////////////////////////////
70 ///
71 /// CPublicationTypeList_Base --
72 ///
73 
74 class CPublicationTypeList_Base : public NCBI_NS_NCBI::CSerialObject
75 {
76  typedef NCBI_NS_NCBI::CSerialObject Tparent;
77 public:
78  // constructor
80  // destructor
81  virtual ~CPublicationTypeList_Base(void);
82 
83  // type info
85 
86  // types
88  typedef NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CPublicationType > > TPublicationType;
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 PublicationType data member.
101  ///
102  /// Data member PublicationType is mandatory;
103  /// its type is defined as 'typedef NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CPublicationType > > TPublicationType'
104  /// @return
105  /// - true, if a value has been assigned.
106  /// - false, otherwise.
107  bool IsSetPublicationType(void) const;
108 
109  /// Check if it is safe to call GetPublicationType method.
110  ///
111  /// @return
112  /// - true, if the data member is getatable.
113  /// - false, otherwise.
114  bool CanGetPublicationType(void) const;
115 
116  /// Reset PublicationType data member.
117  void ResetPublicationType(void);
118 
119  /// Get the PublicationType member data.
120  ///
121  /// @return
122  /// Reference to the member data.
123  const TPublicationType& GetPublicationType(void) const;
124 
125  /// Assign a value to PublicationType 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< CPublicationType > > m_PublicationType;
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_PublicationType;
170 }
171 
172 inline
174 {
175  m_set_State[0] |= 0x1;
176  return m_PublicationType;
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_PUBLICATIONTYPELIST_BASE_HPP
#define BEGIN_eutils_SCOPE
#define END_eutils_SCOPE
CPublicationTypeList_Base –.
CPublicationType –.
uint32_t Uint4
4-byte (32-bit) unsigned integer
Definition: ncbitype.h:103
bool IsSetPublicationType(void) const
Check if a value has been assigned to PublicationType data member.
const TPublicationType & GetPublicationType(void) const
Get the PublicationType member data.
Tparent::CMemberIndex< E_memberIndex, 2 > TmemberIndex
virtual void Reset(void)
Reset the whole object.
bool CanGetPublicationType(void) const
Check if it is safe to call GetPublicationType method.
NCBI_NS_NCBI::CSerialObject Tparent
TPublicationType & SetPublicationType(void)
Assign a value to PublicationType data member.
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CPublicationType > > TPublicationType
CPublicationTypeList_Base(const CPublicationTypeList_Base &)
CPublicationTypeList_Base & operator=(const CPublicationTypeList_Base &)
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CPublicationType > > m_PublicationType
void ResetPublicationType(void)
Reset PublicationType data member.
Modified on Thu Feb 22 17:10:46 2024 by modify_doxy.py rev. 669887