NCBI C++ ToolKit
TMgr_DisplayTrackRequest_.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  * 'trackmgr.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
49 
50 BEGIN_objects_SCOPE // namespace ncbi::objects::
51 
52 
53 // generated classes
54 
56 {
66 }
67 
69 {
70  SET_INTERNAL_NAME("TMgr-DisplayTrackRequest", "flags");
71  SET_CLASS_MODULE("NCBI-TrackManager");
72  ADD_NAMED_STD_MEMBER("include-stats", m_Include_stats)->SetDefault(new TInclude_stats(false))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
73  ADD_NAMED_STD_MEMBER("include-default-tracks", m_Include_default_tracks)->SetDefault(new TInclude_default_tracks(false))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
74  ADD_NAMED_STD_MEMBER("include-track-items", m_Include_track_items)->SetDefault(new TInclude_track_items(false))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
75  ADD_NAMED_STD_MEMBER("expanded-rid-details", m_Expanded_rid_details)->SetDefault(new TExpanded_rid_details(false))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
76  ADD_NAMED_STD_MEMBER("include-track-hubs", m_Include_track_hubs)->SetDefault(new TInclude_track_hubs(false))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
77  ADD_NAMED_STD_MEMBER("include-TMS-tracks", m_Include_TMS_tracks)->SetDefault(new TInclude_TMS_tracks(true))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
78  ADD_NAMED_STD_MEMBER("include-user-tracks", m_Include_user_tracks)->SetDefault(new TInclude_user_tracks(true))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
79  ADD_NAMED_STD_MEMBER("include-remote-tracks", m_Include_remote_tracks)->SetDefault(new TInclude_remote_tracks(true))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
80  ADD_NAMED_STD_MEMBER("use-multiple-containers", m_Use_multiple_containers)->SetDefault(new TUse_multiple_containers(false))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
81  info->RandomOrder();
82  info->CodeVersion(22301);
83  info->DataSpec(ncbi::EDataSpec::eASN);
84 }
86 
87 // constructor
89  : m_Include_stats(false), m_Include_default_tracks(false), m_Include_track_items(false), m_Expanded_rid_details(false), m_Include_track_hubs(false), m_Include_TMS_tracks(true), m_Include_user_tracks(true), m_Include_remote_tracks(true), m_Use_multiple_containers(false)
90 {
91  memset(m_set_State,0,sizeof(m_set_State));
92 }
93 
94 // destructor
96 {
97 }
98 
99 
101 {
102  if ( !m_Client ) {
103  m_Client.Reset(new TClient());
104  return;
105  }
106  (*m_Client).Reset();
107 }
108 
110 {
111  m_Client.Reset(&value);
112 }
113 
115 {
116  if ( !m_Genome_context ) {
117  m_Genome_context.Reset(new TGenome_context());
118  return;
119  }
120  (*m_Genome_context).Reset();
121 }
122 
124 {
125  m_Genome_context.Reset(&value);
126 }
127 
129 {
130  m_Attrs.clear();
131  m_set_State[0] &= ~0x30;
132 }
133 
135 {
136  m_Identity.Reset();
137 }
138 
140 {
141  m_Identity.Reset(&value);
142 }
143 
145 {
146  if ( !m_Identity )
147  m_Identity.Reset(new TIdentity());
148  return (*m_Identity);
149 }
150 
152 {
153  m_Authorization.Reset();
154 }
155 
157 {
158  m_Authorization.Reset(&value);
159 }
160 
162 {
163  if ( !m_Authorization )
164  m_Authorization.Reset(new TAuthorization());
165  return (*m_Authorization);
166 }
167 
169 {
170  m_Flags.Reset();
171 }
172 
174 {
175  m_Flags.Reset(&value);
176 }
177 
179 {
180  if ( !m_Flags )
181  m_Flags.Reset(new TFlags());
182  return (*m_Flags);
183 }
184 
186 {
187  ResetClient();
189  ResetAttrs();
190  ResetIdentity();
192  ResetFlags();
193 }
194 
196 {
197  SET_CLASS_MODULE("NCBI-TrackManager");
200  ADD_NAMED_MEMBER("attrs", m_Attrs, STL_list_set, (STL_CRef, (CLASS, (CTMgr_AttrSpec))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
201  ADD_NAMED_REF_MEMBER("identity", m_Identity, CTMgr_Identity)->SetOptional();
202  ADD_NAMED_REF_MEMBER("authorization", m_Authorization, CTMgr_TrackACL_Authorization)->SetOptional();
203  ADD_NAMED_REF_MEMBER("flags", m_Flags, C_Flags)->SetOptional();
204  info->RandomOrder();
205  info->CodeVersion(22301);
206  info->DataSpec(ncbi::EDataSpec::eASN);
207 }
209 
210 // constructor
212 {
213  memset(m_set_State,0,sizeof(m_set_State));
214  if ( !IsAllocatedInPool() ) {
215  ResetClient();
217  }
218 }
219 
220 // destructor
222 {
223 }
224 
225 
226 
227 END_objects_SCOPE // namespace ncbi::objects::
228 
230 
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("TMgr-DisplayTrackRequest", CTMgr_DisplayTrackRequest)
BEGIN_NAMED_CLASS_INFO("", CTMgr_DisplayTrackRequest_Base::C_Flags)
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
#define true
Definition: bool.h:35
#define false
Definition: bool.h:36
CTMgr_AttrSpec –.
CTMgr_GenomeContext –.
CTMgr_Identity –.
CTMgr_TrackACL_Authorization –.
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
#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
CTMgr_TrackACL_Authorization TAuthorization
void ResetGenome_context(void)
Reset Genome_context data member.
TFlags & SetFlags(void)
Assign a value to Flags data member.
void ResetInclude_stats(void)
Reset Include_stats data member.
void ResetFlags(void)
Reset Flags data member.
void ResetInclude_track_items(void)
Reset Include_track_items data member.
void ResetInclude_remote_tracks(void)
Reset Include_remote_tracks data member.
TAuthorization & SetAuthorization(void)
Assign a value to Authorization data member.
void ResetAuthorization(void)
Reset Authorization data member.
void ResetExpanded_rid_details(void)
Reset Expanded_rid_details data member.
void ResetInclude_track_hubs(void)
Reset Include_track_hubs data member.
TGenome_context & SetGenome_context(void)
Assign a value to Genome_context data member.
void ResetAttrs(void)
Reset Attrs data member.
void ResetIdentity(void)
Reset Identity data member.
void ResetInclude_default_tracks(void)
Reset Include_default_tracks data member.
void ResetInclude_TMS_tracks(void)
Reset Include_TMS_tracks data member.
void ResetInclude_user_tracks(void)
Reset Include_user_tracks data member.
TIdentity & SetIdentity(void)
Assign a value to Identity data member.
void ResetClient(void)
Reset Client data member.
TClient & SetClient(void)
Assign a value to Client data member.
void ResetUse_multiple_containers(void)
Reset Use_multiple_containers data member.
virtual void Reset(void)
Reset the whole object.
list< CRef< CTMgr_AttrSpec > > m_Attrs
static MDB_envinfo info
Definition: mdb_load.c:37
Modified on Sat Dec 02 09:21:49 2023 by modify_doxy.py rev. 669887