NCBI C++ ToolKit
Assembly_.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  * 'docsum.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 
46 BEGIN_objects_SCOPE // namespace ncbi::objects::
47 
48 
49 // generated classes
50 
52 {
53  m_GenomeBuild.erase();
54  m_set_State[0] &= ~0xc;
55 }
56 
58 {
59  m_GroupLabel.erase();
60  m_set_State[0] &= ~0x30;
61 }
62 
64 {
65  m_AssemblySource.erase();
66  m_set_State[0] &= ~0xc0;
67 }
68 
70 {
71  ResetDbSnpBuild();
72  ResetGenomeBuild();
73  ResetGroupLabel();
74  ResetAssemblySource();
75  ResetCurrent();
76  ResetReference();
77 }
78 
80 {
81  SET_INTERNAL_NAME("Assembly", "attlist");
82  SET_CLASS_MODULE("Docsum-3-4");
83  ADD_NAMED_STD_MEMBER("dbSnpBuild", m_DbSnpBuild)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
84  ADD_NAMED_STD_MEMBER("genomeBuild", m_GenomeBuild)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
85  ADD_NAMED_STD_MEMBER("groupLabel", m_GroupLabel)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
86  ADD_NAMED_STD_MEMBER("assemblySource", m_AssemblySource)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
87  ADD_NAMED_STD_MEMBER("current", m_Current)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
88  ADD_NAMED_STD_MEMBER("reference", m_Reference)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
89  info->SetRandomOrder(true);
90  info->CodeVersion(22301);
91  info->DataSpec(ncbi::EDataSpec::eASN);
92 }
94 
95 // constructor
97  : m_DbSnpBuild(0), m_Current(0), m_Reference(0)
98 {
99  memset(m_set_State,0,sizeof(m_set_State));
100 }
101 
102 // destructor
104 {
105 }
106 
107 
108 BEGIN_NAMED_ENUM_IN_INFO("", CAssembly_Base::C_SnpStat::C_Attlist::, ESnpStat_attlist_mapWeight, false)
109 {
110  SET_ENUM_INTERNAL_NAME("Assembly.snpStat.attlist", "mapWeight");
111  SET_ENUM_MODULE("Docsum-3-4");
112  ADD_ENUM_VALUE("unmapped", eSnpStat_attlist_mapWeight_unmapped);
113  ADD_ENUM_VALUE("unique-in-contig", eSnpStat_attlist_mapWeight_unique_in_contig);
114  ADD_ENUM_VALUE("two-hits-in-contig", eSnpStat_attlist_mapWeight_two_hits_in_contig);
115  ADD_ENUM_VALUE("less-10-hits", eSnpStat_attlist_mapWeight_less_10_hits);
116  ADD_ENUM_VALUE("multiple-hits", eSnpStat_attlist_mapWeight_multiple_hits);
117 }
119 
121 {
122  ResetMapWeight();
123  ResetChromCount();
124  ResetPlacedContigCount();
125  ResetUnplacedContigCount();
126  ResetSeqlocCount();
127  ResetHapCount();
128 }
129 
131 {
132  SET_INTERNAL_NAME("Assembly.snpStat", "attlist");
133  SET_CLASS_MODULE("Docsum-3-4");
134  ADD_NAMED_ENUM_MEMBER("mapWeight", m_MapWeight, ESnpStat_attlist_mapWeight)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
135  ADD_NAMED_STD_MEMBER("chromCount", m_ChromCount)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
136  ADD_NAMED_STD_MEMBER("placedContigCount", m_PlacedContigCount)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
137  ADD_NAMED_STD_MEMBER("unplacedContigCount", m_UnplacedContigCount)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
138  ADD_NAMED_STD_MEMBER("seqlocCount", m_SeqlocCount)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
139  ADD_NAMED_STD_MEMBER("hapCount", m_HapCount)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
140  info->SetRandomOrder(true);
141  info->CodeVersion(22301);
142  info->DataSpec(ncbi::EDataSpec::eASN);
143 }
145 
146 // constructor
148  : m_MapWeight((ESnpStat_attlist_mapWeight)(0)), m_ChromCount(0), m_PlacedContigCount(0), m_UnplacedContigCount(0), m_SeqlocCount(0), m_HapCount(0)
149 {
150  memset(m_set_State,0,sizeof(m_set_State));
151 }
152 
153 // destructor
155 {
156 }
157 
158 
160 {
161  if ( !m_Attlist ) {
162  m_Attlist.Reset(new TAttlist());
163  return;
164  }
165  (*m_Attlist).Reset();
166 }
167 
169 {
170  m_Attlist.Reset(&value);
171 }
172 
174 {
175  ResetAttlist();
176  ResetSnpStat();
177 }
178 
180 {
181  SET_INTERNAL_NAME("Assembly", "snpStat");
182  SET_CLASS_MODULE("Docsum-3-4");
183  ADD_NAMED_REF_MEMBER("attlist", m_Attlist, C_Attlist);
184  ADD_NAMED_NULL_MEMBER("snpStat", null, ())->SetSetFlag(MEMBER_PTR(m_set_State[0]));
185  info->RandomOrder();
186  info->CodeVersion(22301);
187  info->DataSpec(ncbi::EDataSpec::eASN);
188 }
190 
191 // constructor
193 {
194  memset(m_set_State,0,sizeof(m_set_State));
195  if ( !IsAllocatedInPool() ) {
196  ResetAttlist();
197  }
198 }
199 
200 // destructor
202 {
203 }
204 
205 
207 {
208  if ( !m_Attlist ) {
209  m_Attlist.Reset(new TAttlist());
210  return;
211  }
212  (*m_Attlist).Reset();
213 }
214 
216 {
217  m_Attlist.Reset(&value);
218 }
219 
221 {
222  m_Component.clear();
223  m_set_State[0] &= ~0xc;
224 }
225 
227 {
228  if ( !m_SnpStat ) {
229  m_SnpStat.Reset(new TSnpStat());
230  return;
231  }
232  (*m_SnpStat).Reset();
233 }
234 
236 {
237  m_SnpStat.Reset(&value);
238 }
239 
241 {
242  ResetAttlist();
243  ResetComponent();
244  ResetSnpStat();
245 }
246 
248 {
249  SET_CLASS_MODULE("Docsum-3-4");
250  ADD_NAMED_REF_MEMBER("attlist", m_Attlist, C_Attlist);
251  ADD_NAMED_MEMBER("component", m_Component, STL_list, (STL_CRef, (CLASS, (CComponent))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
253  info->RandomOrder();
254  info->CodeVersion(22301);
255  info->DataSpec(ncbi::EDataSpec::eASN);
256 }
258 
259 // constructor
261 {
262  memset(m_set_State,0,sizeof(m_set_State));
263  if ( !IsAllocatedInPool() ) {
264  ResetAttlist();
265  ResetSnpStat();
266  }
267 }
268 
269 // destructor
271 {
272 }
273 
274 
275 
276 END_objects_SCOPE // namespace ncbi::objects::
277 
279 
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("Assembly", CAssembly)
Definition: Assembly_.cpp:247
BEGIN_NAMED_ENUM_IN_INFO("", CAssembly_Base::C_SnpStat::C_Attlist::, ESnpStat_attlist_mapWeight, false)
Definition: Assembly_.cpp:108
BEGIN_NAMED_CLASS_INFO("", CAssembly_Base::C_Attlist)
Definition: Assembly_.cpp:79
User-defined methods of the data storage class.
END_ENUM_INFO
Definition: aln_errors.cpp:58
CAssembly –.
Definition: Assembly.hpp:66
CComponent –.
Definition: Component.hpp:66
char value[7]
Definition: config.c:431
#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_NULL_MEMBER(MemberAlias, TypeMacro, TypeMacroArgs)
Definition: serialimpl.hpp:339
#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
#define SET_INTERNAL_NAME(OwnerName, MemberName)
Definition: serialimpl.hpp:447
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
void ResetComponent(void)
Reset Component data member.
Definition: Assembly_.cpp:220
void ResetSnpStat(void)
Reset SnpStat data member.
Definition: Assembly_.hpp:1551
Uint4 m_set_State[1]
Definition: Assembly_.hpp:929
void Reset(void)
Reset the whole object.
Definition: Assembly_.cpp:69
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
Definition: Assembly_.hpp:1530
ESnpStat_attlist_mapWeight
summary measure of placement precision in the assembly
Definition: Assembly_.hpp:426
void ResetSnpStat(void)
Reset SnpStat data member.
Definition: Assembly_.cpp:226
C_SnpStat TSnpStat
Definition: Assembly_.hpp:800
void ResetAssemblySource(void)
Reset AssemblySource data member.
Definition: Assembly_.cpp:63
void Reset(void)
Reset the whole object.
Definition: Assembly_.cpp:173
TSnpStat & SetSnpStat(void)
Assign a value to SnpStat data member.
Definition: Assembly_.hpp:1639
void ResetAttlist(void)
Reset Attlist data member.
Definition: Assembly_.cpp:206
void ResetGenomeBuild(void)
Reset GenomeBuild data member.
Definition: Assembly_.cpp:51
void Reset(void)
Reset the whole object.
Definition: Assembly_.cpp:120
CRef< TSnpStat > m_SnpStat
Definition: Assembly_.hpp:932
virtual void Reset(void)
Reset the whole object.
Definition: Assembly_.cpp:240
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
Definition: Assembly_.hpp:1584
CRef< TAttlist > m_Attlist
Definition: Assembly_.hpp:795
virtual ~CAssembly_Base(void)
Definition: Assembly_.cpp:270
list< CRef< CComponent > > m_Component
Definition: Assembly_.hpp:931
CAssembly_Base(void)
Definition: Assembly_.cpp:260
void ResetGroupLabel(void)
Reset GroupLabel data member.
Definition: Assembly_.cpp:57
void ResetAttlist(void)
Reset Attlist data member.
Definition: Assembly_.cpp:159
static MDB_envinfo info
Definition: mdb_load.c:37
Modified on Sat Dec 02 09:21:57 2023 by modify_doxy.py rev. 669887