NCBI C++ ToolKit
ChemicalList_.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 ChemicalList_.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_CHEMICALLIST_BASE_HPP
42 #define eutils__OBJTOOLS_EUTILS_EFETCH_CHEMICALLIST_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 CChemical;
59 
60 
61 // generated classes
62 
63 
64 /** @addtogroup dataspec_efetch
65  *
66  * @{
67  */
68 
69 /////////////////////////////////////////////////////////////////////////////
70 ///
71 /// CChemicalList_Base --
72 ///
73 
74 class CChemicalList_Base : public NCBI_NS_NCBI::CSerialObject
75 {
76  typedef NCBI_NS_NCBI::CSerialObject Tparent;
77 public:
78  // constructor
79  CChemicalList_Base(void);
80  // destructor
81  virtual ~CChemicalList_Base(void);
82 
83  // type info
85 
86  // types
87  typedef CChemical C_E;
88  typedef NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CChemical > > TChemical;
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 Chemical data member.
101  ///
102  /// Data member Chemical is mandatory;
103  /// its type is defined as 'typedef NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CChemical > > TChemical'
104  /// @return
105  /// - true, if a value has been assigned.
106  /// - false, otherwise.
107  bool IsSetChemical(void) const;
108 
109  /// Check if it is safe to call GetChemical method.
110  ///
111  /// @return
112  /// - true, if the data member is getatable.
113  /// - false, otherwise.
114  bool CanGetChemical(void) const;
115 
116  /// Reset Chemical data member.
117  void ResetChemical(void);
118 
119  /// Get the Chemical member data.
120  ///
121  /// @return
122  /// Reference to the member data.
123  const TChemical& GetChemical(void) const;
124 
125  /// Assign a value to Chemical data member.
126  ///
127  /// @return
128  /// Reference to the data value.
129  TChemical& SetChemical(void);
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< CChemical > > m_Chemical;
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_Chemical;
170 }
171 
172 inline
174 {
175  m_set_State[0] |= 0x1;
176  return m_Chemical;
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_CHEMICALLIST_BASE_HPP
#define BEGIN_eutils_SCOPE
#define END_eutils_SCOPE
CChemicalList_Base –.
CChemical –.
Definition: Chemical.hpp:64
uint32_t Uint4
4-byte (32-bit) unsigned integer
Definition: ncbitype.h:103
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CChemical > > TChemical
CChemicalList_Base(const CChemicalList_Base &)
bool CanGetChemical(void) const
Check if it is safe to call GetChemical method.
bool IsSetChemical(void) const
Check if a value has been assigned to Chemical data member.
void ResetChemical(void)
Reset Chemical data member.
const TChemical & GetChemical(void) const
Get the Chemical member data.
virtual void Reset(void)
Reset the whole object.
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CChemical > > m_Chemical
CChemicalList_Base & operator=(const CChemicalList_Base &)
NCBI_NS_NCBI::CSerialObject Tparent
Tparent::CMemberIndex< E_memberIndex, 2 > TmemberIndex
TChemical & SetChemical(void)
Assign a value to Chemical data member.
virtual ~CChemicalList_Base(void)
Modified on Fri Sep 20 14:57:07 2024 by modify_doxy.py rev. 669887