|
NCBI Home IEB Home C++ Toolkit docs C Toolkit source browser C Toolkit source browser (2) |
NCBI C++ Toolkit Cross ReferenceC++/src/objects/entrezgene/Gene_commentary_.cpp |
source navigation diff markup identifier search freetext search file search |
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 * 'entrezgene.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
42 #include <objects/entrezgene/Gene_commentary.hpp>
43 #include <objects/entrezgene/Gene_commentary.hpp>
44 #include <objects/entrezgene/Other_source.hpp>
45 #include <objects/entrezgene/Xtra_Terms.hpp>
46 #include <objects/general/Date.hpp>
47 #include <objects/pub/Pub.hpp>
48 #include <objects/seqloc/Seq_loc.hpp>
49 BEGIN_NCBI_SCOPE
50
51 BEGIN_objects_SCOPE // namespace ncbi::objects::
52
53
54 // generated classes
55
56 BEGIN_NAMED_ENUM_IN_INFO("", CGene_commentary_Base::, EType, true)
57 {
58 ADD_ENUM_VALUE("genomic", eType_genomic);
59 ADD_ENUM_VALUE("pre-RNA", eType_pre_RNA);
60 ADD_ENUM_VALUE("mRNA", eType_mRNA);
61 ADD_ENUM_VALUE("rRNA", eType_rRNA);
62 ADD_ENUM_VALUE("tRNA", eType_tRNA);
63 ADD_ENUM_VALUE("snRNA", eType_snRNA);
64 ADD_ENUM_VALUE("scRNA", eType_scRNA);
65 ADD_ENUM_VALUE("peptide", eType_peptide);
66 ADD_ENUM_VALUE("other-genetic", eType_other_genetic);
67 ADD_ENUM_VALUE("genomic-mRNA", eType_genomic_mRNA);
68 ADD_ENUM_VALUE("cRNA", eType_cRNA);
69 ADD_ENUM_VALUE("mature-peptide", eType_mature_peptide);
70 ADD_ENUM_VALUE("pre-protein", eType_pre_protein);
71 ADD_ENUM_VALUE("miscRNA", eType_miscRNA);
72 ADD_ENUM_VALUE("snoRNA", eType_snoRNA);
73 ADD_ENUM_VALUE("property", eType_property);
74 ADD_ENUM_VALUE("reference", eType_reference);
75 ADD_ENUM_VALUE("generif", eType_generif);
76 ADD_ENUM_VALUE("phenotype", eType_phenotype);
77 ADD_ENUM_VALUE("complex", eType_complex);
78 ADD_ENUM_VALUE("compound", eType_compound);
79 ADD_ENUM_VALUE("ncRNA", eType_ncRNA);
80 ADD_ENUM_VALUE("gene-group", eType_gene_group);
81 ADD_ENUM_VALUE("comment", eType_comment);
82 ADD_ENUM_VALUE("other", eType_other);
83 }
84 END_ENUM_INFO
85
86 void CGene_commentary_Base::ResetHeading(void)
87 {
88 m_Heading.erase();
89 m_set_State[0] &= ~0xc;
90 }
91
92 void CGene_commentary_Base::ResetLabel(void)
93 {
94 m_Label.erase();
95 m_set_State[0] &= ~0x30;
96 }
97
98 void CGene_commentary_Base::ResetText(void)
99 {
100 m_Text.erase();
101 m_set_State[0] &= ~0xc0;
102 }
103
104 void CGene_commentary_Base::ResetAccession(void)
105 {
106 m_Accession.erase();
107 m_set_State[0] &= ~0x300;
108 }
109
110 void CGene_commentary_Base::ResetXtra_properties(void)
111 {
112 m_Xtra_properties.clear();
113 m_set_State[0] &= ~0x3000;
114 }
115
116 void CGene_commentary_Base::ResetRefs(void)
117 {
118 m_Refs.clear();
119 m_set_State[0] &= ~0xc000;
120 }
121
122 void CGene_commentary_Base::ResetSource(void)
123 {
124 m_Source.clear();
125 m_set_State[0] &= ~0x30000;
126 }
127
128 void CGene_commentary_Base::ResetGenomic_coords(void)
129 {
130 m_Genomic_coords.clear();
131 m_set_State[0] &= ~0xc0000;
132 }
133
134 void CGene_commentary_Base::ResetSeqs(void)
135 {
136 m_Seqs.clear();
137 m_set_State[0] &= ~0x300000;
138 }
139
140 void CGene_commentary_Base::ResetProducts(void)
141 {
142 m_Products.clear();
143 m_set_State[0] &= ~0xc00000;
144 }
145
146 void CGene_commentary_Base::ResetProperties(void)
147 {
148 m_Properties.clear();
149 m_set_State[0] &= ~0x3000000;
150 }
151
152 void CGene_commentary_Base::ResetComment(void)
153 {
154 m_Comment.clear();
155 m_set_State[0] &= ~0xc000000;
156 }
157
158 void CGene_commentary_Base::ResetCreate_date(void)
159 {
160 m_Create_date.Reset();
161 }
162
163 void CGene_commentary_Base::SetCreate_date(CGene_commentary_Base::TCreate_date& value)
164 {
165 m_Create_date.Reset(&value);
166 }
167
168 CGene_commentary_Base::TCreate_date& CGene_commentary_Base::SetCreate_date(void)
169 {
170 if ( !m_Create_date )
171 m_Create_date.Reset(new ncbi::objects::CDate());
172 return (*m_Create_date);
173 }
174
175 void CGene_commentary_Base::ResetUpdate_date(void)
176 {
177 m_Update_date.Reset();
178 }
179
180 void CGene_commentary_Base::SetUpdate_date(CGene_commentary_Base::TUpdate_date& value)
181 {
182 m_Update_date.Reset(&value);
183 }
184
185 CGene_commentary_Base::TUpdate_date& CGene_commentary_Base::SetUpdate_date(void)
186 {
187 if ( !m_Update_date )
188 m_Update_date.Reset(new ncbi::objects::CDate());
189 return (*m_Update_date);
190 }
191
192 void CGene_commentary_Base::Reset(void)
193 {
194 ResetType();
195 ResetHeading();
196 ResetLabel();
197 ResetText();
198 ResetAccession();
199 ResetVersion();
200 ResetXtra_properties();
201 ResetRefs();
202 ResetSource();
203 ResetGenomic_coords();
204 ResetSeqs();
205 ResetProducts();
206 ResetProperties();
207 ResetComment();
208 ResetCreate_date();
209 ResetUpdate_date();
210 }
211
212 BEGIN_NAMED_BASE_CLASS_INFO("Gene-commentary", CGene_commentary)
213 {
214 SET_CLASS_MODULE("NCBI-Entrezgene");
215 ADD_NAMED_ENUM_MEMBER("type", m_Type, EType)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
216 ADD_NAMED_STD_MEMBER("heading", m_Heading)->SetOptional()->SetSetFlag(MEMBER_PTR(m_set_State[0]));
217 ADD_NAMED_STD_MEMBER("label", m_Label)->SetOptional()->SetSetFlag(MEMBER_PTR(m_set_State[0]));
218 ADD_NAMED_STD_MEMBER("text", m_Text)->SetOptional()->SetSetFlag(MEMBER_PTR(m_set_State[0]));
219 ADD_NAMED_STD_MEMBER("accession", m_Accession)->SetOptional()->SetSetFlag(MEMBER_PTR(m_set_State[0]));
220 ADD_NAMED_STD_MEMBER("version", m_Version)->SetOptional()->SetSetFlag(MEMBER_PTR(m_set_State[0]));
221 ADD_NAMED_MEMBER("xtra-properties", m_Xtra_properties, STL_list, (STL_CRef, (CLASS, (CXtra_Terms))))->SetOptional()->SetSetFlag(MEMBER_PTR(m_set_State[0]));
222 ADD_NAMED_MEMBER("refs", m_Refs, STL_list, (STL_CRef, (CLASS, (CPub))))->SetOptional()->SetSetFlag(MEMBER_PTR(m_set_State[0]));
223 ADD_NAMED_MEMBER("source", m_Source, STL_list, (STL_CRef, (CLASS, (COther_source))))->SetOptional()->SetSetFlag(MEMBER_PTR(m_set_State[0]));
224 ADD_NAMED_MEMBER("genomic-coords", m_Genomic_coords, STL_list, (STL_CRef, (CLASS, (CSeq_loc))))->SetOptional()->SetSetFlag(MEMBER_PTR(m_set_State[0]));
225 ADD_NAMED_MEMBER("seqs", m_Seqs, STL_list, (STL_CRef, (CLASS, (CSeq_loc))))->SetOptional()->SetSetFlag(MEMBER_PTR(m_set_State[0]));
226 ADD_NAMED_MEMBER("products", m_Products, STL_list, (STL_CRef, (CLASS, (CGene_commentary))))->SetOptional()->SetSetFlag(MEMBER_PTR(m_set_State[0]));
227 ADD_NAMED_MEMBER("properties", m_Properties, STL_list, (STL_CRef, (CLASS, (CGene_commentary))))->SetOptional()->SetSetFlag(MEMBER_PTR(m_set_State[0]));
228 ADD_NAMED_MEMBER("comment", m_Comment, STL_list, (STL_CRef, (CLASS, (CGene_commentary))))->SetOptional()->SetSetFlag(MEMBER_PTR(m_set_State[0]));
229 ADD_NAMED_REF_MEMBER("create-date", m_Create_date, CDate)->SetOptional();
230 ADD_NAMED_REF_MEMBER("update-date", m_Update_date, CDate)->SetOptional();
231 info->RandomOrder();
232 }
233 END_CLASS_INFO
234
235 // constructor
236 CGene_commentary_Base::CGene_commentary_Base(void)
237 : m_Type((EType)(0)), m_Version(0)
238 {
239 memset(m_set_State,0,sizeof(m_set_State));
240 }
241
242 // destructor
243 CGene_commentary_Base::~CGene_commentary_Base(void)
244 {
245 }
246
247
248
249 END_objects_SCOPE // namespace ncbi::objects::
250
251 END_NCBI_SCOPE
252
253 |
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more information. |