NCBI C++ ToolKit
Updat_repla_ec_numbe_actio_.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 Updat_repla_ec_numbe_actio_.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/objects/macro/macro.asn">macro.asn</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/macro/macro.def">macro.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 OBJECTS_MACRO_UPDAT_REPLA_EC_NUMBE_ACTIO_BASE_HPP
42 #define OBJECTS_MACRO_UPDAT_REPLA_EC_NUMBE_ACTIO_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
47 
48 #ifndef BEGIN_objects_SCOPE
49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
50 # define END_objects_SCOPE END_SCOPE(objects)
51 #endif
52 BEGIN_objects_SCOPE // namespace ncbi::objects::
53 
54 
55 // generated classes
56 
57 
58 /** @addtogroup dataspec_NCBI_Macro
59  *
60  * @{
61  */
62 
63 /////////////////////////////////////////////////////////////////////////////
64 ///
65 /// CUpdate_replaced_ec_numbers_action_Base --
66 ///
67 
69 {
71 public:
72  // constructor
74  // destructor
76 
77  // type info
79 
80  // types
82  typedef bool TDelete_unrecognized;
84 
85  // member index
86  enum class E_memberIndex {
87  e__allMandatory = 0,
91  };
93 
94  // getters
95  // setters
96 
97  /// Check if a value has been assigned to Delete_improper_format data member.
98  ///
99  /// Data member Delete_improper_format is mandatory;
100  /// its type is defined as 'typedef bool TDelete_improper_format'
101  /// @return
102  /// - true, if a value has been assigned.
103  /// - false, otherwise.
104  bool IsSetDelete_improper_format(void) const;
105 
106  /// Check if it is safe to call GetDelete_improper_format method.
107  ///
108  /// @return
109  /// - true, if the data member is getatable.
110  /// - false, otherwise.
111  bool CanGetDelete_improper_format(void) const;
112 
113  /// Reset Delete_improper_format data member.
114  void ResetDelete_improper_format(void);
115 
116  /// Get the Delete_improper_format member data.
117  ///
118  /// @return
119  /// Copy of the member data.
121 
122  /// Assign a value to Delete_improper_format data member.
123  ///
124  /// @param value
125  /// Value to assign
127 
128  /// Assign a value to Delete_improper_format data member.
129  ///
130  /// @return
131  /// Reference to the data value.
133 
134  /// Check if a value has been assigned to Delete_unrecognized data member.
135  ///
136  /// Data member Delete_unrecognized is mandatory;
137  /// its type is defined as 'typedef bool TDelete_unrecognized'
138  /// @return
139  /// - true, if a value has been assigned.
140  /// - false, otherwise.
141  bool IsSetDelete_unrecognized(void) const;
142 
143  /// Check if it is safe to call GetDelete_unrecognized method.
144  ///
145  /// @return
146  /// - true, if the data member is getatable.
147  /// - false, otherwise.
148  bool CanGetDelete_unrecognized(void) const;
149 
150  /// Reset Delete_unrecognized data member.
151  void ResetDelete_unrecognized(void);
152 
153  /// Get the Delete_unrecognized member data.
154  ///
155  /// @return
156  /// Copy of the member data.
158 
159  /// Assign a value to Delete_unrecognized data member.
160  ///
161  /// @param value
162  /// Value to assign
164 
165  /// Assign a value to Delete_unrecognized data member.
166  ///
167  /// @return
168  /// Reference to the data value.
170 
171  /// Check if a value has been assigned to Delete_multiple_replacement data member.
172  ///
173  /// Data member Delete_multiple_replacement is mandatory;
174  /// its type is defined as 'typedef bool TDelete_multiple_replacement'
175  /// @return
176  /// - true, if a value has been assigned.
177  /// - false, otherwise.
178  bool IsSetDelete_multiple_replacement(void) const;
179 
180  /// Check if it is safe to call GetDelete_multiple_replacement method.
181  ///
182  /// @return
183  /// - true, if the data member is getatable.
184  /// - false, otherwise.
185  bool CanGetDelete_multiple_replacement(void) const;
186 
187  /// Reset Delete_multiple_replacement data member.
189 
190  /// Get the Delete_multiple_replacement member data.
191  ///
192  /// @return
193  /// Copy of the member data.
195 
196  /// Assign a value to Delete_multiple_replacement data member.
197  ///
198  /// @param value
199  /// Value to assign
201 
202  /// Assign a value to Delete_multiple_replacement data member.
203  ///
204  /// @return
205  /// Reference to the data value.
207 
208  /// Reset the whole object
209  virtual void Reset(void);
210 
211 
212 private:
213  // Prohibit copy constructor and assignment operator
216 
217  // data
222 };
223 
224 /* @} */
225 
226 
227 
228 
229 
230 ///////////////////////////////////////////////////////////
231 ///////////////////// inline methods //////////////////////
232 ///////////////////////////////////////////////////////////
233 inline
235 {
236  return ((m_set_State[0] & 0x3) != 0);
237 }
238 
239 inline
241 {
243 }
244 
245 inline
247 {
249  m_set_State[0] &= ~0x3;
250 }
251 
252 inline
254 {
256  ThrowUnassigned(0);
257  }
259 }
260 
261 inline
263 {
265  m_set_State[0] |= 0x3;
266 }
267 
268 inline
270 {
271 #ifdef _DEBUG
274  }
275 #endif
276  m_set_State[0] |= 0x1;
278 }
279 
280 inline
282 {
283  return ((m_set_State[0] & 0xc) != 0);
284 }
285 
286 inline
288 {
289  return IsSetDelete_unrecognized();
290 }
291 
292 inline
294 {
296  m_set_State[0] &= ~0xc;
297 }
298 
299 inline
301 {
302  if (!CanGetDelete_unrecognized()) {
303  ThrowUnassigned(1);
304  }
305  return m_Delete_unrecognized;
306 }
307 
308 inline
310 {
312  m_set_State[0] |= 0xc;
313 }
314 
315 inline
317 {
318 #ifdef _DEBUG
319  if (!IsSetDelete_unrecognized()) {
321  }
322 #endif
323  m_set_State[0] |= 0x4;
324  return m_Delete_unrecognized;
325 }
326 
327 inline
329 {
330  return ((m_set_State[0] & 0x30) != 0);
331 }
332 
333 inline
335 {
337 }
338 
339 inline
341 {
343  m_set_State[0] &= ~0x30;
344 }
345 
346 inline
348 {
350  ThrowUnassigned(2);
351  }
353 }
354 
355 inline
357 {
359  m_set_State[0] |= 0x30;
360 }
361 
362 inline
364 {
365 #ifdef _DEBUG
368  }
369 #endif
370  m_set_State[0] |= 0x10;
372 }
373 
374 ///////////////////////////////////////////////////////////
375 ////////////////// end of inline methods //////////////////
376 ///////////////////////////////////////////////////////////
377 
378 
379 
380 
381 
382 END_objects_SCOPE // namespace ncbi::objects::
383 
385 
386 
387 #endif // OBJECTS_MACRO_UPDAT_REPLA_EC_NUMBE_ACTIO_BASE_HPP
Base class for all serializable objects.
Definition: serialbase.hpp:150
CUpdate_replaced_ec_numbers_action_Base –.
static char UnassignedByte(void)
Definition: serialbase.hpp:181
void ThrowUnassigned(TMemberIndex index) const
uint32_t Uint4
4-byte (32-bit) unsigned integer
Definition: ncbitype.h:103
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
virtual void Reset(void)
Reset the whole object.
void ResetDelete_improper_format(void)
Reset Delete_improper_format data member.
bool IsSetDelete_multiple_replacement(void) const
Check if a value has been assigned to Delete_multiple_replacement data member.
TDelete_multiple_replacement & SetDelete_multiple_replacement(void)
Assign a value to Delete_multiple_replacement data member.
TDelete_improper_format & SetDelete_improper_format(void)
Assign a value to Delete_improper_format data member.
bool CanGetDelete_multiple_replacement(void) const
Check if it is safe to call GetDelete_multiple_replacement method.
bool CanGetDelete_unrecognized(void) const
Check if it is safe to call GetDelete_unrecognized method.
void ResetDelete_multiple_replacement(void)
Reset Delete_multiple_replacement data member.
TDelete_improper_format GetDelete_improper_format(void) const
Get the Delete_improper_format member data.
Tparent::CMemberIndex< E_memberIndex, 4 > TmemberIndex
TDelete_multiple_replacement GetDelete_multiple_replacement(void) const
Get the Delete_multiple_replacement member data.
TDelete_unrecognized & SetDelete_unrecognized(void)
Assign a value to Delete_unrecognized data member.
TDelete_unrecognized GetDelete_unrecognized(void) const
Get the Delete_unrecognized member data.
CUpdate_replaced_ec_numbers_action_Base & operator=(const CUpdate_replaced_ec_numbers_action_Base &)
bool IsSetDelete_improper_format(void) const
Check if a value has been assigned to Delete_improper_format data member.
void ResetDelete_unrecognized(void)
Reset Delete_unrecognized data member.
bool CanGetDelete_improper_format(void) const
Check if it is safe to call GetDelete_improper_format method.
CUpdate_replaced_ec_numbers_action_Base(const CUpdate_replaced_ec_numbers_action_Base &)
bool IsSetDelete_unrecognized(void) const
Check if a value has been assigned to Delete_unrecognized data member.
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Fri Sep 20 14:57:51 2024 by modify_doxy.py rev. 669887