NCBI C++ ToolKit
Autodef_action_.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 Autodef_action_.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_AUTODEF_ACTION_BASE_HPP
42 #define OBJECTS_MACRO_AUTODEF_ACTION_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #include <list>
52 
54 
55 #ifndef BEGIN_objects_SCOPE
56 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
57 # define END_objects_SCOPE END_SCOPE(objects)
58 #endif
59 BEGIN_objects_SCOPE // namespace ncbi::objects::
60 
61 
62 // generated classes
63 
64 
65 /** @addtogroup dataspec_NCBI_Macro
66  *
67  * @{
68  */
69 
70 /////////////////////////////////////////////////////////////////////////////
71 ///
72 /// CAutodef_action_Base --
73 ///
74 
76 {
78 public:
79  // constructor
81  // destructor
82  virtual ~CAutodef_action_Base(void);
83 
84  // type info
86 
87  // types
88  typedef list< ESource_qual > TModifiers;
91 
92  // member index
93  enum class E_memberIndex {
94  e__allMandatory = 0,
98  };
100 
101  // getters
102  // setters
103 
104  /// Check if a value has been assigned to Modifiers data member.
105  ///
106  /// Data member Modifiers is optional;
107  /// its type is defined as 'typedef list< ESource_qual > TModifiers'
108  /// @return
109  /// - true, if a value has been assigned.
110  /// - false, otherwise.
111  bool IsSetModifiers(void) const;
112 
113  /// Check if it is safe to call GetModifiers method.
114  ///
115  /// @return
116  /// - true, if the data member is getatable.
117  /// - false, otherwise.
118  bool CanGetModifiers(void) const;
119 
120  /// Reset Modifiers data member.
121  void ResetModifiers(void);
122 
123  /// Get the Modifiers member data.
124  ///
125  /// @return
126  /// Reference to the member data.
127  const TModifiers& GetModifiers(void) const;
128 
129  /// Assign a value to Modifiers data member.
130  ///
131  /// @return
132  /// Reference to the data value.
133  TModifiers& SetModifiers(void);
134 
135  /// Check if a value has been assigned to Clause_list_type data member.
136  ///
137  /// Data member Clause_list_type is mandatory;
138  /// its type is defined as 'typedef EAutodef_list_type TClause_list_type'
139  /// @return
140  /// - true, if a value has been assigned.
141  /// - false, otherwise.
142  bool IsSetClause_list_type(void) const;
143 
144  /// Check if it is safe to call GetClause_list_type method.
145  ///
146  /// @return
147  /// - true, if the data member is getatable.
148  /// - false, otherwise.
149  bool CanGetClause_list_type(void) const;
150 
151  /// Reset Clause_list_type data member.
152  void ResetClause_list_type(void);
153 
154  /// Get the Clause_list_type member data.
155  ///
156  /// @return
157  /// Copy of the member data.
159 
160  /// Assign a value to Clause_list_type data member.
161  ///
162  /// @param value
163  /// Value to assign
165 
166  /// Assign a value to Clause_list_type data member.
167  ///
168  /// @return
169  /// Reference to the data value.
171 
172  /// Check if a value has been assigned to Misc_feat_parse_rule data member.
173  ///
174  /// Data member Misc_feat_parse_rule is optional with default eAutodef_misc_feat_parse_rule_look_for_noncoding_products;
175  /// its type is defined as 'typedef EAutodef_misc_feat_parse_rule TMisc_feat_parse_rule'
176  /// @return
177  /// - true, if a value has been assigned.
178  /// - false, otherwise.
179  bool IsSetMisc_feat_parse_rule(void) const;
180 
181  /// Check if it is safe to call GetMisc_feat_parse_rule method.
182  ///
183  /// @return
184  /// - true, if the data member is getatable.
185  /// - false, otherwise.
186  bool CanGetMisc_feat_parse_rule(void) const;
187 
188  /// Reset Misc_feat_parse_rule data member.
189  void ResetMisc_feat_parse_rule(void);
190 
191  /// Assign default value to Misc_feat_parse_rule data member.
193 
194  /// Get the Misc_feat_parse_rule member data.
195  ///
196  /// @return
197  /// Copy of the member data.
199 
200  /// Assign a value to Misc_feat_parse_rule data member.
201  ///
202  /// @param value
203  /// Value to assign
205 
206  /// Assign a value to Misc_feat_parse_rule data member.
207  ///
208  /// @return
209  /// Reference to the data value.
211 
212  /// Reset the whole object
213  virtual void Reset(void);
214 
215 
216 private:
217  // Prohibit copy constructor and assignment operator
220 
221  // data
223  list< ESource_qual > m_Modifiers;
226 };
227 
228 /* @} */
229 
230 
231 
232 
233 
234 ///////////////////////////////////////////////////////////
235 ///////////////////// inline methods //////////////////////
236 ///////////////////////////////////////////////////////////
237 inline
239 {
240  return ((m_set_State[0] & 0x3) != 0);
241 }
242 
243 inline
245 {
246  return true;
247 }
248 
249 inline
251 {
252  return m_Modifiers;
253 }
254 
255 inline
257 {
258  m_set_State[0] |= 0x1;
259  return m_Modifiers;
260 }
261 
262 inline
264 {
265  return ((m_set_State[0] & 0xc) != 0);
266 }
267 
268 inline
270 {
271  return IsSetClause_list_type();
272 }
273 
274 inline
276 {
278  m_set_State[0] &= ~0xc;
279 }
280 
281 inline
283 {
284  if (!CanGetClause_list_type()) {
285  ThrowUnassigned(1);
286  }
287  return m_Clause_list_type;
288 }
289 
290 inline
292 {
294  m_set_State[0] |= 0xc;
295 }
296 
297 inline
299 {
300 #ifdef _DEBUG
301  if (!IsSetClause_list_type()) {
303  }
304 #endif
305  m_set_State[0] |= 0x4;
306  return m_Clause_list_type;
307 }
308 
309 inline
311 {
312  return ((m_set_State[0] & 0x30) != 0);
313 }
314 
315 inline
317 {
318  return true;
319 }
320 
321 inline
323 {
325  m_set_State[0] &= ~0x30;
326 }
327 
328 inline
330 {
332 }
333 
334 inline
336 {
337  return m_Misc_feat_parse_rule;
338 }
339 
340 inline
342 {
344  m_set_State[0] |= 0x30;
345 }
346 
347 inline
349 {
350 #ifdef _DEBUG
351  if (!IsSetMisc_feat_parse_rule()) {
353  }
354 #endif
355  m_set_State[0] |= 0x10;
356  return m_Misc_feat_parse_rule;
357 }
358 
359 ///////////////////////////////////////////////////////////
360 ////////////////// end of inline methods //////////////////
361 ///////////////////////////////////////////////////////////
362 
363 
364 
365 
366 
367 END_objects_SCOPE // namespace ncbi::objects::
368 
370 
371 
372 #endif // OBJECTS_MACRO_AUTODEF_ACTION_BASE_HPP
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CAutodef_action_Base –.
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
TMisc_feat_parse_rule & SetMisc_feat_parse_rule(void)
Assign a value to Misc_feat_parse_rule data member.
EAutodef_list_type TClause_list_type
void ResetMisc_feat_parse_rule(void)
Reset Misc_feat_parse_rule data member.
TModifiers & SetModifiers(void)
Assign a value to Modifiers data member.
virtual void Reset(void)
Reset the whole object.
CAutodef_action_Base(const CAutodef_action_Base &)
EAutodef_misc_feat_parse_rule m_Misc_feat_parse_rule
bool CanGetMisc_feat_parse_rule(void) const
Check if it is safe to call GetMisc_feat_parse_rule method.
EAutodef_list_type m_Clause_list_type
bool IsSetMisc_feat_parse_rule(void) const
Check if a value has been assigned to Misc_feat_parse_rule data member.
TClause_list_type GetClause_list_type(void) const
Get the Clause_list_type member data.
virtual ~CAutodef_action_Base(void)
Tparent::CMemberIndex< E_memberIndex, 4 > TmemberIndex
TMisc_feat_parse_rule GetMisc_feat_parse_rule(void) const
Get the Misc_feat_parse_rule member data.
bool CanGetModifiers(void) const
Check if it is safe to call GetModifiers method.
EAutodef_list_type
Access to EAutodef_list_type's attributes (values, names) as defined in spec.
list< ESource_qual > m_Modifiers
bool IsSetModifiers(void) const
Check if a value has been assigned to Modifiers data member.
TClause_list_type & SetClause_list_type(void)
Assign a value to Clause_list_type data member.
CAutodef_action_Base & operator=(const CAutodef_action_Base &)
list< ESource_qual > TModifiers
EAutodef_misc_feat_parse_rule TMisc_feat_parse_rule
void SetDefaultMisc_feat_parse_rule(void)
Assign default value to Misc_feat_parse_rule data member.
EAutodef_misc_feat_parse_rule
Access to EAutodef_misc_feat_parse_rule's attributes (values, names) as defined in spec.
void ResetClause_list_type(void)
Reset Clause_list_type data member.
void ResetModifiers(void)
Reset Modifiers data member.
bool CanGetClause_list_type(void) const
Check if it is safe to call GetClause_list_type method.
const TModifiers & GetModifiers(void) const
Get the Modifiers member data.
bool IsSetClause_list_type(void) const
Check if a value has been assigned to Clause_list_type data member.
@ eAutodef_misc_feat_parse_rule_look_for_noncoding_products
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Fri Sep 20 14:57:22 2024 by modify_doxy.py rev. 669887