NCBI C++ ToolKit
Convert_from_CDS_options_.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 Convert_from_CDS_options_.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_CONVERT_FROM_CDS_OPTIONS_BASE_HPP
42 #define OBJECTS_MACRO_CONVERT_FROM_CDS_OPTIONS_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 /// for convert features
65 ///
66 /// CConvert_from_CDS_options_Base --
67 ///
68 
70 {
72 public:
73  // constructor
75  // destructor
76  virtual ~CConvert_from_CDS_options_Base(void);
77 
78  // type info
80 
81  // types
82  typedef bool TRemove_mRNA;
83  typedef bool TRemove_gene;
84  typedef bool TRemove_transcript_id;
85 
86  // member index
87  enum class E_memberIndex {
88  e__allMandatory = 0,
92  };
94 
95  // getters
96  // setters
97 
98  /// Check if a value has been assigned to Remove_mRNA data member.
99  ///
100  /// Data member Remove_mRNA is mandatory;
101  /// its type is defined as 'typedef bool TRemove_mRNA'
102  /// @return
103  /// - true, if a value has been assigned.
104  /// - false, otherwise.
105  bool IsSetRemove_mRNA(void) const;
106 
107  /// Check if it is safe to call GetRemove_mRNA method.
108  ///
109  /// @return
110  /// - true, if the data member is getatable.
111  /// - false, otherwise.
112  bool CanGetRemove_mRNA(void) const;
113 
114  /// Reset Remove_mRNA data member.
115  void ResetRemove_mRNA(void);
116 
117  /// Get the Remove_mRNA member data.
118  ///
119  /// @return
120  /// Copy of the member data.
121  TRemove_mRNA GetRemove_mRNA(void) const;
122 
123  /// Assign a value to Remove_mRNA data member.
124  ///
125  /// @param value
126  /// Value to assign
128 
129  /// Assign a value to Remove_mRNA data member.
130  ///
131  /// @return
132  /// Reference to the data value.
134 
135  /// Check if a value has been assigned to Remove_gene data member.
136  ///
137  /// Data member Remove_gene is mandatory;
138  /// its type is defined as 'typedef bool TRemove_gene'
139  /// @return
140  /// - true, if a value has been assigned.
141  /// - false, otherwise.
142  bool IsSetRemove_gene(void) const;
143 
144  /// Check if it is safe to call GetRemove_gene method.
145  ///
146  /// @return
147  /// - true, if the data member is getatable.
148  /// - false, otherwise.
149  bool CanGetRemove_gene(void) const;
150 
151  /// Reset Remove_gene data member.
152  void ResetRemove_gene(void);
153 
154  /// Get the Remove_gene member data.
155  ///
156  /// @return
157  /// Copy of the member data.
158  TRemove_gene GetRemove_gene(void) const;
159 
160  /// Assign a value to Remove_gene data member.
161  ///
162  /// @param value
163  /// Value to assign
165 
166  /// Assign a value to Remove_gene data member.
167  ///
168  /// @return
169  /// Reference to the data value.
171 
172  /// Check if a value has been assigned to Remove_transcript_id data member.
173  ///
174  /// Data member Remove_transcript_id is mandatory;
175  /// its type is defined as 'typedef bool TRemove_transcript_id'
176  /// @return
177  /// - true, if a value has been assigned.
178  /// - false, otherwise.
179  bool IsSetRemove_transcript_id(void) const;
180 
181  /// Check if it is safe to call GetRemove_transcript_id method.
182  ///
183  /// @return
184  /// - true, if the data member is getatable.
185  /// - false, otherwise.
186  bool CanGetRemove_transcript_id(void) const;
187 
188  /// Reset Remove_transcript_id data member.
189  void ResetRemove_transcript_id(void);
190 
191  /// Get the Remove_transcript_id member data.
192  ///
193  /// @return
194  /// Copy of the member data.
196 
197  /// Assign a value to Remove_transcript_id data member.
198  ///
199  /// @param value
200  /// Value to assign
202 
203  /// Assign a value to Remove_transcript_id data member.
204  ///
205  /// @return
206  /// Reference to the data value.
208 
209  /// Reset the whole object
210  virtual void Reset(void);
211 
212 
213 private:
214  // Prohibit copy constructor and assignment operator
217 
218  // data
223 };
224 
225 /* @} */
226 
227 
228 
229 
230 
231 ///////////////////////////////////////////////////////////
232 ///////////////////// inline methods //////////////////////
233 ///////////////////////////////////////////////////////////
234 inline
236 {
237  return ((m_set_State[0] & 0x3) != 0);
238 }
239 
240 inline
242 {
243  return IsSetRemove_mRNA();
244 }
245 
246 inline
248 {
249  m_Remove_mRNA = 0;
250  m_set_State[0] &= ~0x3;
251 }
252 
253 inline
255 {
256  if (!CanGetRemove_mRNA()) {
257  ThrowUnassigned(0);
258  }
259  return m_Remove_mRNA;
260 }
261 
262 inline
264 {
266  m_set_State[0] |= 0x3;
267 }
268 
269 inline
271 {
272 #ifdef _DEBUG
273  if (!IsSetRemove_mRNA()) {
274  memset(&m_Remove_mRNA,UnassignedByte(),sizeof(m_Remove_mRNA));
275  }
276 #endif
277  m_set_State[0] |= 0x1;
278  return m_Remove_mRNA;
279 }
280 
281 inline
283 {
284  return ((m_set_State[0] & 0xc) != 0);
285 }
286 
287 inline
289 {
290  return IsSetRemove_gene();
291 }
292 
293 inline
295 {
296  m_Remove_gene = 0;
297  m_set_State[0] &= ~0xc;
298 }
299 
300 inline
302 {
303  if (!CanGetRemove_gene()) {
304  ThrowUnassigned(1);
305  }
306  return m_Remove_gene;
307 }
308 
309 inline
311 {
313  m_set_State[0] |= 0xc;
314 }
315 
316 inline
318 {
319 #ifdef _DEBUG
320  if (!IsSetRemove_gene()) {
321  memset(&m_Remove_gene,UnassignedByte(),sizeof(m_Remove_gene));
322  }
323 #endif
324  m_set_State[0] |= 0x4;
325  return m_Remove_gene;
326 }
327 
328 inline
330 {
331  return ((m_set_State[0] & 0x30) != 0);
332 }
333 
334 inline
336 {
337  return IsSetRemove_transcript_id();
338 }
339 
340 inline
342 {
344  m_set_State[0] &= ~0x30;
345 }
346 
347 inline
349 {
351  ThrowUnassigned(2);
352  }
353  return m_Remove_transcript_id;
354 }
355 
356 inline
358 {
360  m_set_State[0] |= 0x30;
361 }
362 
363 inline
365 {
366 #ifdef _DEBUG
367  if (!IsSetRemove_transcript_id()) {
369  }
370 #endif
371  m_set_State[0] |= 0x10;
372  return m_Remove_transcript_id;
373 }
374 
375 ///////////////////////////////////////////////////////////
376 ////////////////// end of inline methods //////////////////
377 ///////////////////////////////////////////////////////////
378 
379 
380 
381 
382 
383 END_objects_SCOPE // namespace ncbi::objects::
384 
386 
387 
388 #endif // OBJECTS_MACRO_CONVERT_FROM_CDS_OPTIONS_BASE_HPP
Base class for all serializable objects.
Definition: serialbase.hpp:150
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
void ResetRemove_transcript_id(void)
Reset Remove_transcript_id data member.
TRemove_mRNA & SetRemove_mRNA(void)
Assign a value to Remove_mRNA data member.
void ResetRemove_mRNA(void)
Reset Remove_mRNA data member.
CConvert_from_CDS_options_Base(const CConvert_from_CDS_options_Base &)
TRemove_transcript_id & SetRemove_transcript_id(void)
Assign a value to Remove_transcript_id data member.
bool IsSetRemove_transcript_id(void) const
Check if a value has been assigned to Remove_transcript_id data member.
bool CanGetRemove_gene(void) const
Check if it is safe to call GetRemove_gene method.
CConvert_from_CDS_options_Base & operator=(const CConvert_from_CDS_options_Base &)
bool IsSetRemove_gene(void) const
Check if a value has been assigned to Remove_gene data member.
bool IsSetRemove_mRNA(void) const
Check if a value has been assigned to Remove_mRNA data member.
TRemove_mRNA GetRemove_mRNA(void) const
Get the Remove_mRNA member data.
TRemove_transcript_id GetRemove_transcript_id(void) const
Get the Remove_transcript_id member data.
bool CanGetRemove_mRNA(void) const
Check if it is safe to call GetRemove_mRNA method.
TRemove_gene GetRemove_gene(void) const
Get the Remove_gene member data.
void ResetRemove_gene(void)
Reset Remove_gene data member.
Tparent::CMemberIndex< E_memberIndex, 4 > TmemberIndex
TRemove_gene & SetRemove_gene(void)
Assign a value to Remove_gene data member.
virtual void Reset(void)
Reset the whole object.
bool CanGetRemove_transcript_id(void) const
Check if it is safe to call GetRemove_transcript_id method.
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Wed May 29 18:42:35 2024 by modify_doxy.py rev. 669887