NCBI C++ ToolKit
GC_AssemblyUnit_.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  * 'genome_collection.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
50 
51 BEGIN_objects_SCOPE // namespace ncbi::objects::
52 
53 
54 // generated classes
55 
57 {
58  SET_ENUM_INTERNAL_NAME("GC-AssemblyUnit", "class");
59  SET_ENUM_MODULE("NCBI-GenomeCollection");
60  ADD_ENUM_VALUE("haploid-unit", eClass_haploid_unit);
61  ADD_ENUM_VALUE("alt-loci", eClass_alt_loci);
62  ADD_ENUM_VALUE("assembly-patch", eClass_assembly_patch);
63  ADD_ENUM_VALUE("other", eClass_other);
64 }
66 
68 {
69  m_Id.clear();
70  m_set_State[0] &= ~0x3;
71 }
72 
74 {
75  if ( !m_Desc ) {
76  m_Desc.Reset(new TDesc());
77  return;
78  }
79  (*m_Desc).Reset();
80 }
81 
83 {
84  m_Desc.Reset(&value);
85 }
86 
88 {
89  m_Mols.clear();
90  m_set_State[0] &= ~0xc0;
91 }
92 
94 {
95  m_Other_sequences.clear();
96  m_set_State[0] &= ~0x300;
97 }
98 
100 {
101  m_Stats.Reset();
102 }
103 
105 {
106  m_Stats.Reset(&value);
107 }
108 
110 {
111  if ( !m_Stats )
112  m_Stats.Reset(new TStats());
113  return (*m_Stats);
114 }
115 
117 {
118  m_Unplaced_stats.clear();
119  m_set_State[0] &= ~0x3000;
120 }
121 
123 {
125  m_set_State[0] &= ~0xc000;
126 }
127 
129 {
130  ResetId();
131  ResetClass();
132  ResetDesc();
133  ResetMols();
135  ResetStats();
138 }
139 
141 {
142  SET_CLASS_MODULE("NCBI-GenomeCollection");
143  ADD_NAMED_MEMBER("id", m_Id, STL_list_set, (STL_CRef, (CLASS, (CDbtag))))->SetSetFlag(MEMBER_PTR(m_set_State[0]));
144  ADD_NAMED_ENUM_MEMBER("class", m_Class, EClass)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
145  ADD_NAMED_REF_MEMBER("desc", m_Desc, CGC_AssemblyDesc);
146  ADD_NAMED_MEMBER("mols", m_Mols, STL_list_set, (STL_CRef, (CLASS, (CGC_Replicon))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
147  ADD_NAMED_MEMBER("other-sequences", m_Other_sequences, STL_list_set, (STL_CRef, (CLASS, (CGC_TaggedSequences))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
148  ADD_NAMED_REF_MEMBER("stats", m_Stats, CGC_SequenceStats)->SetOptional();
149  ADD_NAMED_MEMBER("unplaced-stats", m_Unplaced_stats, STL_list_set, (STL_CRef, (CLASS, (CGC_Scaf_stats))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
150  ADD_NAMED_MEMBER("unplaced-unlocalized-stats", m_Unplaced_unlocalized_stats, STL_list_set, (STL_CRef, (CLASS, (CGC_Scaf_stats))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
151  info->RandomOrder();
152  info->CodeVersion(22400);
153  info->DataSpec(ncbi::EDataSpec::eASN);
154 }
156 
157 // constructor
159  : m_Class((EClass)(0))
160 {
161  memset(m_set_State,0,sizeof(m_set_State));
162  if ( !IsAllocatedInPool() ) {
163  ResetDesc();
164  }
165 }
166 
167 // destructor
169 {
170 }
171 
172 
173 
174 END_objects_SCOPE // namespace ncbi::objects::
175 
177 
User-defined methods of the data storage class.
User-defined methods of the data storage class.
BEGIN_NAMED_ENUM_IN_INFO("", CGC_AssemblyUnit_Base::, EClass, true)
BEGIN_NAMED_BASE_CLASS_INFO("GC-AssemblyUnit", CGC_AssemblyUnit)
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
END_ENUM_INFO
Definition: aln_errors.cpp:58
Definition: Dbtag.hpp:53
CGC_AssemblyDesc –.
CGC_AssemblyUnit_Base –.
CGC_Scaf_stats –.
CGC_SequenceStats –.
CGC_TaggedSequences –.
#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 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
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
CGC_SequenceStats TStats
void ResetClass(void)
Reset Class data member.
virtual void Reset(void)
Reset the whole object.
list< CRef< CGC_Replicon > > m_Mols
list< CRef< CGC_Scaf_stats > > m_Unplaced_unlocalized_stats
void ResetId(void)
Reset Id data member.
void ResetUnplaced_unlocalized_stats(void)
Reset Unplaced_unlocalized_stats data member.
void ResetDesc(void)
Reset Desc data member.
list< CRef< CDbtag > > m_Id
void ResetUnplaced_stats(void)
Reset Unplaced_stats data member.
virtual ~CGC_AssemblyUnit_Base(void)
TDesc & SetDesc(void)
Assign a value to Desc data member.
void ResetOther_sequences(void)
Reset Other_sequences data member.
list< CRef< CGC_Scaf_stats > > m_Unplaced_stats
EClass
'class' defines the semantics of how to interpret this item
void ResetMols(void)
Reset Mols data member.
void ResetStats(void)
Reset Stats data member.
TStats & SetStats(void)
Assign a value to Stats data member.
list< CRef< CGC_TaggedSequences > > m_Other_sequences
static MDB_envinfo info
Definition: mdb_load.c:37
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Mon Jul 15 05:33:56 2024 by modify_doxy.py rev. 669887