NCBI C++ ToolKit
HG_Gene_.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  * 'homologene.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
47 
48 BEGIN_objects_SCOPE // namespace ncbi::objects::
49 
50 
51 // generated classes
52 
54 {
55  m_Symbol.erase();
56  m_set_State[0] &= ~0x30;
57 }
58 
60 {
61  m_Aliases.clear();
62  m_set_State[0] &= ~0xc0;
63 }
64 
66 {
67  m_Title.erase();
68  m_set_State[0] &= ~0x300;
69 }
70 
72 {
73  m_Prot_acc.erase();
74  m_set_State[0] &= ~0xc000;
75 }
76 
78 {
79  m_Nuc_acc.erase();
80  m_set_State[0] &= ~0x300000;
81 }
82 
84 {
85  m_Gene_links.clear();
86  m_set_State[0] &= ~0xc00000;
87 }
88 
90 {
91  m_Prot_links.clear();
92  m_set_State[0] &= ~0x3000000;
93 }
94 
96 {
97  m_Domains.clear();
98  m_set_State[0] &= ~0xc000000;
99 }
100 
102 {
103  m_Chr.erase();
104  m_set_State[0] &= ~0x30000000;
105 }
106 
108 {
109  m_Location.Reset();
110 }
111 
113 {
114  m_Location.Reset(&value);
115 }
116 
118 {
119  if ( !m_Location )
120  m_Location.Reset(new TLocation());
121  return (*m_Location);
122 }
123 
125 {
126  m_Locus_tag.erase();
127  m_set_State[1] &= ~0x3;
128 }
129 
131 {
132  ResetGeneid();
133  ResetOtherid();
134  ResetSymbol();
135  ResetAliases();
136  ResetTitle();
137  ResetTaxid();
138  ResetProt_gi();
139  ResetProt_acc();
140  ResetProt_len();
141  ResetNuc_gi();
142  ResetNuc_acc();
143  ResetGene_links();
144  ResetProt_links();
145  ResetDomains();
146  ResetChr();
147  ResetLocation();
148  ResetLocus_tag();
149 }
150 
152 {
153  SET_CLASS_MODULE("HomoloGene");
154  ADD_NAMED_STD_MEMBER("geneid", m_Geneid)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
155  ADD_NAMED_STD_MEMBER("otherid", m_Otherid)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
156  ADD_NAMED_STD_MEMBER("symbol", m_Symbol)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
157  ADD_NAMED_MEMBER("aliases", m_Aliases, STL_list_set, (STD, (string)))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
158  ADD_NAMED_STD_MEMBER("title", m_Title)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
159  ADD_NAMED_STD_MEMBER("taxid", m_Taxid)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
160  ADD_NAMED_STD_MEMBER("prot-gi", m_Prot_gi)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
161  ADD_NAMED_STD_MEMBER("prot-acc", m_Prot_acc)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
162  ADD_NAMED_STD_MEMBER("prot-len", m_Prot_len)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
163  ADD_NAMED_STD_MEMBER("nuc-gi", m_Nuc_gi)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
164  ADD_NAMED_STD_MEMBER("nuc-acc", m_Nuc_acc)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
165  ADD_NAMED_MEMBER("gene-links", m_Gene_links, STL_list_set, (STL_CRef, (CLASS, (CHG_Link))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
166  ADD_NAMED_MEMBER("prot-links", m_Prot_links, STL_list_set, (STL_CRef, (CLASS, (CHG_Link))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
167  ADD_NAMED_MEMBER("domains", m_Domains, STL_list_set, (STL_CRef, (CLASS, (CHG_Domain))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
168  ADD_NAMED_STD_MEMBER("chr", m_Chr)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
169  ADD_NAMED_REF_MEMBER("location", m_Location, CSeq_loc)->SetOptional();
170  ADD_NAMED_STD_MEMBER("locus-tag", m_Locus_tag)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
171  info->RandomOrder();
172  info->CodeVersion(22400);
173  info->DataSpec(ncbi::EDataSpec::eASN);
174 }
176 
177 // constructor
179  : m_Geneid(0), m_Otherid(0), m_Taxid(0), m_Prot_gi(0), m_Prot_len(0), m_Nuc_gi(0)
180 {
181  memset(m_set_State,0,sizeof(m_set_State));
182 }
183 
184 // destructor
186 {
187 }
188 
189 
190 
191 END_objects_SCOPE // namespace ncbi::objects::
192 
194 
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("HG-Gene", CHG_Gene)
Definition: HG_Gene_.cpp:151
CHG_Domain –.
Definition: HG_Domain.hpp:66
#define MEMBER_PTR(MemberName)
Definition: serialimpl.hpp:284
#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 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 END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
CRef< TLocation > m_Location
Definition: HG_Gene_.hpp:776
TLocation & SetLocation(void)
Assign a value to Location data member.
Definition: HG_Gene_.cpp:117
void ResetNuc_gi(void)
Reset Nuc_gi data member.
Definition: HG_Gene_.hpp:1203
void ResetChr(void)
Reset Chr data member.
Definition: HG_Gene_.cpp:101
list< CRef< CHG_Domain > > m_Domains
Definition: HG_Gene_.hpp:774
void ResetProt_links(void)
Reset Prot_links data member.
Definition: HG_Gene_.cpp:89
string m_Locus_tag
Definition: HG_Gene_.hpp:777
void ResetSymbol(void)
Reset Symbol data member.
Definition: HG_Gene_.cpp:53
virtual ~CHG_Gene_Base(void)
Definition: HG_Gene_.cpp:185
list< string > m_Aliases
Definition: HG_Gene_.hpp:764
CHG_Gene_Base(void)
Definition: HG_Gene_.cpp:178
string m_Nuc_acc
Definition: HG_Gene_.hpp:771
void ResetLocus_tag(void)
Reset Locus_tag data member.
Definition: HG_Gene_.cpp:124
void ResetProt_gi(void)
Reset Prot_gi data member.
Definition: HG_Gene_.hpp:1062
void ResetLocation(void)
Reset Location data member.
Definition: HG_Gene_.cpp:107
void ResetNuc_acc(void)
Reset Nuc_acc data member.
Definition: HG_Gene_.cpp:77
string m_Prot_acc
Definition: HG_Gene_.hpp:768
void ResetOtherid(void)
Reset Otherid data member.
Definition: HG_Gene_.hpp:849
string m_Title
Definition: HG_Gene_.hpp:765
void ResetAliases(void)
Reset Aliases data member.
Definition: HG_Gene_.cpp:59
void ResetDomains(void)
Reset Domains data member.
Definition: HG_Gene_.cpp:95
list< CRef< CHG_Link > > m_Gene_links
Definition: HG_Gene_.hpp:772
void ResetProt_acc(void)
Reset Prot_acc data member.
Definition: HG_Gene_.cpp:71
list< CRef< CHG_Link > > m_Prot_links
Definition: HG_Gene_.hpp:773
void ResetGeneid(void)
Reset Geneid data member.
Definition: HG_Gene_.hpp:802
string m_Chr
Definition: HG_Gene_.hpp:775
void ResetTaxid(void)
Reset Taxid data member.
Definition: HG_Gene_.hpp:1015
void ResetTitle(void)
Reset Title data member.
Definition: HG_Gene_.cpp:65
void ResetGene_links(void)
Reset Gene_links data member.
Definition: HG_Gene_.cpp:83
Uint4 m_set_State[2]
Definition: HG_Gene_.hpp:760
void ResetProt_len(void)
Reset Prot_len data member.
Definition: HG_Gene_.hpp:1156
virtual void Reset(void)
Reset the whole object.
Definition: HG_Gene_.cpp:130
CSeq_loc TLocation
Definition: HG_Gene_.hpp:107
string m_Symbol
Definition: HG_Gene_.hpp:763
static MDB_envinfo info
Definition: mdb_load.c:37
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Wed May 15 15:10:59 2024 by modify_doxy.py rev. 669887