NCBI C++ ToolKit
FxnSet_.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
44 
45 BEGIN_objects_SCOPE // namespace ncbi::objects::
46 
47 
48 // generated classes
49 
50 BEGIN_NAMED_ENUM_IN_INFO("", CFxnSet_Base::C_Attlist::, EAttlist_fxnClass, false)
51 {
52  SET_ENUM_INTERNAL_NAME("FxnSet.attlist", "fxnClass");
53  SET_ENUM_MODULE("Docsum-3-4");
54  ADD_ENUM_VALUE("locus-region", eAttlist_fxnClass_locus_region);
55  ADD_ENUM_VALUE("coding-unknown", eAttlist_fxnClass_coding_unknown);
56  ADD_ENUM_VALUE("synonymous-codon", eAttlist_fxnClass_synonymous_codon);
57  ADD_ENUM_VALUE("non-synonymous-codon", eAttlist_fxnClass_non_synonymous_codon);
58  ADD_ENUM_VALUE("mrna-utr", eAttlist_fxnClass_mrna_utr);
59  ADD_ENUM_VALUE("intron-variant", eAttlist_fxnClass_intron_variant);
60  ADD_ENUM_VALUE("splice-region-variant", eAttlist_fxnClass_splice_region_variant);
61  ADD_ENUM_VALUE("reference", eAttlist_fxnClass_reference);
62  ADD_ENUM_VALUE("coding-exception", eAttlist_fxnClass_coding_exception);
63  ADD_ENUM_VALUE("coding-sequence-variant", eAttlist_fxnClass_coding_sequence_variant);
64  ADD_ENUM_VALUE("nc-transcript-variant", eAttlist_fxnClass_nc_transcript_variant);
65  ADD_ENUM_VALUE("downstream-variant-500B", eAttlist_fxnClass_downstream_variant_500B);
66  ADD_ENUM_VALUE("upstream-variant-2KB", eAttlist_fxnClass_upstream_variant_2KB);
67  ADD_ENUM_VALUE("nonsense", eAttlist_fxnClass_nonsense);
68  ADD_ENUM_VALUE("missense", eAttlist_fxnClass_missense);
69  ADD_ENUM_VALUE("frameshift-variant", eAttlist_fxnClass_frameshift_variant);
70  ADD_ENUM_VALUE("utr-variant-3-prime", eAttlist_fxnClass_utr_variant_3_prime);
71  ADD_ENUM_VALUE("utr-variant-5-prime", eAttlist_fxnClass_utr_variant_5_prime);
72  ADD_ENUM_VALUE("splice-acceptor-variant", eAttlist_fxnClass_splice_acceptor_variant);
73  ADD_ENUM_VALUE("splice-donor-variant", eAttlist_fxnClass_splice_donor_variant);
74  ADD_ENUM_VALUE("cds-indel", eAttlist_fxnClass_cds_indel);
75  ADD_ENUM_VALUE("stop-gained", eAttlist_fxnClass_stop_gained);
76  ADD_ENUM_VALUE("stop-lost", eAttlist_fxnClass_stop_lost);
77  ADD_ENUM_VALUE("complex-change-in-transcript", eAttlist_fxnClass_complex_change_in_transcript);
78  ADD_ENUM_VALUE("incomplete-terminal-codon-variant", eAttlist_fxnClass_incomplete_terminal_codon_variant);
79  ADD_ENUM_VALUE("nmd-transcript-variant", eAttlist_fxnClass_nmd_transcript_variant);
80  ADD_ENUM_VALUE("mature-miRNA-variant", eAttlist_fxnClass_mature_miRNA_variant);
81  ADD_ENUM_VALUE("upstream-variant-5KB", eAttlist_fxnClass_upstream_variant_5KB);
82  ADD_ENUM_VALUE("downstream-variant-5KB", eAttlist_fxnClass_downstream_variant_5KB);
83  ADD_ENUM_VALUE("intergenic", eAttlist_fxnClass_intergenic);
84 }
86 
88 {
89  m_Symbol.erase();
90  m_set_State[0] &= ~0xc;
91 }
92 
94 {
95  m_MrnaAcc.erase();
96  m_set_State[0] &= ~0x30;
97 }
98 
100 {
101  m_ProtAcc.erase();
102  m_set_State[0] &= ~0x300;
103 }
104 
106 {
107  m_Allele.erase();
108  m_set_State[0] &= ~0x30000;
109 }
110 
112 {
113  m_Residue.erase();
114  m_set_State[0] &= ~0xc0000;
115 }
116 
118 {
119  m_SoTerm.erase();
120  m_set_State[0] &= ~0x3000000;
121 }
122 
124 {
125  ResetGeneId();
126  ResetSymbol();
127  ResetMrnaAcc();
128  ResetMrnaVer();
129  ResetProtAcc();
130  ResetProtVer();
131  ResetFxnClass();
132  ResetReadingFrame();
133  ResetAllele();
134  ResetResidue();
135  ResetAaPosition();
136  ResetMrnaPosition();
137  ResetSoTerm();
138 }
139 
141 {
142  SET_INTERNAL_NAME("FxnSet", "attlist");
143  SET_CLASS_MODULE("Docsum-3-4");
144  ADD_NAMED_STD_MEMBER("geneId", m_GeneId)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
145  ADD_NAMED_STD_MEMBER("symbol", m_Symbol)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
146  ADD_NAMED_STD_MEMBER("mrnaAcc", m_MrnaAcc)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
147  ADD_NAMED_STD_MEMBER("mrnaVer", m_MrnaVer)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
148  ADD_NAMED_STD_MEMBER("protAcc", m_ProtAcc)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
149  ADD_NAMED_STD_MEMBER("protVer", m_ProtVer)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
150  ADD_NAMED_ENUM_MEMBER("fxnClass", m_FxnClass, EAttlist_fxnClass)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
151  ADD_NAMED_STD_MEMBER("readingFrame", m_ReadingFrame)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
152  ADD_NAMED_STD_MEMBER("allele", m_Allele)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
153  ADD_NAMED_STD_MEMBER("residue", m_Residue)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
154  ADD_NAMED_STD_MEMBER("aaPosition", m_AaPosition)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
155  ADD_NAMED_STD_MEMBER("mrnaPosition", m_MrnaPosition)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
156  ADD_NAMED_STD_MEMBER("soTerm", m_SoTerm)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
157  info->SetRandomOrder(true);
158  info->CodeVersion(22400);
159  info->DataSpec(ncbi::EDataSpec::eASN);
160 }
162 
163 // constructor
165  : m_GeneId(0), m_MrnaVer(0), m_ProtVer(0), m_FxnClass((EAttlist_fxnClass)(0)), m_ReadingFrame(0), m_AaPosition(0), m_MrnaPosition(0)
166 {
167  memset(m_set_State,0,sizeof(m_set_State));
168 }
169 
170 // destructor
172 {
173 }
174 
175 
177 {
178  if ( !m_Attlist ) {
179  m_Attlist.Reset(new TAttlist());
180  return;
181  }
182  (*m_Attlist).Reset();
183 }
184 
186 {
187  m_Attlist.Reset(&value);
188 }
189 
191 {
192  ResetAttlist();
193  ResetFxnSet();
194 }
195 
197 {
198  SET_CLASS_MODULE("Docsum-3-4");
199  ADD_NAMED_REF_MEMBER("attlist", m_Attlist, C_Attlist);
200  ADD_NAMED_NULL_MEMBER("fxnSet", null, ())->SetSetFlag(MEMBER_PTR(m_set_State[0]));
201  info->RandomOrder();
202  info->CodeVersion(22400);
203  info->DataSpec(ncbi::EDataSpec::eASN);
204 }
206 
207 // constructor
209 {
210  memset(m_set_State,0,sizeof(m_set_State));
211  if ( !IsAllocatedInPool() ) {
212  ResetAttlist();
213  }
214 }
215 
216 // destructor
218 {
219 }
220 
221 
222 
223 END_objects_SCOPE // namespace ncbi::objects::
224 
226 
User-defined methods of the data storage class.
BEGIN_NAMED_CLASS_INFO("", CFxnSet_Base::C_Attlist)
Definition: FxnSet_.cpp:140
BEGIN_NAMED_BASE_CLASS_INFO("FxnSet", CFxnSet)
Definition: FxnSet_.cpp:196
BEGIN_NAMED_ENUM_IN_INFO("", CFxnSet_Base::C_Attlist::, EAttlist_fxnClass, false)
Definition: FxnSet_.cpp:50
END_ENUM_INFO
Definition: aln_errors.cpp:58
C_Attlist –.
Definition: FxnSet_.hpp:93
CFxnSet –.
Definition: FxnSet.hpp:66
#define MEMBER_PTR(MemberName)
Definition: serialimpl.hpp:284
#define SET_ENUM_INTERNAL_NAME(OwnerName, MemberName)
Definition: serialimpl.hpp:559
#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 ResetResidue(void)
Reset Residue data member.
Definition: FxnSet_.cpp:111
virtual void Reset(void)
Reset the whole object.
Definition: FxnSet_.cpp:190
void ResetSymbol(void)
Reset Symbol data member.
Definition: FxnSet_.cpp:87
virtual ~CFxnSet_Base(void)
Definition: FxnSet_.cpp:217
Uint4 m_set_State[1]
Definition: FxnSet_.hpp:789
void ResetMrnaAcc(void)
Reset MrnaAcc data member.
Definition: FxnSet_.cpp:93
void ResetSoTerm(void)
Reset SoTerm data member.
Definition: FxnSet_.cpp:117
C_Attlist TAttlist
Definition: FxnSet_.hpp:706
void ResetAttlist(void)
Reset Attlist data member.
Definition: FxnSet_.cpp:176
CFxnSet_Base(void)
Definition: FxnSet_.cpp:208
CRef< TAttlist > m_Attlist
Definition: FxnSet_.hpp:790
void ResetAllele(void)
Reset Allele data member.
Definition: FxnSet_.cpp:105
void ResetProtAcc(void)
Reset ProtAcc data member.
Definition: FxnSet_.cpp:99
void Reset(void)
Reset the whole object.
Definition: FxnSet_.cpp:123
EAttlist_fxnClass
variation in region of gene, but not in transcript - deprecated
Definition: FxnSet_.hpp:106
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
Definition: FxnSet_.hpp:1435
void ResetFxnSet(void)
Reset FxnSet data member.
Definition: FxnSet_.hpp:1456
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:36:01 2024 by modify_doxy.py rev. 669887