NCBI C++ ToolKit
GBProject_.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  * 'gui_objects.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
52 
53 BEGIN_objects_SCOPE // namespace ncbi::objects::
54 
55 
56 // generated classes
57 
59 {
60  if ( !m_Descr ) {
61  m_Descr.Reset(new TDescr());
62  return;
63  }
64  (*m_Descr).Reset();
65 }
66 
68 {
69  m_Descr.Reset(&value);
70 }
71 
73 {
74  if ( !m_Core ) {
75  m_Core.Reset(new TCore());
76  return;
77  }
78  (*m_Core).Reset();
79 }
80 
82 {
83  m_Core.Reset(&value);
84 }
85 
87 {
88  m_Extra.Reset();
89 }
90 
92 {
93  m_Extra.Reset(&value);
94 }
95 
97 {
98  if ( !m_Extra )
99  m_Extra.Reset(new TExtra());
100  return (*m_Extra);
101 }
102 
104 {
105  m_Orig_message.Reset();
106 }
107 
109 {
110  m_Orig_message.Reset(&value);
111 }
112 
114 {
115  if ( !m_Orig_message )
116  m_Orig_message.Reset(new TOrig_message());
117  return (*m_Orig_message);
118 }
119 
121 {
122  m_History.clear();
123  m_set_State[0] &= ~0xc00;
124 }
125 
127 {
128  m_Data_plugin.erase();
129  m_set_State[0] &= ~0x3000;
130 }
131 
133 {
134  m_Plugin_param.erase();
135  m_set_State[0] &= ~0xc000;
136 }
137 
139 {
140  m_Annot.clear();
141  m_set_State[0] &= ~0x30000;
142 }
143 
145 {
146  m_Loaders.clear();
147  m_set_State[0] &= ~0xc0000;
148 }
149 
151 {
152  m_Views.clear();
153  m_set_State[0] &= ~0x300000;
154 }
155 
157 {
158  ResetCounter();
159  ResetDescr();
160  ResetCore();
161  ResetExtra();
163  ResetHistory();
166  ResetAnnot();
167  ResetLoaders();
168  ResetViews();
169 }
170 
172 {
173  SET_CLASS_MODULE("NCBI-GUI-Project");
174  ADD_NAMED_STD_MEMBER("counter", m_Counter)->SetDefault(new TCounter(0))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
175  ADD_NAMED_REF_MEMBER("descr", m_Descr, CProjectDescr);
176  ADD_NAMED_REF_MEMBER("core", m_Core, CProjectItem);
177  ADD_NAMED_REF_MEMBER("extra", m_Extra, CProjectFolder)->SetOptional();
178  ADD_NAMED_REF_MEMBER("orig-message", m_Orig_message, CPluginMessage)->SetOptional();
179  ADD_NAMED_MEMBER("history", m_History, STL_list_set, (STL_CRef, (CLASS, (CProjectHistoryItem))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
180  ADD_NAMED_STD_MEMBER("data-plugin", m_Data_plugin)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
181  ADD_NAMED_STD_MEMBER("plugin-param", m_Plugin_param)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
182  ADD_NAMED_MEMBER("annot", m_Annot, STL_list_set, (STL_CRef, (CLASS, (CProjectAnnot))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
183  ADD_NAMED_MEMBER("loaders", m_Loaders, STL_list_set, (STL_CRef, (CLASS, (CLoaderDescriptor))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
184  ADD_NAMED_MEMBER("views", m_Views, STL_list_set, (STL_CRef, (CLASS, (CViewDescriptor))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
185  info->RandomOrder();
186  info->CodeVersion(22301);
187  info->DataSpec(ncbi::EDataSpec::eASN);
188 }
190 
191 // constructor
193  : m_Counter(0)
194 {
195  memset(m_set_State,0,sizeof(m_set_State));
196  if ( !IsAllocatedInPool() ) {
197  ResetDescr();
198  ResetCore();
199  }
200 }
201 
202 // destructor
204 {
205 }
206 
207 
208 
209 END_objects_SCOPE // namespace ncbi::objects::
210 
212 
BEGIN_NAMED_BASE_CLASS_INFO("GBProject", CGBProject)
Definition: GBProject_.cpp:171
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.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CLoaderDescriptor –.
CProjectAnnot –.
CProjectHistoryItem –.
CViewDescriptor –.
char value[7]
Definition: config.c:431
#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
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
CRef< TCore > m_Core
Definition: GBProject_.hpp:551
void ResetAnnot(void)
Reset Annot data member.
Definition: GBProject_.cpp:138
virtual ~CGBProject_Base(void)
Definition: GBProject_.cpp:203
void ResetLoaders(void)
Reset Loaders data member.
Definition: GBProject_.cpp:144
list< CRef< CViewDescriptor > > m_Views
Definition: GBProject_.hpp:559
CProjectDescr TDescr
Definition: GBProject_.hpp:107
TDescr & SetDescr(void)
Assign a value to Descr data member.
Definition: GBProject_.hpp:643
list< CRef< CProjectHistoryItem > > m_History
Definition: GBProject_.hpp:554
void ResetData_plugin(void)
Reset Data_plugin data member.
Definition: GBProject_.cpp:126
void ResetOrig_message(void)
Reset Orig_message data member.
Definition: GBProject_.cpp:103
void ResetCore(void)
Reset Core data member.
Definition: GBProject_.cpp:72
CPluginMessage TOrig_message
Definition: GBProject_.hpp:110
CRef< TDescr > m_Descr
Definition: GBProject_.hpp:550
void ResetExtra(void)
Reset Extra data member.
Definition: GBProject_.cpp:86
TOrig_message & SetOrig_message(void)
Assign a value to Orig_message data member.
Definition: GBProject_.cpp:113
virtual void Reset(void)
Reset the whole object.
Definition: GBProject_.cpp:156
TExtra & SetExtra(void)
Assign a value to Extra data member.
Definition: GBProject_.cpp:96
CRef< TExtra > m_Extra
Definition: GBProject_.hpp:552
void ResetHistory(void)
Reset History data member.
Definition: GBProject_.cpp:120
void ResetCounter(void)
Reset Counter data member.
Definition: GBProject_.hpp:584
CRef< TOrig_message > m_Orig_message
Definition: GBProject_.hpp:553
list< CRef< CLoaderDescriptor > > m_Loaders
Definition: GBProject_.hpp:558
CProjectFolder TExtra
Definition: GBProject_.hpp:109
Uint4 m_set_State[1]
Definition: GBProject_.hpp:548
void ResetViews(void)
Reset Views data member.
Definition: GBProject_.cpp:150
list< CRef< CProjectAnnot > > m_Annot
Definition: GBProject_.hpp:557
string m_Data_plugin
Definition: GBProject_.hpp:555
CProjectItem TCore
Definition: GBProject_.hpp:108
void ResetDescr(void)
Reset Descr data member.
Definition: GBProject_.cpp:58
string m_Plugin_param
Definition: GBProject_.hpp:556
TCore & SetCore(void)
Assign a value to Core data member.
Definition: GBProject_.hpp:673
void ResetPlugin_param(void)
Reset Plugin_param data member.
Definition: GBProject_.cpp:132
static MDB_envinfo info
Definition: mdb_load.c:37
Modified on Wed Dec 06 07:12:46 2023 by modify_doxy.py rev. 669887