NCBI C++ ToolKit
Apply_feature_action_.cpp
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  * File Description:
27  * This code was generated by application DATATOOL
28  * using the following specifications:
29  * 'macro.asn'.
30  *
31  * ATTENTION:
32  * Don't edit or commit this file into CVS as this file will
33  * be overridden (by DATATOOL) without warning!
34  * ===========================================================================
35  */
36 
37 // standard includes
38 #include <ncbi_pch.hpp>
39 #include <serial/serialimpl.hpp>
40 
41 // generated includes
48 
49 BEGIN_objects_SCOPE // namespace ncbi::objects::
50 
51 
52 // generated classes
53 
55 {
56  if ( !m_Location ) {
57  m_Location.Reset(new TLocation());
58  return;
59  }
60  (*m_Location).Reset();
61 }
62 
64 {
65  m_Location.Reset(&value);
66 }
67 
69 {
70  if ( !m_Seq_list ) {
71  m_Seq_list.Reset(new TSeq_list());
72  return;
73  }
74  (*m_Seq_list).Reset();
75 }
76 
78 {
79  m_Seq_list.Reset(&value);
80 }
81 
83 {
84  m_Fields.Reset();
85 }
86 
88 {
89  m_Fields.Reset(&value);
90 }
91 
93 {
94  if ( !m_Fields )
95  m_Fields.Reset(new TFields());
96  return (*m_Fields);
97 }
98 
100 {
101  m_Src_fields.Reset();
102 }
103 
105 {
106  m_Src_fields.Reset(&value);
107 }
108 
110 {
111  if ( !m_Src_fields )
112  m_Src_fields.Reset(new TSrc_fields());
113  return (*m_Src_fields);
114 }
115 
117 {
118  ResetType();
119  ResetPartial5();
120  ResetPartial3();
122  ResetLocation();
123  ResetSeq_list();
125  ResetAdd_mrna();
128  ResetFields();
129  ResetSrc_fields();
130 }
131 
133 {
134  SET_CLASS_MODULE("NCBI-Macro");
135  ADD_NAMED_ENUM_MEMBER("type", m_Type, EMacro_feature_type)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
136  ADD_NAMED_STD_MEMBER("partial5", m_Partial5)->SetDefault(new TPartial5(false))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
137  ADD_NAMED_STD_MEMBER("partial3", m_Partial3)->SetDefault(new TPartial3(false))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
138  ADD_NAMED_STD_MEMBER("plus-strand", m_Plus_strand)->SetDefault(new TPlus_strand(true))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
139  ADD_NAMED_REF_MEMBER("location", m_Location, CLocation_choice);
140  ADD_NAMED_REF_MEMBER("seq-list", m_Seq_list, CSequence_list_choice);
141  ADD_NAMED_STD_MEMBER("add-redundant", m_Add_redundant)->SetDefault(new TAdd_redundant(true))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
142  ADD_NAMED_STD_MEMBER("add-mrna", m_Add_mrna)->SetDefault(new TAdd_mrna(false))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
143  ADD_NAMED_STD_MEMBER("apply-to-parts", m_Apply_to_parts)->SetDefault(new TApply_to_parts(false))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
144  ADD_NAMED_STD_MEMBER("only-seg-num", m_Only_seg_num)->SetDefault(new TOnly_seg_num(-1))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
145  ADD_NAMED_REF_MEMBER("fields", m_Fields, CFeat_qual_legal_set)->SetOptional();
146  ADD_NAMED_REF_MEMBER("src-fields", m_Src_fields, CSource_qual_val_set)->SetOptional();
147  info->RandomOrder();
148  info->CodeVersion(22400);
149  info->DataSpec(ncbi::EDataSpec::eASN);
150 }
152 
153 // constructor
155  : m_Type((ncbi::objects::EMacro_feature_type)(0)), m_Partial5(false), m_Partial3(false), m_Plus_strand(true), m_Add_redundant(true), m_Add_mrna(false), m_Apply_to_parts(false), m_Only_seg_num(-1)
156 {
157  memset(m_set_State,0,sizeof(m_set_State));
158  if ( !IsAllocatedInPool() ) {
159  ResetLocation();
160  ResetSeq_list();
161  }
162 }
163 
164 // destructor
166 {
167 }
168 
169 
170 
171 END_objects_SCOPE // namespace ncbi::objects::
172 
174 
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("Apply-feature-action", CApply_feature_action)
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CApply_feature_action –.
CLocation_choice –.
CSequence_list_choice –.
CSource_qual_val_set –.
#define true
Definition: bool.h:35
#define false
Definition: bool.h:36
#define MEMBER_PTR(MemberName)
Definition: serialimpl.hpp:284
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
Definition: serialimpl.hpp:357
#define END_CLASS_INFO
Definition: serialimpl.hpp:456
#define ADD_NAMED_STD_MEMBER(MemberAlias, MemberName)
Definition: serialimpl.hpp:345
#define SET_CLASS_MODULE(ModuleName)
Definition: serialimpl.hpp:444
#define ADD_NAMED_ENUM_MEMBER(MemberAlias, MemberName, EnumName)
Definition: serialimpl.hpp:351
bool IsAllocatedInPool(void) const THROWS_NONE
Check if object is allocated in memory pool (not system heap)
Definition: ncbiobj.hpp:461
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
TSeq_list & SetSeq_list(void)
Assign a value to Seq_list data member.
TSrc_fields & SetSrc_fields(void)
Assign a value to Src_fields data member.
void ResetType(void)
Reset Type data member.
void ResetAdd_mrna(void)
Reset Add_mrna data member.
void ResetSeq_list(void)
Reset Seq_list data member.
void ResetApply_to_parts(void)
Reset Apply_to_parts data member.
void ResetFields(void)
Reset Fields data member.
void ResetSrc_fields(void)
Reset Src_fields data member.
void ResetOnly_seg_num(void)
Reset Only_seg_num data member.
void ResetPartial3(void)
Reset Partial3 data member.
void ResetPartial5(void)
Reset Partial5 data member.
TLocation & SetLocation(void)
Assign a value to Location data member.
EMacro_feature_type
feature values
TFields & SetFields(void)
Assign a value to Fields data member.
virtual void Reset(void)
Reset the whole object.
void ResetLocation(void)
Reset Location data member.
void ResetPlus_strand(void)
Reset Plus_strand data member.
void ResetAdd_redundant(void)
Reset Add_redundant data member.
static MDB_envinfo info
Definition: mdb_load.c:37
Magic spell ;-) needed for some weird compilers... very empiric.
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Sun Jun 16 04:30:46 2024 by modify_doxy.py rev. 669887