NCBI C++ ToolKit
Seq_feat_.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  * 'seqfeat.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
45 #include <objects/pub/Pub_set.hpp>
53 
54 BEGIN_objects_SCOPE // namespace ncbi::objects::
55 
56 
57 // generated classes
58 
60 {
61  SET_ENUM_INTERNAL_NAME("Seq-feat", "exp-ev");
62  SET_ENUM_MODULE("NCBI-Seqfeat");
63  ADD_ENUM_VALUE("experimental", eExp_ev_experimental);
64  ADD_ENUM_VALUE("not-experimental", eExp_ev_not_experimental);
65 }
67 
69 {
70  m_Id.Reset();
71 }
72 
74 {
75  m_Id.Reset(&value);
76 }
77 
79 {
80  if ( !m_Id )
81  m_Id.Reset(new TId());
82  return (*m_Id);
83 }
84 
86 {
87  if ( !m_Data ) {
88  m_Data.Reset(new TData());
89  return;
90  }
91  (*m_Data).Reset();
92 }
93 
95 {
96  m_Data.Reset(&value);
97 }
98 
100 {
101  m_Comment.erase();
102  m_set_State[0] &= ~0x300;
103 }
104 
106 {
107  m_Product.Reset();
108 }
109 
111 {
112  m_Product.Reset(&value);
113 }
114 
116 {
117  if ( !m_Product )
118  m_Product.Reset(new TProduct());
119  return (*m_Product);
120 }
121 
123 {
124  if ( !m_Location ) {
125  m_Location.Reset(new TLocation());
126  return;
127  }
128  (*m_Location).Reset();
129 }
130 
132 {
133  m_Location.Reset(&value);
134 }
135 
137 {
138  m_Qual.clear();
139  m_set_State[0] &= ~0xc000;
140 }
141 
143 {
144  m_Title.erase();
145  m_set_State[0] &= ~0x30000;
146 }
147 
149 {
150  m_Ext.Reset();
151 }
152 
154 {
155  m_Ext.Reset(&value);
156 }
157 
159 {
160  if ( !m_Ext )
161  m_Ext.Reset(new TExt());
162  return (*m_Ext);
163 }
164 
166 {
167  m_Cit.Reset();
168 }
169 
171 {
172  m_Cit.Reset(&value);
173 }
174 
176 {
177  if ( !m_Cit )
178  m_Cit.Reset(new TCit());
179  return (*m_Cit);
180 }
181 
183 {
184  m_Xref.clear();
185  m_set_State[0] &= ~0x3000000;
186 }
187 
189 {
190  m_Dbxref.clear();
191  m_set_State[0] &= ~0xc000000;
192 }
193 
195 {
196  m_Except_text.erase();
197  m_set_State[0] &= ~0xc0000000;
198 }
199 
201 {
202  m_Ids.clear();
203  m_set_State[1] &= ~0x3;
204 }
205 
207 {
208  m_Exts.clear();
209  m_set_State[1] &= ~0xc;
210 }
211 
213 {
214  m_Support.Reset();
215 }
216 
218 {
219  m_Support.Reset(&value);
220 }
221 
223 {
224  if ( !m_Support )
225  m_Support.Reset(new TSupport());
226  return (*m_Support);
227 }
228 
230 {
231  ResetId();
232  ResetData();
233  ResetPartial();
234  ResetExcept();
235  ResetComment();
236  ResetProduct();
237  ResetLocation();
238  ResetQual();
239  ResetTitle();
240  ResetExt();
241  ResetCit();
242  ResetExp_ev();
243  ResetXref();
244  ResetDbxref();
245  ResetPseudo();
247  ResetIds();
248  ResetExts();
249  ResetSupport();
250 }
251 
253 {
254  SET_CLASS_MODULE("NCBI-Seqfeat");
255  ADD_NAMED_REF_MEMBER("id", m_Id, CFeat_id)->SetOptional();
256  ADD_NAMED_REF_MEMBER("data", m_Data, CSeqFeatData);
257  ADD_NAMED_STD_MEMBER("partial", m_Partial)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
258  ADD_NAMED_STD_MEMBER("except", m_Except)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
259  ADD_NAMED_STD_MEMBER("comment", m_Comment)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
260  ADD_NAMED_REF_MEMBER("product", m_Product, CSeq_loc)->SetOptional();
261  ADD_NAMED_REF_MEMBER("location", m_Location, CSeq_loc);
262  ADD_NAMED_MEMBER("qual", m_Qual, STL_vector, (STL_CRef, (CLASS, (CGb_qual))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
263  ADD_NAMED_STD_MEMBER("title", m_Title)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
264  ADD_NAMED_REF_MEMBER("ext", m_Ext, CUser_object)->SetOptional();
265  ADD_NAMED_REF_MEMBER("cit", m_Cit, CPub_set)->SetOptional();
266  ADD_NAMED_ENUM_MEMBER("exp-ev", m_Exp_ev, EExp_ev)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
267  ADD_NAMED_MEMBER("xref", m_Xref, STL_vector_set, (STL_CRef, (CLASS, (CSeqFeatXref))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
268  ADD_NAMED_MEMBER("dbxref", m_Dbxref, STL_vector_set, (STL_CRef, (CLASS, (CDbtag))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
269  ADD_NAMED_STD_MEMBER("pseudo", m_Pseudo)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
270  ADD_NAMED_STD_MEMBER("except-text", m_Except_text)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
271  ADD_NAMED_MEMBER("ids", m_Ids, STL_list_set, (STL_CRef, (CLASS, (CFeat_id))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
272  ADD_NAMED_MEMBER("exts", m_Exts, STL_list_set, (STL_CRef, (CLASS, (CUser_object))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
273  ADD_NAMED_REF_MEMBER("support", m_Support, CSeqFeatSupport)->SetOptional();
274  info->RandomOrder();
275  info->CodeVersion(22400);
276  info->DataSpec(ncbi::EDataSpec::eASN);
277 }
279 
280 // constructor
282  : m_Partial(0), m_Except(0), m_Exp_ev((EExp_ev)(0)), m_Pseudo(0)
283 {
284  memset(m_set_State,0,sizeof(m_set_State));
285  if ( !IsAllocatedInPool() ) {
286  ResetData();
287  ResetLocation();
288  }
289 }
290 
291 // destructor
293 {
294 }
295 
296 
297 
298 END_objects_SCOPE // namespace ncbi::objects::
299 
301 
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
BEGIN_NAMED_ENUM_IN_INFO("", CSeq_feat_Base::, EExp_ev, false)
Definition: Seq_feat_.cpp:59
BEGIN_NAMED_BASE_CLASS_INFO("Seq-feat", CSeq_feat)
Definition: Seq_feat_.cpp:252
END_ENUM_INFO
Definition: aln_errors.cpp:58
Definition: Dbtag.hpp:53
CFeat_id –.
Definition: Feat_id.hpp:66
@Gb_qual.hpp User-defined methods of the data storage class.
Definition: Gb_qual.hpp:61
CSeqFeatSupport –.
CSeqFeatXref –.
Definition: SeqFeatXref.hpp:66
*** Seq-feat ******************************************* * sequence feature generalization
Definition: Seq_feat_.hpp:89
namespace ncbi::objects::
Definition: Seq_feat.hpp:58
#define MEMBER_PTR(MemberName)
Definition: serialimpl.hpp:284
#define SET_ENUM_INTERNAL_NAME(OwnerName, MemberName)
Definition: serialimpl.hpp:559
#define ADD_NAMED_MEMBER(MemberAlias, MemberName, TypeMacro, TypeMacroArgs)
Definition: serialimpl.hpp:342
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
Definition: serialimpl.hpp:357
#define SET_ENUM_MODULE(ModuleName)
Definition: serialimpl.hpp:553
#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
#define ADD_ENUM_VALUE(EnumValueName, EnumValueValue)
Definition: serialimpl.hpp:562
void Reset(void)
Reset reference object.
Definition: ncbiobj.hpp:773
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
CRef< TCit > m_Cit
Definition: Seq_feat_.hpp:871
string m_Except_text
Definition: Seq_feat_.hpp:876
CUser_object TExt
Definition: Seq_feat_.hpp:119
CFeat_id TId
Definition: Seq_feat_.hpp:110
void ResetPartial(void)
Reset Partial data member.
Definition: Seq_feat_.hpp:955
CSeq_feat_Base(void)
Definition: Seq_feat_.cpp:281
void ResetTitle(void)
Reset Title data member.
Definition: Seq_feat_.cpp:142
TProduct & SetProduct(void)
Assign a value to Product data member.
Definition: Seq_feat_.cpp:115
vector< CRef< CGb_qual > > m_Qual
Definition: Seq_feat_.hpp:868
string m_Comment
Definition: Seq_feat_.hpp:865
void ResetSupport(void)
Reset Support data member.
Definition: Seq_feat_.cpp:212
Uint4 m_set_State[2]
Definition: Seq_feat_.hpp:860
void ResetExcept(void)
Reset Except data member.
Definition: Seq_feat_.hpp:1002
TCit & SetCit(void)
Assign a value to Cit data member.
Definition: Seq_feat_.cpp:175
list< CRef< CFeat_id > > m_Ids
Definition: Seq_feat_.hpp:877
void ResetExp_ev(void)
Reset Exp_ev data member.
Definition: Seq_feat_.hpp:1261
list< CRef< CUser_object > > m_Exts
Definition: Seq_feat_.hpp:878
void ResetExcept_text(void)
Reset Except_text data member.
Definition: Seq_feat_.cpp:194
vector< CRef< CDbtag > > m_Dbxref
Definition: Seq_feat_.hpp:874
TData & SetData(void)
Assign a value to Data data member.
Definition: Seq_feat_.hpp:934
CRef< TProduct > m_Product
Definition: Seq_feat_.hpp:866
void ResetIds(void)
Reset Ids data member.
Definition: Seq_feat_.cpp:200
void ResetExts(void)
Reset Exts data member.
Definition: Seq_feat_.cpp:206
virtual void Reset(void)
Reset the whole object.
Definition: Seq_feat_.cpp:229
virtual ~CSeq_feat_Base(void)
Definition: Seq_feat_.cpp:292
EExp_ev
evidence for existence of feature
Definition: Seq_feat_.hpp:101
void ResetPseudo(void)
Reset Pseudo data member.
Definition: Seq_feat_.hpp:1358
void ResetId(void)
Reset Id data member.
Definition: Seq_feat_.cpp:68
CRef< TData > m_Data
Definition: Seq_feat_.hpp:862
TId & SetId(void)
Assign a value to Id data member.
Definition: Seq_feat_.cpp:78
TLocation & SetLocation(void)
Assign a value to Location data member.
Definition: Seq_feat_.hpp:1126
vector< CRef< CSeqFeatXref > > m_Xref
Definition: Seq_feat_.hpp:873
void ResetData(void)
Reset Data data member.
Definition: Seq_feat_.cpp:85
CPub_set TCit
Definition: Seq_feat_.hpp:120
CRef< TLocation > m_Location
Definition: Seq_feat_.hpp:867
CRef< TSupport > m_Support
Definition: Seq_feat_.hpp:879
CRef< TId > m_Id
Definition: Seq_feat_.hpp:861
void ResetComment(void)
Reset Comment data member.
Definition: Seq_feat_.cpp:99
void ResetExt(void)
Reset Ext data member.
Definition: Seq_feat_.cpp:148
CSeqFeatData TData
Definition: Seq_feat_.hpp:111
CRef< TExt > m_Ext
Definition: Seq_feat_.hpp:870
void ResetLocation(void)
Reset Location data member.
Definition: Seq_feat_.cpp:122
TExt & SetExt(void)
Assign a value to Ext data member.
Definition: Seq_feat_.cpp:158
CSeq_loc TLocation
Definition: Seq_feat_.hpp:116
void ResetProduct(void)
Reset Product data member.
Definition: Seq_feat_.cpp:105
TSupport & SetSupport(void)
Assign a value to Support data member.
Definition: Seq_feat_.cpp:222
void ResetXref(void)
Reset Xref data member.
Definition: Seq_feat_.cpp:182
void ResetDbxref(void)
Reset Dbxref data member.
Definition: Seq_feat_.cpp:188
CSeq_loc TProduct
Definition: Seq_feat_.hpp:115
CSeqFeatSupport TSupport
Definition: Seq_feat_.hpp:128
void ResetQual(void)
Reset Qual data member.
Definition: Seq_feat_.cpp:136
void ResetCit(void)
Reset Cit data member.
Definition: Seq_feat_.cpp:165
static MDB_envinfo info
Definition: mdb_load.c:37
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Sat Apr 20 12:20:14 2024 by modify_doxy.py rev. 669887